Closed MattFill closed 6 months ago
Hi, it is hard to help you without having more details. I think there must be a problem with the data you are entering (maybe the rows in the covariates and responses files do not align properly for instance).
I assume you are running this against UKB IDP 25005-2.0. I just ran the same test using version 0.29 and I get an explained variance of 0.44, so I don't think this is a problem with the toolbox.
Please carefully check the data you are putting in. I will close this issue for now.
BTW, I ran this with BLR
Thanks for the follow up. Yes, I'm using IDP 25005-2.0. I believe I've found a fix/workaround for my case. If I standardize and round the covariates and response variables, the function returns expected metrics:
X = zscore(df_hc[['Age_T2','Sex_T0']]).round(3)
Y = zscore(df_hc[idps].to_numpy(dtype=float)).round(3)
batch_effects = df_hc[['site']].to_numpy(dtype=int)
Perhaps its was a scale or numerical stability issue?
Thank you to the PCN Toolkit team for this wonderful normative modeling resource.
I am getting unexpected metric results from my HBR model using pcntoolkit==0.29. I am adapting my code from the HBR FCON tutorial (https://pcntoolkit.readthedocs.io/en/latest/pages/HBR_NormativeModel_FCONdata_Tutorial.html) to apply the HBR approach to some UK Biobank data. However, I am getting abnormally low EXPV estimates and negative Rho estimates from my model which is using Age and sex covariates to model volumetric brain phenotypes. My code is adapted directly from the HBR FCON tutorial follows:
The EXPV of this model is -0.000212 and the Rho is -0.134802. These values are unexpected given the strong association of Age and Sex in brain volume phenotypes in this dataset (R2 of .25). Furthermore, I obtain similarly discrepant results using the 'blr' and 'gpr' models.
Any insight into the cause and fix of these unexpected results would be greatly appreciated.