Skip to contents

Returns the list of weighting operations recorded on a survey design object. Each entry is appended by surveyweights after a calibration or nonresponse adjustment step. Returns an empty list when no history has been recorded.

Usage

survey_weighting_history(x)

Arguments

x

A survey design object (any class inheriting from survey_base).

Value

A list of history entries, or list() if no history is present.

Examples

d <- as_survey(nhanes_2017, ids = sdmvpsu, weights = wtint2yr,
               strata = sdmvstra, nest = TRUE)
survey_weighting_history(d)   # list() — no weighting history
#> list()