Data simulation using GRAB package
The example data (including 50 families with 10 members and 500 unrelated subjects) in the directory of system.file("extdata", package = "GRAB")
were simulated using the functions in GRAB
package.
Genotype Simulation
This section demonstrates how to
- simulate a genotype matrix for unrelated and related subjects
- make PLINK binary files using the genotype matrix
- make BGEN files using PLINK binary files
Phenotype Simulation
This section demonstrates how to
- simulate binary, quantitative, time-to-event, and ordinal categorical phenotypes
- simulate phenotypes with random effect following a multivariate normal distribution
- simulate phenotypes using real genotype data (given PLINK binary files)