Learn R Programming

a4 (version 1.20.0)

simulateData: Simulate Data for Package Testing and Demonstration Purposes

Description

Simulate Data for Package Testing and Demonstration Purposes

Usage

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

Examples

Run this code
someEset <- simulateData(nCols = 40, nRows = 1000, nEffectRows = 5, nNoEffectCols = 5)
  someEset

Run the code above in your browser using DataLab