Entering edit mode
9 months ago
Salahuddin
•
0
Hey, I am struggling to understand Why am I getting different association analysis output (coefficient, SE and P) between PRSice and lm() function in R. Not only the values, even the direction of association is different. I am trying to do association analysis between PRS of my trait and MRI data in UKB. Feeding PRSice the standardized phenotype data.
Fraction of output from PRSice:
Fraction of out put from R using lm() function:
My script for association analysis in PRSice where I used previously clumped PRS:
Hi please only use one platform to ask question. What code did you use in R? One common reason why the results can differ might be how R handle some of the covariates (e.g. if e.g. Zbatch is numeric, PRSice will treat it as a factor because it was provided in cov-factor, but R will treat that as numeric automatically)
Thanks for your reply. That makes sense. I will give a try by making changes in covariates class.
However, my command for R has been,
After trying correcting the PRSice command, still the outputs are different. Your suggesting highly appreciated. Output with PRSice association -
Output with R association -
PRSice call log -
Command in R :
without the data, it is not possible for me to determine the reason of the error. Another likely possibility is the sample missingness (e.g. if you check the best file output from PRSice, it should have a column call In_Regression, only those with Yes were included)