extract {nonprobsvy} | R Documentation |
Extracts estimates from the nonprob class object
Description
Returns a data.frame
of estimated mean(s) or standard error(s)
Usage
extract(object, what)
Arguments
object |
object of of the |
what |
what to extract: all estimates (mean(s), SE(s) and CI(s); |
Value
a data.frame
with selected information
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)
extract(ipw_est1, "se")
[Package nonprobsvy version 0.2.2 Index]