Imputation of missing values
impute
is calculating imputation values for missing data depending on the selected method.
impute( data, sample, grouping, intensity, condition, comparison, missingness, noise = NULL, method, skip_log2_transform_error = FALSE, retain_columns = NULL )
data |
a dataframe that is ideally the output from the |
sample |
the name of the column containing the sample names. |
grouping |
the name of the column containing precursor or peptide identifiers. |
intensity |
the name of the column containing intensity values. Note: The input intensities should be log2 transformed. |
condition |
the name of the column containing the conditions. |
comparison |
the name of the column containing the comparisons of treatment/reference pairs. This is an output of the
|
missingness |
the name of the column that contains the missingness type of the data determines how values for imputation are sampled.
This should at least contain |
noise |
the name of the column that contains the noise value for the precursor/peptide. Is only required if |
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. |
retain_columns |
A vector indicating if certain columns should be retained from the input data frame. Default is not retaining
additional columns |
A data frame that contains an imputed_intensity
and imputed
column in addition to the required input columns.
The imputed
column indicates if a value was imputed. The imputed_intensity
column contains imputed intensity values
for previously missing intensities.
## Not run: impute( data, sample = r_file_name, grouping = eg_precursor_id, intensity = intensity_log2, condition = r_condition, comparison = comparison, missingness = missingness, method = "ludovic" ) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.