Skip to contents

Counts reconciliation change types overall and by two-digit job family.

Usage

onet_change_summary(reconciled, by = c("overall", "job_family"))

Arguments

reconciled

A tibble from onet_panel_reconcile().

by

Summary level to return. "overall" returns one package-level row; "job_family" returns the overall row plus one row per two-digit SOC family.

Value

A tibble with one row per summary group and change type. The n column counts rows of that change type within the group, and share is the within-group share. n_weighted and share_weighted down-weight split/merge branch rows by their crosswalk_weight so a one-to-many split counts as one occupation, not multiple branch rows.

Examples

reconciled <- tibble::tibble(
  to_soc_code = c("11-1011", "11-1011", "15-1252"),
  change_type = factor(c("real_update", "stale_carryforward", "real_update")),
  safely_comparable = c(TRUE, TRUE, TRUE)
)
onet_change_summary(reconciled)
#> # A tibble: 2 × 14
#>   summary_level job_family n_group share_group mean_value_change
#>   <chr>         <chr>        <int>       <dbl>             <dbl>
#> 1 overall       NA               3           1                NA
#> 2 overall       NA               3           1                NA
#> # ℹ 9 more variables: median_abs_value_change <dbl>,
#> #   share_safely_comparable <dbl>, share_method_break <dbl>,
#> #   share_crosswalk_uncertain <dbl>, change_type <chr>, n <int>,
#> #   n_weighted <dbl>, share <dbl>, share_weighted <dbl>