Summarises the nonprob
class object. The summary depends on the type of
the estimator (i.e. IPW, MI, DR)
Usage
# S3 method for class 'nonprob'
summary(object, ...)
Value
An object of nonprob_summary
class containing:
call
callestimator
type of estimatorcontrol
list of controlsipw_weights
estimated IPW weightsipw_weights_total
estimated IPW total (sum)ps_scores_nonprob
estimated propensity scores for non-probability sampleps_scores_prob
estimated propensity scores for probability samplecase_weights
case weightsoutput
estimated means and standard errorsSE
estimated standard errors of V1 and V2confidence_interval
confidence intervalsnonprob_size
size of the non-probability sampleprob_size
size of the probability samplepop_size
population sizepop_size_fixed
whether the population size is treated as fixedno_prob
whether probability sample was providedoutcome
model detailsselection
selection detailsestimator_method
estimator methodselection_formula
selection formulaoutcome_formula
outcome formulavars_selection
whether variable selection algorithm was appliedvars_outcome
variables of the outcome modelsys_rand_pred
predicted values for the random sample (if applies)ys_nons_pred
predicted values for the non-probability sampleys_resid
residuals for the non-probability sample
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"
)
summary(ipw_est1)
#> A nonprob_summary object
#> - call: nonprob(data = admin, selection = ~region + private + nace +
#> size, target = ~single_shift, svydesign = jvs_svy, method_selection = "logit")
#> - estimator type: inverse probability weighting
#> - nonprob sample size: 9344 (18%)
#> - prob sample size: 6523 (12.6%)
#> - population size: 51870 (fixed: false)
#> - detailed information about models are stored in list element(s): "selection"
#> ----------------------------------------------------------------
#> - sum of IPW weights: 52898.13
#> - distribution of IPW weights (nonprob sample):
#> - min: 1.1693; mean: 5.6612; median: 4.3334; max: 49.9504
#> - distribution of IPW probabilities (nonprob sample):
#> - min: 0.0189; mean: 0.2894; median: 0.2525; max: 0.8552
#> - distribution of IPW probabilities (prob sample):
#> - min: 0.0200; mean: 0.2687; median: 0.2291; max: 0.8552
#> ----------------------------------------------------------------