Replies: 2 comments 4 replies
-
What kind of distribution are you assuming for the response? I think if your data are ~ normal, you could just calculate this yourself after calling the predict() function on the sdmTMB model object. There's not a built in function for this yet though -- perhaps we should though. Here's a thread on the development of pseudo-R squared for glmmTMB There the authors extended the performance package to handle glmmTMB objects |
Beta Was this translation helpful? Give feedback.
-
I worked out the Nakagawa/Schielzeth/Johnson R^2 here: https://github.com/pbs-assess/sdmTMB/blob/main/scratch/r2.R I think partially following what's done for glmmTMB here https://github.com/glmmTMB/glmmTMB/blob/master/glmmTMB/inst/misc/rsqglmm.R But I stopped at the Gaussian family. It would be good to expand that and some point and maybe incorporate it into the package. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I was wondering if there are any ways to calculate a correlation coefficient from an sdmtmb model? I've tried some popular R-square functions (e.g. r.squaredglmm() from the package MuMin) but none of these functions have been updated to handle model class of sdmTMB. The models I'm running are simple spatial glms with no extra random effects.
Beta Was this translation helpful? Give feedback.
All reactions