powered by
This (lower-level) function allows to perfom the basic NA-imputaton. Note, at this point the information from argument gr is not used.
gr
.imputeNA( dat, gr = NULL, impParam, exclNeg = TRUE, inclLowValMod = TRUE, silent = FALSE, debug = FALSE, callFrom = NULL )
This function returns a list with $data and $datImp
$data
$datImp
(matrix or data.frame) main data (may contain NA)
NA
(character or factor) grouping of columns of dat, replicate association
dat
(numeric) 1st for mean; 2nd for sd; 3rd for seed
(logical) exclude negative
(logical) label on x-axis on plot
(logical) suppress messages
(logical) supplemental messages for debugging
(character) allow easier tracking of messages produced
for more complex treatment matrixNAneighbourImpute;
matrixNAneighbourImpute
dat1 <- matrix(11:22, ncol=4) dat1[3:4] <- NA .imputeNA(dat1, impParam=c(mean(dat1, na.rm=TRUE), 0.1))
Run the code above in your browser using DataLab