lamho86 / phylolm

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

R-squared and Adjusted R-squared #49

Closed paternogbc closed 2 years ago

paternogbc commented 2 years ago

Hi, thanks a lot for keeping improving this fantastic package.

I was wondering which method are being used to calculate R-squared and Adjusted R-squared. I checked the documentation but could not find a clear reference to the calculation method in phylolm. Since I am getting different results from the summary of phylolm and R2 calculated with the function rr2:R2, I wonder which method you are implementing in phylolm.

I would greatly appreciate any feedback.

lamho86 commented 2 years ago

Hello, We use the regular formulas for R-squared and adjusted R-squared: R-squared = (SSnull - SSfull)/SSnull adjusted-R-squared = (SSnull/(n-1) - SSfull/(n-p))/(SSnull/(n-1))

paternogbc commented 2 years ago

Many thanks for the reply!

soungalo commented 6 months ago

Arriving to the party a little late, but still - could you please explain what is the null model we are comparing against? Is it a model in which the response variable is solely explained by the phylogeny? e.g. a BM or OU model?