.imputeNA {wrProteo} | R Documentation |
Basic NA-imputaton (main)
Description
This (lower-level) function allows to perfom the basic NA-imputaton.
Note, at this point the information from argument gr
is not used.
Usage
.imputeNA(
dat,
gr = NULL,
impParam,
exclNeg = TRUE,
inclLowValMod = TRUE,
silent = FALSE,
debug = FALSE,
callFrom = NULL
)
Arguments
dat |
(matrix or data.frame) main data (may contain |
gr |
(character or factor) grouping of columns of |
impParam |
(numeric) 1st for mean; 2nd for sd; 3rd for seed |
exclNeg |
(logical) exclude negative |
inclLowValMod |
(logical) label on x-axis on plot |
silent |
(logical) suppress messages |
debug |
(logical) supplemental messages for debugging |
callFrom |
(character) allow easier tracking of messages produced |
Value
This function returns a list with $data
and $datImp
See Also
for more complex treatment matrixNAneighbourImpute
;
Examples
dat1 <- matrix(11:22, ncol=4)
dat1[3:4] <- NA
.imputeNA(dat1, impParam=c(mean(dat1, na.rm=TRUE), 0.1))
[Package wrProteo version 1.12.0 Index]