Make genetic risk scores from individual-level data.
Constructs the value of one or more genetic risk scores with specified parameterisation, from individual-level genotype data. Automatically handles coded allele designation.
a data frame, see
a list with snpinfo and data, see
text to add to score name to make new column name in
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.
The snpdata list with additional column(s) added to data.
Toby Johnson Toby.x.Johnson@gsk.com
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.