lamho86 / phylolm

GNU General Public License v2.0
30 stars 12 forks source link

What's the order of residuals in the result of phyloglm? #45

Closed yuxin0406 closed 3 years ago

yuxin0406 commented 3 years ago

Hi,

I'm doing the logistic regression using phyloglm and method "logistic_IG10". However, when I look at the phyloglm$residuals, I find that the order of the residuals is not consistent with the order of my data in the table. And then I checked some objects like the tip.label, X and y, the result is that there are three different data orders: 1. Dataframe (known); 2. X and tip.label (known); 3. y, residuals and fittedvalue (unknown).

So my question is what's the order of the residuals? Looking forward to your reply.

Best wishes, Yuxin Wei

lamho86 commented 3 years ago

Hi,

Thanks for letting us know. I have updated the repo to fix this problem.