You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also use the convenience function `lmm` to fit the model as follows:
62
+
63
+
```@example Main
64
+
fm = @formula(yield ~ 1 + (1|batch))
65
+
fm2 = lmm(fm, dyestuff)
66
+
DisplayAs.Text(ans) # hide
67
+
```
68
+
Notice that both are equivalent.
69
+
61
70
(If you are new to Julia you may find that this first fit takes an unexpectedly long time, due to Just-In-Time (JIT) compilation of the code. The subsequent calls to such functions are much faster.)
62
71
63
72
```@example Main
@@ -210,14 +219,18 @@ DisplayAs.Text(ans) # hide
210
219
## Fitting generalized linear mixed models
211
220
212
221
To create a GLMM representation, the distribution family for the response, and possibly the link function, must be specified.
222
+
You can either use `fit(MixedModel, ...)` or `glmm(...)` to fit the model. For instance:
The canonical link, which is `LogitLink` for the `Bernoulli` distribution, is used if no explicit link is specified.
222
235
223
236
Note that, in keeping with convention in the [`GLM` package](https://github.com/JuliaStats/GLM.jl), the distribution family for a binary (i.e. 0/1) response is the `Bernoulli` distribution.
0 commit comments