Merge dat1 and dat2 by SNP ...
Harmonize the direction of SNP effects of exposure and outcome
Read in LD scores ...
Add LD scores to the harmonized data set...
The Harmonized data set will also be used for MR analysis
Begin estimation of C and Omega using LDSC ...
Estimate heritability for trait 1 ...
Error in t(weighted.LD[from[i]:to[i], ]) %*% weighted.chi[from[i]:to[i], :
non-conformable arguments
MRAPSS uses genome-wide summary statistics as input to estimate the background parameters using LDSC. The use of only summary statistics of extracted IVs will lead to errors.
Prompting for non-conformable arguments when using MRAPSS::est_paras.
Are the matrices multiplied in the correct dimension and order?
here is the code and output to repeat the problem.