View source: R/BIFIE.data.boot.R
BIFIE.data.boot | R Documentation |
BIFIE.data
Object based on Bootstrap
Creates a BIFIE.data
object based on bootstrap designs.
The sampling is done assuming independence of cases.
BIFIE.data.boot( data, wgt=NULL, pv_vars=NULL, Nboot=500, seed=.Random.seed, cdata=FALSE)
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 |
Object of class BIFIEdata
BIFIE.data
, BIFIE.data.jack
## Not run: ############################################################################# # 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) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.