Skip to content

Commit 5c90218

Browse files
committed
update model 2 wilkinson notation
1 parent 9e6167b commit 5c90218

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/generalized_linear_models/GLM-simpsons-paradox.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,9 +949,10 @@
949949
"metadata": {},
950950
"source": [
951951
":::{note}\n",
952-
"We can also express this Model 2 in Wilkinson notation as `y ~ g + x:g`.\n",
952+
"We can also express this Model 2 in Wilkinson notation as `y ~ 0 + g + x:g`.\n",
953953
"\n",
954954
"* The `g` term captures the group specific intercept $\\beta_0[g_i]$ parameters.\n",
955+
"* The `0` means we do not have a global intercept term, leaving the group specific intercepts to be the only intercepts.\n",
955956
"* The `x:g` term captures group specific slope $\\beta_1[g_i]$ parameters.\n",
956957
":::"
957958
]

examples/generalized_linear_models/GLM-simpsons-paradox.myst.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,10 @@ Where $g_i$ is the group index for observation $i$. So the parameters $\beta_0$
288288
+++
289289

290290
:::{note}
291-
We can also express this Model 2 in Wilkinson notation as `y ~ g + x:g`.
291+
We can also express this Model 2 in Wilkinson notation as `y ~ 0 + g + x:g`.
292292

293293
* The `g` term captures the group specific intercept $\beta_0[g_i]$ parameters.
294+
* The `0` means we do not have a global intercept term, leaving the group specific intercepts to be the only intercepts.
294295
* The `x:g` term captures group specific slope $\beta_1[g_i]$ parameters.
295296
:::
296297

0 commit comments

Comments
 (0)