Learn R Programming

svrep (version 0.9.1)

get_rep_type: Access Type of Replication Method

Description

Identify the type of replication method used for the replicates in a replicate design object.

Usage

get_rep_type(rep_design)

Value

A character string giving the type of replication method.

Arguments

rep_design

A replicate design object

Examples

Run this code
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()

Run the code above in your browser using DataLab