Sampling of values for imputation
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 |
minimal intensity value of the precursor/peptide. Is only required if |
noise |
noise value for the precursor/peptide. Is only required if |
mean |
mean intensity value of the condition with missing values for a given precursor/peptide. Is only required if |
sd |
mean of the standard deviation of all conditions for a given precursor/peptide. |
missingness |
the missingness type of the data determines how values for imputation are sampled. This can be |
method |
the method to be used for imputation. For |
skip_log2_transform_error |
logical, 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 thrown. |
A vector of values for the imputation of missing data. The length of the vector depends on the number of replicates.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.