News
v 0.2.9
New installation URL
cbppstatautils is now hosted at “https://raw.githubusercontent.com/CenterOnBudget/cbpp-stata-utils/main/src”.
To install cbppstatautils, or to update to version 0.2.9, run:
"https://raw.githubusercontent.com/CenterOnBudget/cbpp-stata-utils/main/src") replace net install cbppstatautils, from(
After installing version 0.2.9, future updates can be installed with:
cbppstatautils, update
New documentation website
New commands
generate_ind_sector_var
generates an industry sector variable in ACS or CPS microdata (#22).generate_occ_group_var
generates an occupation group variable in ACS or CPS microdata (#22).copy_curl
downloads files from a URL using curl, optionally providing a user-specified user-agent in the HTTP header.labeler
replaceslabeller
.labeller
is still available as an alias forlabeler
. The command gains alblname()
option for users to specify the name of the value label to use; default is “varname_lbl”.
Changes
get_cpiu
falls back tocopy_curl
if the BLS denies the file download and gains optionuser_agent()
to pass tocopy_curl
(#23).load_data
now supports loading ACS SPM datasets (#21) and 2021-2022 SNAP QC datasets.load_data
now suggests updating cbppstatautils if an unsupported data year is specified (#20).svyset_acs
optionmultiyear()
has been renamedn_years()
.multiyear()
is still available as an alias forn_years()
.categorize
gains two new options for controlling value labels.lblname()
specifies the name of the value label to create andnformat()
specifies the numeric display format to use in value labels.generate_race_var
produces more readable value labels. Acronyms and abbreviations have been replaced with full words (for example, “Native Hawaiian or Pacific Islander” replacing “NHOPI”) and capitalization has been changed to sentence case.Some small under-the-hood changes and formatting fixes have been made.
v 0.2.2
v 0.2.1
- Bug fixes: #16
v 0.2.0
v 0.1.9
This release includes breaking changes.
Enhancements
get_acs_pums
now useslabel_acs_pums
to label data by default. It also displays an error message to the user if unzipping the retrieved files fails.load_data
now supportsif
anddatasets(pulse)
. Whendataset(acs)
, serialno is de-stringed only when loading data for a range of years that spans the variable type change. Previously, serialno was de-stringed if any of the years inyears()
were 2018 and later. De-stringing is now faster; it is implemented withreal()
instead ofdestring
.get_cpiu
labels variables (ifmerge
orreplace
is specified).svyset_acs_pums
now supports multi-year average weights for use in a dataset of multiple 1-year ACS samples appended together.
Breaking changes
generate_acs_major_group
has been removed from the package.
v 0.1.8
Support for 2020 March CPS in load_data
.
v 0.1.7
Bug fixes to get_acs_pums
and make_cbpp_profile
.
v 0.1.6
Enhancement to load_data
: Support SNAP QC datasets.
v 0.1.5
Bug fixes to load_data
and generate_aian_var
.
v 0.1.4
This release includes breaking changes (*).
- Help files: Formatting fixes and minor edits.
- Error messages: More consistent with Stata’s base error messages and less verbose.
- *Syntax change to
svyset_acs
: User must specify not to use replicate weights instead of the reverse (nosdrweights
option replacesrep_weights
). - *Syntax change to
get_acs_pums
: Optionkeep_all
replaceskeep_csv
; is equivalent tokeep_zip
pluskeep_csv
. - Enhancement to
get_acs_pums
: Results messages now include hyperlinks to the file paths so users can click to open the directory in File Explorer/Finder. - Bug fix to
load_data
: Does not attempt to destring serialno for 2018 file if user specifiesvars()
that do not include serialno. - Change to
cbppstatautils, update
: Runsado update
instead ofnet install
to avoid potential double-installation. - *Enhancement and bug fix to
inspect_2
: For users specifying multiple variables, allows specifying the names of results matrix for each inmatrix()
, which replaces thesave
option. If a category (negative, zero, positive, missing) does not appear in the data, it will be shown as a row containing 0 in frequency and percent, and missing in mean, min, and max. - Enhancement to
get_cpiu
: For users specifying themerge
option, allow user to specify name of variable in memory that contains the year inyearvarname()
option. - Enhancement to
etotal
: Allow user to specify confidence level inlevel()
option. - *Replace
make_acs_pums_lbls
withlabel_acs_pums
: New command generates label.do
file, places it in the package cache files, and runs it on data in memory. Previous command required user to choose where to place the label.do
file and then proactively run it. - New command
make_cbpp_profile
: Sets up standard data teamprofile.do
.