GenerateData: Simulate a dataset from a 1:1 matched case control study

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/RPCLR-functions.R

Description

Simulate a dataset from a 1:1 matched case control study

Usage

1
GenerateData(numstrat, NumType.BM, NumType.NS, mu.diff, rho)

Arguments

numstrat

number of matched pairs

NumType.BM

number of features with non-zero difference in means between cases and controls (i.e. biomarkers)

NumType.NS

number of features with identical means between cases and controls (i.e. noise)

mu.diff

Difference in means between cases and controls for biomarkers

rho

correlation between matched pairs for biomarkers only

Details

Biomarkers and noise features are simulated as independent random variables following a Gaussian distribution with unit variance.

Value

Data

a numeric data matrix of n (number of subjects) rows and p (number of features) columns

Out

a response vector of length n of binary indicators of case/control status

Strat

a vector of length n of matched pair (stratum) indicators

Author(s)

Raji Balasubramanian

References

Balasubramanian, R., Houseman, E. A., Coull, B. A., Lev, M. H., Schwamm, L. H., Betensky, R. A. (2012). Variable importance in matched case-control studies in settings of high dimensional data, Submitted to Biostatistics.

See Also

GetVarImp

Examples

1
2
3
4
5
## Simulate Data
MyDat <- GenerateData(50, 3, 7, 0.5, 0.4)
Dat <- MyDat$Data
Out <- MyDat$Out
Strat <- MyDat$Strat

Example output

Loading required package: MASS
Loading required package: survival

RPCLR documentation built on May 2, 2019, 11:26 a.m.