Skip to content

Commit

Permalink
Add glmmTMB fit
Browse files Browse the repository at this point in the history
  • Loading branch information
courtiol committed Mar 7, 2021
1 parent 0a68f8f commit df5a46b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vignettes/spaMM.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ These cases do not seem to be handled properly $\rightarrow$ the question is whe
## Poisson GLM

### Fitting models
```{r glm_pos}
```{r glm_pos, warning=FALSE}
glm_pois_log_glm <- glm(total.fruits ~ amd, family = poisson(link = "log"), data = Arabidopsis)
glm_pois_log_glmmTMB <- glmmTMB(total.fruits ~ amd, family = poisson(link = "log"), data = Arabidopsis)
glm_pois_log_fitme <- fitme(total.fruits ~ amd, family = poisson(link = "log"), data = Arabidopsis)
```

Expand All @@ -130,13 +131,14 @@ TO COME
### Outputs from `glance()`
```{r glance glm_pos}
glance(glm_pois_log_glm)
glance(glm_pois_log_glmmTMB)
glance(glm_pois_log_fitme)
```

#### Fixme?

- `glance.glm()` compares the model to a null model, albeit with no test $\rightarrow$ shall we do that?
- again, we could drop the column `sigma` but perhaps it is best to keep it for enforcing a consistent output
- again, we could drop the column `sigma` but perhaps it is best to keep it for enforcing a consistent output, or as `glance.glmmTMB()` we could indicate overdispersion as `sigma` (nb: they did not document that)...?

## Binomial GLM

Expand Down

0 comments on commit df5a46b

Please sign in to comment.