Standardize an NHANES design
nhanes_design_standardize.Rd
Standardize an NHANES design
Usage
nhanes_design_standardize(
x,
standard_variable = "demo_age_cat",
standard_weights = c(0.155, 0.454, 0.215, 0.177)
)
Arguments
- x
[nhanes_design]
an NHANES design object. See nhanes_design for more details.
- standard_variable
[character(1)]
The name of the variable used to create standardization groups. The default is to use
demo_age_cat
, which leads to age standardization.- standard_weights
[numeric(n)]
The proportionate weights for each group defined by the standard variable. The number of weights should equal the number of groups defined by
standard_variable
and all weights must be >0.
Value
an nhanes_design object.