eta
GRAB
package can help simulate a wide variaty of phenotypes
GRAB.SimuPheno(
eta,
traitType = "binary",
control = list(pCase = 0.1, sdError = 1, pEachGroup = c(1, 1, 1), eventRate = 0.1),
seed = NULL
)
a numeric vector of phenotype
linear predictors, usually covar x beta.covar + genotype x beta.genotype
"quantitative", "binary", "ordinal", or "time-to-event"
a list of parameters for controlling the simulation process
a random number seed for reproducibility
Check https://wenjianbi.github.io//grab.github.io/docs/simulation_phenotype.html for more details.