noise.control {mi} | R Documentation |
Auxiliary function as user interface for adding noise for mi
procedure.
Typically only used when calling mi
.
noise.control(method=c("reshuffling", "fading"), pct.aug=10, K=1)
method |
two methods are implemented: reshuffling and fading . |
pct.aug |
percent of N being add into the exisitng data, where N is the number of observation of the completed data set, default is 10. |
K |
the cooling parameter, default is 1. |
If reshuffling
method is used, the imputation will randomly switch between
randomly imputing data from marginal (imputing data from the observed values)
and drawing from the modeled based values. And with each iteration (s), the probability of cooling (q) decreases by number of iterations,
such that q = K/s
.
If fading
method is used, the imputation will augment
Yu-Sung Su yajima@stat.columbia.edu
### NOT RUN #=========================================================== # add fadding empirical noise by augmenting 10 #=========================================================== if(0){ data(CHAIN) IMP <- mi(CHAIN, add.noise=noise.control(method="fading", pct.aug=10)) #================================================= # add noise by randomly drawing from the marginal #================================================= ## This is the default setting IMP <- mi(CHAIN, add.noise=noise.control(method="reshuffling", K=1)) #================================================= # add no noise #================================================= IMP <- mi(CHAIN, add.noise=FALSE) }