grs.make.scores: Make genetic risk scores from individual-level data.

Description Usage Arguments Details Value Author(s)

Description

Constructs the value of one or more genetic risk scores with specified parameterisation, from individual-level genotype data. Automatically handles coded allele designation.

Usage

1
grs.make.scores(params, snpdata, appendage = ".score")

Arguments

params

a data frame, see gtx.params.

snpdata

a list with snpinfo and data, see snpdata.

appendage

text to add to score name to make new column name in snpdata$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.

Value

The snpdata list with additional column(s) added to data.

Author(s)

Toby Johnson Toby.x.Johnson@gsk.com


gtx documentation built on May 2, 2019, 5:08 a.m.