| as_svydesign | R Documentation |
as_svydesign() builds a linearization (ultimate-cluster) design from a
prepped recipe; as_svrepdesign() builds a replicate-weights design from a
bootstrap (weightflow_boot) or jackknife (weightflow_jack) object, so
survey/srvyr standard errors include the recipe's adjustments. Both require
the 'survey' package. With replicate weights you can then estimate any
statistic for any domain (svytotal, svymean, svyratio, svyby, ...)
with variances that reflect the whole recipe.
as_svydesign(object, ids, strata = NULL, weight_name = ".weight", ...)
as_svrepdesign(object, ...)
object |
for |
ids, strata |
column names of the PSU and the stratum. |
weight_name |
name of the weight column. |
... |
passed to the survey constructor. |
A survey.design / svyrep.design object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.