simulateData: Simulate Data for Package Testing and Demonstration Purposes

Description Usage Arguments Value Note Author(s) Examples

View source: R/simulateData.R

Description

Simulate Data for Package Testing and Demonstration Purposes

Usage

1
2
simulateData(nCols = 40, nRows = 1000, nEffectRows = 5, nNoEffectCols = 5,
 betweenClassDifference = 1, withinClassSd = 0.5)

Arguments

nCols

number of samples; currently this should be an even number

nRows

number of features (genes)

nEffectRows

number of differentially expressed features

nNoEffectCols

number of samples for which the profile of a differentially expressed feature will be set similar to the other class

betweenClassDifference

Average mean difference between the two classes to simulate a certain signal in the features for which an effect was introduced; the default is set to 1

withinClassSd

Within class standard deviation used to add a certain noise level to the features for which an effect was introduced; the default standard deviation is set to 0.5

Value

object of class ExpressionSet with the characteristics specified

Note

The simulation assumes the variances are equal between the two classes. Heterogeneity could easily be introduced in the simulation if this would be requested by the users.

Author(s)

W. Talloen and T. Verbeke

Examples

1
2
someEset <- simulateData(nCols = 40, nRows = 1000, nEffectRows = 5, nNoEffectCols = 5)
someEset

a4Core documentation built on Nov. 8, 2020, 5:39 p.m.