Learn R Programming

gtx (version 0.0.3)

gtx.params: Parameter format for multi-SNP analyses

Description

Format used by functions in the gtx package for parameterisations for multi-SNP analyses. The parameterisation describes the SNPs to be used, choice of coded and noncoded alleles, and potentially allele frequency and effect size information.

Arguments

Details

params must be a data frame with (at least) columns called snp, coded.allele and noncoded.allele. For some functions, additional columns called coded.freq and coef are also required. Suitable parameterisations in the required format are provided for some genetic risk score analyses by cad.scores, t2d.scores etc.

Examples

Run this code
align.snpdata.coding(params, snpdata)
grs.make.scores(params, snpdata)
grs.onesnp.apply(params, object)
make.moments2(params, phenolist, snpdata)

Run the code above in your browser using DataLab