View source: R/calculate_imputation.R
calculate_imputation | R Documentation |
calculate_imputation
is a helper function that is used in the impute
function.
Depending on the type of missingness and method, it samples values from a normal distribution
that can be used for the imputation. Note: The input intensities should be log2 transformed.
calculate_imputation(
min = NULL,
noise = NULL,
mean = NULL,
sd,
missingness = c("MNAR", "MAR"),
method = c("ludovic", "noise"),
skip_log2_transform_error = FALSE
)
min |
a numeric value specifying the minimal intensity value of the precursor/peptide.
Is only required if |
noise |
a numeric value specifying a noise value for the precursor/peptide. Is only
required if |
mean |
a numeric value specifying the mean intensity value of the condition with missing
values for a given precursor/peptide. Is only required if |
sd |
a numeric value specifying the mean of the standard deviation of all conditions for a given precursor/peptide. |
missingness |
a character value specifying the missingness type of the data determines
how values for imputation are sampled. This can be |
method |
a character value specifying the method to be used for imputation. For
|
skip_log2_transform_error |
a logical value, if FALSE a check is performed to validate that input values are log2 transformed. If input values are > 40 the test is failed and an error is returned. |
A value sampled from a normal distribution with the input parameters. Method specifics are applied to input parameters prior to sampling.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.