grs.make.scores: Make genetic risk scores from individual-level data.
Description
Constructs the value of one or more genetic risk scores with specified
parameterisation, from individual-level genotype data. Automatically
handles coded allele designation.
text to add to score name to make new column name in snpdata$data.
Value
The snpdata list with additional column(s) added to data.
Details
This function computes subject-specific values of one or more additive
multi-SNP genetic risk scores using a supplied parameterisation and
subject-specific genotype and phenotype data. These risk scores are
returned as additional columns on the input genotype data frame,
making it straightforward to use them as explanatory variables for any
of the model fitting functions available in the R language, such as
lm, glm, or coxph.