Description Usage Arguments Author(s) Examples
Each SNP is plotted by coefficient in the risk score (x axis) versus estimated effect size for trait of interest in the testing dataset (y axis). A solid red line shows the effect size estimate for the risk score on the trait of interest in the testing dataset.
1 2 |
w |
coefficients for the risk score. |
b |
aligned beta coefficients in the testing dataset. |
s |
standard errors for |
text |
optional labels for SNPs |
textpos |
position for labels for SNPs, as |
textcex |
size for lables for SNPs, as |
alpha |
determines size of confidence limits plotted. |
Toby Johnson Toby.x.Johnson@gsk.com
1 2 3 4 5 6 7 8 9 | data(t2dex)
library(survival)
mycoxph <- coxph(Surv(FollowupDays,FollowupT2D) ~ Overweight,
data = t2dex$data) # fit null model
data(t2d.scores)
assoc1 <- grs.onesnp.apply(t2d.scores, mycoxph) # single SNP association
## risk score fit from single SNPs
grs.plot(t2d.scores$coef, assoc1$beta, assoc1$se, t2d.scores$name)
title(xlab = "risk score weight", ylab = "estimated effect size")
|
Loading required package: survival
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.