
Create SOC Employment Weights from PUMS Microdata
Source:R/census.R
onet_pums_employment_weights.RdConverts American Community Survey (ACS), Current Population Survey (CPS), or
similar microdata with occupation codes into SOC-level employment weights.
Use this after downloading PUMS data with packages such as tidycensus or
ipumsr.
Lifecycle
This helper is soft-deprecated in favor of onet_weight_panel_pums(), which
keeps source and reference taxonomies explicit.
Examples
pums <- tibble::tibble(
SOCP = c("151252", "151252", "291141"),
PWGTP = c(120, 80, 200)
)
suppressWarnings(onet_pums_employment_weights(pums))
#> # A tibble: 2 × 3
#> soc_code employment records
#> <chr> <dbl> <int>
#> 1 15-1252 200 2
#> 2 29-1141 200 1