Description Usage Arguments Value Examples
Impute missing values in a LipidomicsExperiment
1 2 3 4 5 6 |
data |
LipidomicsExperiment object. |
measure |
Which measure to use as intensity, usually Area,
Area Normalized or Height. Default is |
method |
The imputation method to use. All methods are wrappers for
|
... |
Other arguments passed to the imputation method. |
LipidomicsExperiment object with missing values imputed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | data(data_normalized)
# Replace with values calculated using K-nearest neighbors
impute_na(data_normalized, "Area", "knn", 10)
# Replace with values calculated from the first K principal components
impute_na(data_normalized, "Area", "svd", 3)
# Replace with Maximum likelihood estimates
impute_na(data_normalized, "Area", "mle")
# Replace with randomly drawn values from a truncated distribution
impute_na(data_normalized, "Area", "QRILC")
# Replace with a minimal value
impute_na(data_normalized, "Area", "minDet")
# Replace with randomly drawn values from a Gaussian distribution
# cerntered around a minimal value
impute_na(data_normalized, "Area", "minProb")
# Replace with zero (not recommended)
impute_na(data_normalized, "Area", "zero")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.