MVgen | R Documentation |
This function is designed to ampute datasets.
MVgen(dataset, prop_NA)
dataset |
dataset to be amputed |
prop_NA |
desired proportion of missing values in the amputed dataset |
A dataset with missing values.
M. Chion, Ch. Carapito and F. Bertrand (2021). Accounting for multiple imputation-induced variability for differential analysis in mass spectrometry-based label-free quantitative proteomics. arxiv:2108.07086. https://arxiv.org/abs/2108.07086.
library(mi4p)
data(datasim)
datasim_amp <- MVgen(datasim, .2)
sum(is.na(datasim_amp))/prod(dim(datasim_amp))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.