View source: R/mbqnSimuDistortion.R
mbqnSimuDistortion | 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
Brombacher, E., Schad, A., Kreutz, C. (2020). Tail-Robust Quantile Normalization. BioRxiv.
mbqnSimuData()
for data generation.
set.seed(1234) x <- mbqnSimuData("omics.dep") df <- mbqnSimuDistortion(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.