Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions random_intercepts.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ extract_random_effects(gpa_mixed) %>%
kable_df(align = 'r')
```

This shows the deviation of each student from the "grand intercept", that is, what we called $\mathrm{effect}_{\mathrm{student}}$.

```{r randints, eval=FALSE}
coef(gpa_mixed)$student %>% head(5)
```
Expand All @@ -336,6 +338,7 @@ extract_random_coefs(gpa_mixed) %>%
kable_df(align = 'rr')
```

This shows the overall intercept for each student, that is, what we called $b_{\mathrm{int\_student}}$.

Note that we did not allow occasion to vary, so it is a constant, i.e. *fixed*, effect for all students.

Expand Down