Returns a data.frame with the weight at each stage and the factor of each step (stage weight / previous-stage weight), handy for custom plots.
Examples
fitted <- weighting_spec(sample_survey, base_weights = pw) |>
step_nonresponse(respondent = responded, method = "weighting_class", by = "region") |>
prep()
head(weight_factors(fitted))
#> base stage_1_step_nonresponse factor_stage_1_step_nonresponse
#> 1 12.5 19.07051 1.525641
#> 2 12.5 0.00000 0.000000
#> 3 12.5 0.00000 0.000000
#> 4 12.5 0.00000 0.000000
#> 5 12.5 19.07051 1.525641
#> 6 12.5 19.07051 1.525641
