Learn R Programming

rMisbeta (version 1.0)

Sim2Group: This function Sim2Group() simulates the gene expression data for two groups using one-way ANOVA model

Description

Generates the gene expression data using one-way ANOVA model with two groups. The variance of both group should be same and the percentage of the DE genes will be given

Usage

Sim2Group(ng, n1, n2, var0 = 0.1, pde = 0.05)

Arguments

ng

The total number of genes to be generated.

n1

Number of samples in the first group.

n2

Number of samples in the second group.

var0

The variance of the both group.

pde

The proportion of the differentially expressed(DE) genes.

Value

This function returns the following components:

outmat

Simulated gene expression data for two groups.

DEtrue

True DE index.

Examples

Run this code
# NOT RUN {
n1=10;n2=10;
nG=1000
TSimDat<-Sim2Group(ng=nG,n1,n2,var0=0.1,pde=0.1)
Simdat<-TSimDat[[1]]
TrueDE<-TSimDat[[2]]
# }

Run the code above in your browser using DataLab