simData: Simulating a RT-PCR miRNA dataset.

Description Usage Arguments

View source: R/SimData.R

Description

simData simulates a RT-PCR miRNA dataset with user defined levels of variability and treatment effect size.

Usage

1
2
3
4
simData(n.trt = 50, n.ctrl = 50, n.gene = 96, sigma.error, n.err = 10,
  mean.sample = 0.6, sigma.sample = 0.6, sigma.gene = 0,
  n.big.effect = 5, n.small.effect = 15, mean.big.effect = 5,
  mean.small.effect = 2)

Arguments

n.trt

Number of simulated treatment samples

n.ctrl

Number of simulated control samples

n.gene

Number of simulated genes in the panel

sigma.error

a vector of length 2 for 2 different measurement error sizes (sd).

n.err

number of genes with sigma.error[2]. The rest (n.gene - n.err) have sigma.error[1] measurement error.

mean.sample

the unadjusted mean of the samples. Can generally be left as default

sigma.sample

the unadjusted sample to sample sd. Can generallyb e left as default.

sigma.gene

sd of gene to gene effect sizes for large and small treatment effects.

n.big.effect

Number of genes with large treatment effect

n.small.effect

Number of genes with small treatment effect

mean.big.effect

Average effect size for a "large" treatment effect

mean.small.effect

Average effect size for a "small" treatment effect


MiRAnorm documentation built on May 1, 2019, 7:12 p.m.