Generate Phenotypes
GenPheno(
anno,
beta,
covar,
geno,
reg_param,
binary = FALSE,
include_residual = TRUE,
indicator = FALSE,
method = "none",
prop_causal = 1,
random_signs = FALSE,
random_var = 0,
weights = c(0, 1, 2)
)
(n x 1) numeric vector.
(snps x 1) annotation vector.
(3 x 1) coefficient vector for bmvs, dmvs, and ptvs respectively.
Covariate matrix.
(n x snps) genotype matrix.
Regression parameters.
Generate binary phenotype? Default: FALSE.
Include residual? If FALSE, returns the expected value. Intended for testing.
Convert raw counts to indicators? Default: FALSE.
Genotype aggregation method. Default: "none".
Proportion of variants which are causal.
Randomize signs? FALSE for burden-type genetic architecture, TRUE for SKAT-type.
Frailty variance in the case of random signs. Default: 0.
Aggregation weights.