A survey design object using Taylor series (linearization) for variance
estimation. Create with as_survey().
Usage
survey_taylor(
data = data.frame(),
metadata = survey_metadata(),
variables = list(),
groups = character(0),
call = NULL
)Arguments
- data
A
data.framecontaining the survey data. Preferas_survey()over calling this constructor directly.- metadata
A survey_metadata object. Created automatically by
as_survey().- variables
A named list of design specification (ids, weights, strata, fpc, nest, probs_provided). Set automatically by
as_survey().- groups
Set by surveytidy's
group_by(). Alwayscharacter(0)in standalone surveycore use.- call
Language object capturing the construction call.
Design variables (@variables)
idsCharacter vector of cluster ID column names, or
NULLfor simple random sampling.weightsCharacter string naming the weight column.
strataCharacter string naming the strata column, or
NULL.fpcCharacter string naming the finite population correction column, or
NULL.nestLogical.
TRUEif cluster IDs are nested within strata (i.e., the same ID value in two strata refers to two distinct PSUs).probs_providedLogical.
TRUEif the user suppliedprobsrather thanweightstoas_survey().
See also
as_survey() to create a survey_taylor object.
Other constructors:
as_survey(),
as_survey_calibrated(),
as_survey_rep(),
as_survey_srs(),
as_survey_twophase(),
survey_calibrated(),
survey_data(),
survey_replicate(),
survey_srs(),
survey_twophase()