Description Usage Arguments References Examples
Using different methods to impute the missing values of the data. CEPICS provides three imputation methods.
1 | imputeData(data, method = "knn", k = 10, trans_zero_to_NA = FALSE)
|
data |
The data matrix needs to be imputed. |
method |
Choose from "knn", "mean", and "median". "knn": using K nearest neighbors methods to impute the missing value. "mean": using the mean value of each feature to impute the missing value. "median": using the median value of each feature to impute the missing value. |
k |
An integer value which means the number of the nearest neighbors when using KNN method to impute missing values. |
trans_zero_to_NA |
A logical value. If TRUE, all zeros in the data will be converted to NA. |
Troyanskaya,O. et al. (2001) Missing value estimation methods for DNA microarrays. Bioinformatics, 17, 520-525.
1 2 | data(COAD_Methy)
COAD_Methy <- imputeData(COAD_Methy, method = 'mean')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.