Skip to contents

Reconstructs a survey_taylor from a survey_replicate created by create_*_weights(). The original Taylor structure (PSU IDs, strata, FPC, nest flag) is read from the "replicate_creation" entry in the weighting history. Replicate weight columns are dropped from @data.

Usage

as_taylor_design(data)

Arguments

data

A survey_replicate created by create_*_weights(), or a survey_taylor (returns unchanged with a warning).

Value

A survey_taylor.

Details

Returns data unchanged (with a warning) if data is already a survey_taylor.