11---
22title : " Effect Size from Test Statistics"
3- output :
3+ output :
44 rmarkdown::html_vignette :
55 toc : true
66 fig_width : 10.08
@@ -10,7 +10,7 @@ vignette: >
1010 %\VignetteIndexEntry{Effect Size from Test Statistics}
1111 \usepackage[utf8]{inputenc}
1212 %\VignetteEngine{knitr::rmarkdown}
13- editor_options :
13+ editor_options :
1414 chunk_output_type : console
1515bibliography : bibliography.bib
1616---
@@ -27,7 +27,8 @@ set.seed(747)
2727
2828.eval_if_requireNamespace <- function(...) {
2929 pkgs <- c(...)
30- knitr::opts_chunk$get("eval") && all(sapply(pkgs, requireNamespace, quietly = TRUE))
30+ knitr::opts_chunk$get("eval") &&
31+ all(sapply(pkgs, requireNamespace, quietly = TRUE))
3132}
3233```
3334
@@ -73,7 +74,8 @@ library(afex)
7374
7475data(md_12.1)
7576
76- aov_fit <- aov_car(rt ~ angle * noise + Error(id / (angle * noise)),
77+ aov_fit <- aov_car(
78+ rt ~ angle * noise + Error(id / (angle * noise)),
7779 data = md_12.1,
7880 anova_table = list(correction = "none", es = "pes")
7981)
@@ -149,7 +151,11 @@ We can also use `t_to_eta2()` for the slope of `Days` (which in this case gives
149151the same result).
150152
151153``` {r, eval = .eval_if_requireNamespace("lmerTest")}
152- parameters::model_parameters(fit_lmm, effects = "fixed", ci_method = "satterthwaite")
154+ parameters::model_parameters(
155+ fit_lmm,
156+ effects = "fixed",
157+ ci_method = "satterthwaite"
158+ )
153159
154160t_to_eta2(6.77, df_error = 17)
155161```
@@ -177,7 +183,11 @@ better).
177183### For Slopes
178184
179185``` {r, eval = .eval_if_requireNamespace("lmerTest")}
180- parameters::model_parameters(fit_lmm, effects = "fixed", ci_method = "satterthwaite")
186+ parameters::model_parameters(
187+ fit_lmm,
188+ effects = "fixed",
189+ ci_method = "satterthwaite"
190+ )
181191
182192t_to_r(6.77, df_error = 17)
183193```
@@ -199,7 +209,8 @@ t_to_r(
199209to:
200210
201211``` {r, eval=.eval_if_requireNamespace("correlation")}
202- correlation::correlation(attitude,
212+ correlation::correlation(
213+ attitude,
203214 select = "rating",
204215 select2 = c("complaints", "critical"),
205216 partial = TRUE
@@ -231,6 +242,10 @@ These can be useful in contrast analyses.
231242
232243### Between-Subject Contrasts
233244
245+ ``` {r, eval = .eval_if_requireNamespace("emmeans"), include=FALSE}
246+ library(emmeans)
247+ ```
248+
234249``` {r, eval = .eval_if_requireNamespace("emmeans")}
235250m <- lm(breaks ~ tension, data = warpbreaks)
236251
0 commit comments