gen_randNA: Generation of missing values at random locations in a data...

Description Usage Arguments Value Author(s) References Examples

Description

Introduces a random amount of missing values in a single column of the data array.

Usage

1

Arguments

dat

Matrix of betas or M-values

col

Column for missing data insertion

frac

Fraction of missing data to be inserted

Value

Returns input data array with the missing values inserted.

Author(s)

Pietro Di Lena

References

Di Lena P et al: Missing value estimation methods for DNA methylation data. submitted to Bioinformatics

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Load the methyLImp dataset, containing no missing value
data(gse64495)
summary(gse64495)
## Artificially introduce 10% missing values in the first sample
## with the gen_randNA function
set.seed(50)
samp <- 1
frac <- 0.1
gse64495.mis <- gen_randNA(gse64495,samp,frac)
summary(gse64495.mis)

aprodi/methyLImp documentation built on May 25, 2019, 2:20 p.m.