sdY.correction | R Documentation |
Estimate trait standard deviation given vectors of variance of coefficients, MAF and sample size, and correct BETA and SE.
sdY.correction(beta, se, maf, n)
beta |
vector of coefficients |
se |
vector of standard error of coefficients |
maf |
vector of MAF (same length as beta and se) |
n |
sample size |
For studies of quantitative traits, measurements can come in different scales, leading to differences in standard deviation of the effects. This function estimates the trait standard deviation from MAF and sample size, and by dividing beta and se by this estimate we can make var.beta = 1, thus making different datasets of quantitative traits in different scales comparable.
Estimate is based on var(beta-hat) = var(Y) / (n * var(X)) var(X) = 2*maf*(1-maf) so we can estimate var(Y) by regressing n*var(X) against 1/var(beta)
This is an adaptation of sdY.est function, by Chris Wallace
a list containing adjusted Beta and SE by estimated standard deviation of Y
Guillermo Reales, Chris Wallace
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.