Create BIFIE.data Object based on Bootstrap
BIFIE.data.boot.RdCreates a BIFIE.data object based on bootstrap designs.
The sampling is done assuming independence of cases.
Arguments
- data
Data frame: Can be a single or a list of multiply imputed datasets
- wgt
A string indicating the label of case weight.
- pv_vars
An optional vector of plausible values which define multiply imputed datasets.
- Nboot
Number of bootstrap samples for usage
- seed
Simulation seed.
- cdata
An optional logical indicating whether the
BIFIEdataobject should be compactly saved. The default isFALSE.
Examples
if (FALSE) { # \dontrun{
#############################################################################
# EXAMPLE 1: Bootstrap TIMSS data set
#############################################################################
data(data.timss1)
# bootstrap samples using weights
bifieobj1 <- BIFIEsurvey::BIFIE.data.boot( data.timss1, wgt="TOTWGT" )
summary(bifieobj1)
# bootstrap samples without weights
bifieobj2 <- BIFIEsurvey::BIFIE.data.boot( data.timss1 )
summary(bifieobj2)
} # }