View source: R/accessor-functions.R
| get_rep_type | R Documentation |
Identify the type of replication method used for the replicates in a replicate design object.
get_rep_type(rep_design)
rep_design |
A replicate design object |
A character string giving the type of replication method.
data('scd', package = 'survey')
scd_design <- svydesign(
data = scd,
id = ~ ambulance,
prob = ~ 1,
strata = ~ ESA,
nest = TRUE
)
scd_design |>
as_bootstrap_design(replicates = 5) |>
get_rep_type()
scd_design |>
as_fays_gen_rep_design(
variance_estimator = "Ultimate Cluster"
) |>
get_rep_type()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.