arives / rr2

R2 for correlated data; see https://academic.oup.com/sysbio/advance-article/doi/10.1093/sysbio/syy060/5098616
GNU General Public License v3.0
18 stars 7 forks source link

Support communityPGLMMs? #1

Closed daijiang closed 5 years ago

daijiang commented 7 years ago

Is it possible to support communityPGLMM models?

Can communityPGLMM models predict species abundance?

arives commented 7 years ago

Daijiang,

For continuous data, the easiest thing would be to use R2.lr. For binary data, the predictions are in the values of mu, so these can be used to calculate R2.ce in the same way as in binaryPGLMM. It’s a little unfortunately that you can’t use the same R2 for both cases. Oh well.

Cheers, Tony

daijiang commented 6 years ago

first commit 0b7baa6