powered by
Missing values are sequentially updated via an EM algorithm.
SeqimputeEM(data, max.ncomps = 5, max.ssq = 0.99, Init = "mean", adjmean = FALSE, max.iters = 200, tol = .Machine$double.eps^0.25)
A list of imputed data frames across impute.comps
impute.comps
number of components to test
a dataset with missing values.
integer corresponding to the maximum number of components to test
maximal SSQ for final number of components. This will be improved by automation.
For continous variables impute either the mean or median.
Adjust (recalculate) mean after each iteration.
maximum number of iterations for the algorithm.
the threshold for assessing convergence.
Thanh Tran (thanh.tran@mvdalab.com), Nelson Lee Afanador (nelson.afanador@mvdalab.com)
A completed data frame is returned that mirrors the model matrix. NAs are replaced with convergence values as obtained via Seqential EM algorithm. If object contains no NAs, it is returned unaltered.
NAs
NOTE: Publication Pending
dat <- introNAs(iris, percent = 25) SeqimputeEM(dat)
Run the code above in your browser using DataLab