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
Copy file name to clipboardExpand all lines: docs/jmd/SimpleLMM.jmd
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -336,7 +336,7 @@ For a linear mixed model, where all the conditional and unconditional distributi
336
336
The optional second argument, `verbose`, in a call to `fit!` of a `LinearMixedModel` object produces output showing the progress of the iterative optimization of $\tilde{d}(\bf\theta|\bf y)$.
The algorithm converges after 18 function evaluations to a profiled deviance of 327.32706 at $\theta=0.752581$. In this model the parameter $\theta$ is of length 1, the single element being the ratio $\sigma_1/\sigma$.
@@ -597,9 +597,9 @@ const ppt250 = ppoints(250)
597
597
The kernel density estimate of $\sigma$ is more symmetric
598
598
599
599
```{julia;echo=false;fig_width=8}
600
-
zquantiles = quantile(Normal(), ppt250);
601
-
plot(x = zquantiles, y = quantile(mm1bstp[:β₁], ppt250), line)
602
-
# Guide.xlabel("Standard Normal Quantiles"), Guide.ylabel("β₁"))
600
+
zquantiles = quantile.(Normal(), ppt250);
601
+
plot(x = zquantiles, y = quantile(mm1bstp[:β₁], ppt250), line,
602
+
Guide.xlabel("Standard Normal Quantiles"), Guide.ylabel("β₁"))
603
603
```
604
604
605
605
and the normal probability plot of $\sigma$ is also reasonably straight.
The variables in the optimization are the elements of a lower triangular matrix, $\Lambda$, which is the relative covariance factor of the random effects.
@@ -332,7 +332,7 @@ orthfm = fit!(LinearMixedModel(@formula(distance ~ 1 + age + (1 + age | Subject)
By default, the model fit is by maximum likelihood. To use the `REML` criterion instead, add the optional named argument `REML = true` to the call to `fit!`
Copy file name to clipboardExpand all lines: docs/jmd/optimization.jmd
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -190,10 +190,10 @@ Note that the first `ScalarFactorReTerm` in `fm4.trms` corresponds to grouping f
190
190
191
191
### Progress of the optimization
192
192
193
-
An optional `Bool` argument of `true` in the call to `fit!` of a `LinearMixedModel` causes printing of the objective and the $\theta$ parameter at each evaluation during the optimization.
193
+
An optional named argument, `verbose=true`, in the call to `fit!` of a `LinearMixedModel` causes printing of the objective and the $\theta$ parameter at each evaluation during the optimization.
@@ -122,7 +122,7 @@ Even when we apply each of the six samples to each of the 24 plates, something c
122
122
A model incorporating random effects for both the plate and the sample is straightforward to specify — we include simple, scalar random effects terms for both these factors.
@@ -157,7 +157,7 @@ In chapter [chap:ExamLMM] we saw that a model with a single, simple, scalar ran
157
157
The relative covariance factor, $\Lambda_\theta$, (Fig. [fig:fm03LambdaLimage], left panel) is no longer a multiple of the identity. It is now block diagonal, with two blocks, one of size 24 and one of size 6, each of which is a multiple of the identity. The diagonal elements of the two blocks are $\theta_1$ and $\theta_2$, respectively. The numeric values of these parameters can be obtained as
158
158
159
159
````julia
160
-
julia>show(getθ(penm))
160
+
julia>show(penm.θ)
161
161
[1.53758, 3.21975]
162
162
````
163
163
@@ -201,7 +201,7 @@ A bootstrap simulation of the model
201
201
202
202
````julia
203
203
julia>@time penmbstp =bootstrap(10000, penm);
204
-
24.313179 seconds (83.13 M allocations:2.532 GiB, 3.95% gc time)
204
+
26.932617 seconds (77.19 M allocations:2.076 GiB, 3.17% gc time)
0 commit comments