View source: R/impute_LS_combined.R
impute_LS_combined | R Documentation |
Perform LSimpute_combined as described by Bo et al. (2004)
impute_LS_combined( ds, k = 10, eps = 1e-06, min_common_obs = 5, p_mis_sim = 0.05, verbose_gene = FALSE, verbose_array = FALSE, verbose_gene_p = FALSE, verbose_array_p = FALSE )
ds |
A data frame or matrix with missing values. |
k |
Directly passed to |
eps |
Directly passed to |
min_common_obs |
Directly passed to |
p_mis_sim |
Percentage of observed values that are set |
verbose_gene |
Should |
verbose_array |
Should |
verbose_gene_p |
Should |
verbose_array_p |
Should |
This function performs LSimpute_combined as described by Bo et al. (2004).The function assumes that the genes are the rows of ds
.
LSimpute_combined combines imputation values from impute_LS_gene()
and
impute_LS_array()
using a global approach for the mixing coefficient p.
The amount of feedback given from these underlying functions is controlled
via verbose_gene, verbose_array, verbose_gene_p, verbose_array_p
. The last
two control the amount of feedback while estimating p and the first two
the amount of feedback during the estimation of the values that are mixed
with p. Internally, the imputed dataset from impute_LS_gene()
is passed
on to impute_LS_array()
. Therefore, all messages from impute_LS_gene()
are truly from impute_LS_gene()
and not a part of impute_LS_array()
,
which never calls impute_LS_gene()
in this case. Furthermore, all messages
from impute_expected_values()
belong to impute_LS_array()
.
An object of the same class as ds
with imputed missing values.
Bo, T. H., Dysvik, B., & Jonassen, I. (2004). LSimpute: accurate estimation of missing values in microarray data with least squares methods. Nucleic acids research, 32(3), e34
Other LSimpute functions:
impute_LS_adaptive()
,
impute_LS_array()
,
impute_LS_gene()
set.seed(123) ds_mis <- delete_MCAR(mvtnorm::rmvnorm(100, rep(0, 10)), 0.1) ds_imp <- impute_LS_combined(ds_mis)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.