Hierarchical Joint Analysis of Marginal Summary Statistics
Compute conditional Z matrix
Compute conditional alphas
Fit hJAM with Egger regression
Fit hJAM with linear regression
Keep the output as three digits
Print out for hJAM_egger
Print out for hJAM_lnreg
Heatmap for all the SNPs used in the analysis
Scatter plot for all the SNPs used in the analysis
Provides functions to implement a hierarchical approach which is designed to perform joint analysis of summary statistics using the framework of Mendelian Randomization or transcriptome analysis. Reference: Lai Jiang, Shujing Xu, Nicholas Mancuso, Paul J. Newcombe, David V. Conti (2020). "A Hierarchical Approach Using Marginal Summary Statistics for Multiple Intermediates in a Mendelian Randomization or Transcriptome Analysis." <bioRxiv><doi:10.1101/2020.02.03.924241>.