Learn R Programming

GRAB (version 0.2.2)

GRAB.SimuPheno: Simulate phenotype using linear predictor eta

Description

GRAB package can help simulate a wide variaty of phenotypes

Usage

GRAB.SimuPheno(
  eta,
  traitType = "binary",
  control = list(pCase = 0.1, sdError = 1, pEachGroup = c(1, 1, 1), eventRate = 0.1),
  seed = NULL
)

Value

a numeric vector of phenotype

Arguments

eta

linear predictors, usually covar x beta.covar + genotype x beta.genotype

traitType

"quantitative", "binary", "ordinal", or "time-to-event"

control

a list of parameters for controlling the simulation process

seed

a random number seed for reproducibility

Details

Check https://wenjianbi.github.io//grab.github.io/docs/simulation_phenotype.html for more details.