Skip to content
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

r2_nakagawa compatibility with HLCor object #246

Open
jbeauvais127 opened this issue Mar 31, 2021 · 0 comments
Open

r2_nakagawa compatibility with HLCor object #246

jbeauvais127 opened this issue Mar 31, 2021 · 0 comments
Labels
Enhancement 💥 Implemented features can be improved or revised

Comments

@jbeauvais127
Copy link

Hello! Love your packages, but wondering if there is a way to make the r2_nakagawa function compatible with an HLCor object from the spaMM package? Seems like the get_variance function within "Insight" doesn't work with the structure returned by spaMM. Example code (taken from spaMM vignette) here:

data(scotlip)
lipfit <- fitme(cases~I(prop.ag/10)+adjacency(1|gridcode)
                +offset(log(expec)),
                data=scotlip,family=poisson(),adjMatrix=Nmatrix)
summary(lipfit)
r2_nakagawa(lipfit)

Warning message:
In get_variance.default(model, tolerance = tolerance, name_fun = "r2()", :
Objects of class HLCor are not supported.

@strengejacke strengejacke added the Enhancement 💥 Implemented features can be improved or revised label Apr 1, 2021
@IndrajeetPatil IndrajeetPatil changed the title r2_nakagawa compatibility with HLCor object r2_nakagawa compatibility with HLCor object Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement 💥 Implemented features can be improved or revised
Projects
None yet
Development

No branches or pull requests

2 participants