impute_univariate: Univariate imputation

Description Usage Arguments Value References See Also Examples

Description

Apply univariate imputation to a matrix or poplin object. The supported methods include

Usage

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"))

Arguments

x

A matrix or poplin object.

type

Character specifying the method for univariate imputation.

xin

Character specifying the name of data to retrieve from x when x is a poplin object.

xout

Character specifying the name of data to store in x when x is a poplin object.

Value

A matrix or poplin object of the same dimension as x containing the imputed intensities.

References

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

See Also

Other imputation methods: impute_knn(), impute_pca(), impute_randomforest(), poplin_impute()

Examples

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")

jaehyunjoo/poplin documentation built on Jan. 8, 2022, 1:13 a.m.