Learn R Programming

BIFIEsurvey (version 1.5-0)

BIFIE.data.boot: Create BIFIE.data Object based on Bootstrap

Description

Creates a BIFIE.data object based on bootstrap designs. The sampling is done assuming independence of cases.

Usage

BIFIE.data.boot( data , wgt=NULL ,  pv_vars = NULL ,
	     Nboot = 500 , seed = .Random.seed , cdata=FALSE)

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 BIFIEdata object should be compactly saved. The default is FALSE.

Value

  • Object of class BIFIEdata

See Also

BIFIE.data, BIFIE.data.jack

Examples

Run this code
#############################################################################
# EXAMPLE 1: Bootstrap TIMSS data set
#############################################################################
data(data.timss1)

# bootstrap samples using weights
bifieobj1 <- BIFIE.data.boot( data.timss1 , wgt="TOTWGT" )
summary(bifieobj1)

# bootstrap samples without weights
bifieobj2 <- BIFIE.data.boot( data.timss1  )
summary(bifieobj2)

Run the code above in your browser using DataLab