I performed a GWAS of a binary lung function trait (normal or abnormal). Using LDSC the intercept was 1.02 I want to adjust the summary results for the intercept. I understand this can be done by converting the p-values for each SNP to chi square, then dividing by the intercept, then converting back to p-value.
I've seen there are commands in R for this; chi (pchisq) and chi from p (qchisq)
What I don't know is what the degrees of freedom is and I'm unclear about the lower tail.
How would I calculate the degrees of freedom and what should I do for the tail command? Is there a better way to do this then the above commands?
Thank you!