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

estimate_contrasts() returning no values #281

Open
strengejacke opened this issue Dec 17, 2024 · 0 comments
Open

estimate_contrasts() returning no values #281

strengejacke opened this issue Dec 17, 2024 · 0 comments
Labels
bug 🐛 Something isn't working

Comments

@strengejacke
Copy link
Member

No error, just NA values.

library(modelbased)
data(Salamanders, package = "glmmTMB")
model <- glm(count ~ mined * spp + cover + site, data = Salamanders, family = "poisson")
estimate_contrasts(model, contrast = "mined", by = "spp")
#> NOTE: A nesting structure was detected in the fitted model:
#>     site %in% mined
#> Marginal Contrasts Analysis
#> 
#> Level1 | Level2 |   spp | Difference | 95% CI | SE | df | z | p
#> ---------------------------------------------------------------
#> yes    |     no | DES-L |            |        |    |    |   |  
#> yes    |     no |    DF |            |        |    |    |   |  
#> yes    |     no |    DM |            |        |    |    |   |  
#> yes    |     no |  EC-A |            |        |    |    |   |  
#> yes    |     no |  EC-L |            |        |    |    |   |  
#> yes    |     no |    GP |            |        |    |    |   |  
#> yes    |     no |    PR |            |        |    |    |   |  
#> 
#> Marginal contrasts estimated at mined
#> p-value adjustment method: Holm (1979)

Created on 2024-12-17 with reprex v2.1.1

@strengejacke strengejacke added the bug 🐛 Something isn't working label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant