Hi Andrew,
I had questions on the Sum of Neff when conducting a meta-analysis and munging my meta-analyzed results. I also had a question regarding running GSEM on meta-analyzed data.
I am only working with summary statistics from binary phenotypes.
I want to get meta-analysed summary statistics using METAL from summary statistics of a meta-analysis (publicly available online) and summary statistics from my GWAS. I will then use these new sumstats for GSEM and munge my new meta-analysed summary statistics to examine h2, look at rg with other summary statistics.
1. For my meta-analysis with METAL, I am using the sample size method (uses p-value and direction of effect, weighted according to sample size) and not the standard error method because my effect size estimates and standard errors are not in the same units in all studies. Typically, you give the sum of the Neff (e.g., Neff UKB and Neff for the online meta-analysis). But, in light of the recent recommendations on the GenomicSEM for estimating heritability, I thought it would be better to use the sum of effective sample size (e.g., Neff UKB and the sum of Neff for the online meta-analysis). Is that correct?
2. I get my newly meta-analyzed summary statistics, where the weight column corresponds to the sum of Neff by SNP. I munge each meta-analyzed result with N = Weight because my weight corresponds to the sum of the Neff. My weight = Sum of Neff because that is the input N I provided in METAL.
3. Before running my GSEM with SNP effects, I need to prepare the summary statistics for the GWAS. The tutorial says "Note that it is possible to back out a beta and SE when only Z-statistics are provided as long as you have the total sample size for a continuous trait or the sum of effective sample sizes across the contributing cohorts for a binary trait”.
I found the following formula online (see screenshot for colnames). Is this line of code to calculate SE correct?
A1 <- fread("MHD_ANX/METAANALYSIS1.TBL")
A1$SE =1/sqrt(2*A1$MinFreq(1-A1$MinFreq)(A1$Weight+ A1$Zscore^2))
Thank you!
Best,
Camille