Returns the metadata recorded by nis_cost() or nis_design() when cost
adjustment was requested. Data frame operations may drop custom attributes;
call this on the direct nis_cost() result or on the survey design returned
by nis_design().
Arguments
- .data
A data frame returned by
nis_cost()or a survey design returned bynis_design().
Value
A list describing the charge and CCR fields, CPI-U source and base
year, annual multipliers, counts of invalid CCR and of missing or invalid
charges, and output
meanings. Returns NULL when no cost adjustment provenance is present.
See also
Derive outcomes, comorbidities, and costs.
Other outcomes and costs:
nis_comorbidity(),
nis_comorbidity_condition_map(),
nis_cost(),
nis_outcomes()
Examples
charges <- nis_open(nis_example(years = 2019)) |>
dplyr::select(YEAR, TOTCHG, CCR_NIS) |>
dplyr::collect() |>
nis_cost(dollars = 2024)
nis_cost_provenance(charges)$multipliers
#> year multiplier
#> 1 2019 1.226992