Description Usage Arguments Value Author(s) Examples

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.

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

`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 |

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)

Peng Liu peng\[email protected]

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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.