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:
callcallestimatortype of estimatorcontrollist of controlsipw_weightsestimated IPW weightsipw_weights_totalestimated IPW total (sum)ps_scores_nonprobestimated propensity scores for non-probability sampleps_scores_probestimated propensity scores for probability samplecase_weightscase weightsoutputestimated means and standard errorsSEestimated standard errors of V1 and V2confidence_intervalconfidence intervalsnonprob_sizesize of the non-probability sampleprob_sizesize of the probability samplepop_sizepopulation sizepop_size_fixedwhether the population size is treated as fixedno_probwhether probability sample was providedoutcomemodel detailsselectionselection detailsestimator_methodestimator methodselection_formulaselection formulaoutcome_formulaoutcome formulavars_selectionwhether variable selection algorithm was appliedvars_outcomevariables of the outcome modelsys_rand_predpredicted values for the random sample (if applies)ys_nons_predpredicted values for the non-probability sampleys_residresiduals 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
#> ----------------------------------------------------------------
