| imputeRowMin {xcms} | R Documentation |
imputeRowMin imputes missing values in x by replacing NAs in each row
with a proportion of the minimal value for that row (i.e.
min_fraction * min(x[i, ])).
imputeRowMin(x, min_fraction = 1/2)
x |
|
min_fraction |
|
Johannes Rainer
imputeLCMD package for more left censored imputation functions.
Other imputation functions:
imputeRowMinRand()
library(faahKO)
data("faahko")
xset <- group(faahko)
mat <- groupval(xset, value = "into")
mat_imp <- imputeRowMin(mat)
head(mat)
head(mat_imp)
## Replace with 1/8 of the row mimimum
head(imputeRowMin(mat, min_fraction = 1/8))