Skip to content

Commit ccd11f7

Browse files
committed
Update IntroductionToTOSTER.Rmd
1 parent 3410f02 commit ccd11f7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

vignettes/IntroductionToTOSTER.Rmd

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,16 @@ It is clear I should have been more tentative in my conclusions in this study. N
156156
Olson, Fazio, and Hermann (2007) reported correlations between implicit and explicit measures of self-esteem, such as the IAT, Rosenberg's self-esteem scale, a feeling thermometer, and trait ratings. In Study 1 71 participants completed the self-esteem measures. Because no equivalence bounds are mentioned, we can see which equivalence bounds the researchers would have 80% power to detect.
157157

158158
```{r, fig.width=6}
159-
# No new code for correlations (yet)
160-
powerTOSTr(alpha=0.05, statistical_power=0.8, low_eqbound_r=-0.24, high_eqbound_r=0.24)
161-
159+
# OLD
160+
powerTOSTr(alpha=0.05, statistical_power=0.8,
161+
low_eqbound_r=-0.24, high_eqbound_r=0.24)
162+
163+
# NEW
164+
power_z_cor(alpha=0.05,
165+
power=0.8,
166+
rho = 0,
167+
null=0.24,
168+
alternative = "equ")
162169
```
163170

164171
With 71 pairs of observations between measures, the researchers have 80% power for equivalence bounds of r = -0.24 and r = 0.24.

0 commit comments

Comments
 (0)