Displaying 1 result from an estimated 1 matches for "imputedwork".
2009 Oct 21
0
multiple imputation with mix package
....mix as follows:
sTrain <- prelim.mix(trainSet,nCategorical)
thetaTrain <- em.mix(sTrain,maxits=1000,showits=TRUE,eps=0.0001)
I then attempt to use this model to impute a missing field (TC) in the
data set workSet as follows:
workSet$TC <- NA
sWork <- prelim.mix(workSet,nCategorical)
imputedWork <- imp.mix(sWork,thetaTrain,workSet)
This does not give realistic values for TC (they are around 0). My
guess is that the part of the imputation model information is stored
in sWork
If I do this it looks like it works better (values of TC in the correct range):
sWork$xbar = sTrain$xbar
sWork$sd...