single_imputation | R Documentation |
Performs a single imputation run and returns the data with NA values replaced by imputed values.
single_imputation(data, design, id_col = "id")
data |
a |
design |
a design or model matrix as produced by
|
id_col |
a character for the name of the column containing the name of the features in data (e.g., peptides, proteins, etc.). |
a data.frame
with NA
values replaced by imputed values.
# Generate a design matrix for the data design <- model.matrix(~ 0 + factor(rep(1:2, each = 3))) # Set correct colnames, this is important for fit_gamma_weights colnames(design) <- paste0("ng", c(50, 100)) yeast %>% # Normalize and log-transform the data psrn("identifier") %>% # Run the imputation single_imputation(design, "identifier")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.