View source: R/mJAM_helper_chrX.R View source: R/mJAM_helper.R
get_yty | R Documentation |
To calculate sufficient statistics based on summary statistics. This yty estimate follows Yang et al. (2012) Nat Gen. Marginal estimates from one SNP will produce one yty estimates. Yang suggests taking the median across all SNPs to obtain a robust estimate. Here we record all yty estimates and output both the median and the entire vector.
To calculate sufficient statistics based on summary statistics. This yty estimate follows Yang et al. (2012) Nat Gen. Marginal estimates from one SNP will produce one yty estimates. Yang suggests taking the median across all SNPs to obtain a robust estimate. Here we record all yty estimates and output both the median and the entire vector.
get_yty(maf, N_outcome, betas, betas.se)
get_yty(maf, N_outcome, betas, betas.se)
maf |
A vector of minor allele frequencies |
N_outcome |
Sample size in the GWAS where we obtained 'betas' |
betas |
A vector of marginal estimates of effect sizes (betas for continuous outcome; logOR for binary outcome) |
betas.se |
A vector of the standard errors of marginal effect estimates ('betas'). |
median of yty estimates across all SNPs; and a vector of all yty estimates
median of yty estimates across all SNPs; and a vector of all yty estimates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.