mbqnSimuDistortion {MBQN} | R Documentation |
mbqnSimuDistortion
adds a random perturbation of mean and
scale to each column of a matrix.
mbqnSimuDistortion(x, s.mean = 0.05, s.scale = 0.01)
x |
a matrix or data frame. |
s.mean |
scatter of relative change of mean. |
s.scale |
scatter of realtive change in scale, i.e. 0.01 corresponds to 1 percent. |
Shift and scale the sample mean and standard deviation of a matrix.
The perturbation of center and scale relative to mean and standard deviation
of each sample are drawn from a Gaussian distribution |N(0,σ^2)|
with σ_mean=s.mean
and
σ_scale=s.scale
, respectively.
List with:
|
perturbed matrix |
|
numeric array of shifts of the sample means |
|
numeric array of relative scales of the sample standard deviations. |
Ariane Schad
Schad, A. and Kreuz, C., MBQN: R package for mean/median-balanced quantile normalization. In prep. 2019
mbqnSimuData()
for data generation.
set.seed(1234) x <- mbqnSimuData("omics.dep") df <- mbqnSimuDistortion(x)