MVgen function

Amputation of a dataset

Amputation of a dataset

This function is designed to ampute datasets.

MVgen(dataset, prop_NA)

Arguments

  • dataset: dataset to be amputed
  • prop_NA: desired proportion of missing values in the amputed dataset

Returns

A dataset with missing values.

Examples

library(mi4p) data(datasim) datasim_amp <- MVgen(datasim, .2) sum(is.na(datasim_amp))/prod(dim(datasim_amp))

References

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. tools:::Rd_expr_doi("doi:10.1371/journal.pcbi.1010420") .