insertMVs {imputeLCMD} | R Documentation |
Generates missing values in data.
Description
this function generates missing data in a complete data matrix
Usage
insertMVs(original, mean.THR, sd.THR, MNAR.rate)
Arguments
original |
complete data matrix containing all measurements |
mean.THR , sd.THR |
- parameters of the threshold distribution which controls the MVs rate (mean.THR should be initially set such that the result of the initial thresholding, in terms of no. of NAs, equals the desired total missing data rate) - example: if one wants to generate 30 mean.THR can be set as follows: mean.THR = quantile(pepExprsData, probs = 0.3) - sd.THR is usually set to a small value (e.g. 0.1) |
MNAR.rate |
percentage of MVs which are missing not at random |
Value
A list that contains the original complete data matrix, the data matrix with missing data and the percentage of missing data
[Package imputeLCMD version 2.1 Index]