simulateAndTable: simulate and table information in one step

Description Usage Arguments Value See Also

Description

A wrapper that performs tabulation of the CategoryFrequencies-objects directly instead of saving them to the hard drive first as in simulateAndSafe.

Usage

1
2
3
4
simulateAndTable(seed = 123, n.obs = 500, n.snp = 200, 
maf = rep(c(0.05, 0.1, 0.25, 0.4), each = 50), ntree = 500, 
mafIntervals = list(maf0.05 = 1:50, maf0.10 = 51:100, 
maf0.25 = 101:150, maf0.40 = 151:200))

Arguments

seed

The seed to be used in data simulation.

n.obs

A integer. The number of observations.

n.snp

A integer. The number of SNPs.

maf

A numeric of length n.snps indicating the MAF with which the according SNP should be simulated.

ntree

Passed to randomForest.

mafIntervals

A list with each element giving the indices of variables being simulated with the according MAF. Depends on how the data was simulated in simulateSNPdata.

Value

A list with components:

tableAll

An object of class LevelsVsLayerByMAF as returned by tableLevelsVsLayerByMAF.

tableSplitVars

An object of class SplitVarLevelsVsLayerByMAF as returned by tableSplitVarLevelsVsLayerByMAF.

tableCforest

An object of class LevelsVsLayerCFbyMAF as returned by tableLevelsVsLayerCFbyMAF.

See Also

simulateAndSafe, tableSplitVarsByLayerAndMAF


adibender/rFtools documentation built on May 14, 2019, 5:13 a.m.