Skip to content

Commit d0a0230

Browse files
committed
fix long lines
1 parent 8d8767f commit d0a0230

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

vignettes/practical_context_effect2.Rmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ To test whether the within- and between-effects are significantly different from
113113

114114
```{r}
115115
library(modelbased)
116-
estimate_contrasts(mixed, c("phq4_within", "phq4_between")) |> display(format = "tt")
116+
estimate_contrasts(mixed, c("phq4_within", "phq4_between")) |>
117+
display(format = "tt")
117118
```
118119

119120
The output shows a significant contrast of 2.41 between the within- and between-effects. Since the between-effect in our model (-6.13) is stronger (more negative) than the within-effect (-3.72), the context-effect (Between minus Within) is -2.41.
@@ -211,7 +212,8 @@ This uniformity is a direct mathematical consequence of our model assuming a *st
211212
Because a linear model yields constant step-by-step changes, testing these identical individual intervals is often less informative. To test whether the context effect meaningfully changes over time overall, it is more appropriate to evaluate the average contrast of the slopes across the entire study period. To do this, we calculate the contrast between the within- and between-effects without stratifying by time.
212213

213214
```{r}
214-
estimate_contrasts(mixed, c("phq4_within", "phq4_between")) |> display(format = "tt")
215+
estimate_contrasts(mixed, c("phq4_within", "phq4_between")) |>
216+
display(format = "tt")
215217
```
216218

217219
**What does this mean practically?**

0 commit comments

Comments
 (0)