
Extracts the estimated mean(s) or their standard error(s) from the nonprob object
Source:R/methods.R
extract.Rd
Returns a vector of estimated mean(s) or standard error(s)
Examples
data(admin)
data(jvs)
jvs_svy <- svydesign(ids = ~ 1, weights = ~ weight,
strata = ~ size + nace + region, data = jvs)
ipw_est1 <- nonprob(selection = ~ region + private + nace + size,
target = ~ single_shift,
svydesign = jvs_svy,
data = admin, method_selection = "logit"
)
extract(ipw_est1)
#> target mean SE lower_bound upper_bound
#> 1 single_shift 0.7223628 0.04207711 0.6398932 0.8048324
extract(ipw_est1, "se")
#> target SE
#> 1 single_shift 0.04207711