Description Usage Arguments Value References See Also Examples
Apply univariate imputation to a matrix or poplin object. The supported methods include
Half-minimum imputation: for each feature, missing values are replaced with half the observed minimum.
Median imputation: for each feature, missing values are replaced with the median of non-missing values.
Mean imputation: for each feature, missing values are replaced with the mean of non-missing values.
1 2 3 4 5 | ## S4 method for signature 'matrix'
impute_univariate(x, type = c("halfmin", "median", "mean"))
## S4 method for signature 'poplin'
impute_univariate(x, xin, xout, type = c("halfmin", "median", "mean"))
|
x |
A matrix or poplin object. |
type |
Character specifying the method for univariate imputation. |
xin |
Character specifying the name of data to retrieve from |
xout |
Character specifying the name of data to store in |
A matrix or poplin object of the same dimension as
x
containing the imputed intensities.
Wei, R., Wang, J., Su, M. et al. Missing Value Imputation Approach for Mass Spectrometry-based Metabolomics Data. Sci Rep 8, 663 (2018). https://doi.org/10.1038/s41598-017-19120-0
Other imputation methods:
impute_knn()
,
impute_pca()
,
impute_randomforest()
,
poplin_impute()
1 2 3 4 5 6 7 8 | data(faahko_poplin)
## poplin object
impute_univariate(faahko_poplin, xin = "raw", xout = "halfmin",
type = "halfmin")
## matrix
m <- poplin_raw(faahko_poplin, "raw")
impute_univariate(m, type = "median")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.