sample.genes.ind.2: Sample Observations (gene expressions) from Independent...

Description Usage Arguments Value Author(s) Examples

Description

Sample observations (gene expressions) from independent normal distribution for both control group and the treatment group with known sd for control group and the variance ratio between treatment/control groups.

Usage

1
sample.genes.ind.2(n, sd.ctrl, var.ratio, delta, distrn = "normal")

Arguments

n

positive integer number of replicates for each gene each group (control/treatment)

sd.ctrl

vector of positive numbers for the sample length as ngenes.ind

var.ratio

a positive number for the ratio of variance between treatment and control

delta

effect size for sample size calculation the minimum distance from zero for expression values of genes coming from the true alternative hypothesis group

distrn

distribution of expression data, set to be normal for here

Value

returns a matrix with rows (the same length as sd.trl) and 2*n columns with the first n columns being samples from control group and last n columns being from treatment group for each gene (row)

Author(s)

Peng Liu peng\_liu@groton.pfizer.com

Examples

1
2
3
sd.ctrl <- c(1:100)*0.01

test.sample1 <- sample.genes.ind.2(n = 20, sd.ctrl, var.ratio = 1, delta = 10)

warnes/exp.ssize documentation built on May 4, 2019, 12:59 a.m.