## load data (numeric and factor variables)
dat <- toenail2[1:400, ]
## delete some observations
set.seed(123)
dat[sample(400, 20), 2] <- NA
dat[sample(400, 30), 4] <- NA
## obtain correct input 'suffStat' for 'flexMItest'
suff <- getSuff(imp, test="flexCItwd")
## analyse data
# continuous variables only
flexCItwd(4, 5, NULL, dat)
# discrete variables only
flexCItwd(2, 3, NULL, dat)
# mixed variables
flexCItwd(2, 3, 4, dat)
Run the code above in your browser using DataLab