data-raw/bootSmcfcsExamples.R

library(smcfcs)

head(ex_linquad)
#bootstrap twice and impute each twice
#in practice you should bootstrap many more times, e.g. at least 200
imps <- bootSmcfcs(ex_linquad, nBoot=2, nImp=2,
                   smtype="lm", smformula="y~z+x+xsq",
                   method=c("","","norm","x^2",""), seed=564764)
jwb133/bootmi documentation built on Sept. 22, 2024, 10:14 p.m.