-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add R2 function #256
Comments
I believe this needs the variance from the smoothers included. We'd need to multiply the basis functions by their corresponding penalized coefficients + add on any linear component. Alternatively, as an easy hack, we could predict without standard errors and without any random effects and call all that the 'fixed effect' component if there are smoothers. |
I have done a bunch of work on this in this file: |
I've taken a first stab at bringing the Still to do:
|
Integrate work @maxlindmark and @federico-maioli sent me (thanks!), which includes R2 for other families:
https://gist.github.com/seananderson/96c36fae8d23879e388aa7ab9a601f60
Edit: don't use the above, use the newer: https://github.com/pbs-assess/sdmTMB/blob/main/scratch/r2-glmm.qmd
The text was updated successfully, but these errors were encountered: