powerTOSTr {TOSTER} | R Documentation |
Power analysis for TOST for correlations.
powerTOSTr(alpha, statistical_power, N, low_eqbound_r, high_eqbound_r)
alpha |
alpha used for the test (e.g., 0.05) |
statistical_power |
desired power (e.g., 0.8) |
N |
number of pairs (e.g., 96) |
low_eqbound_r |
lower equivalence bounds (e.g., -0.3) expressed in a correlation effect size |
high_eqbound_r |
upper equivalence bounds (e.g., 0.3) expressed in a correlation effect size |
Calculate either achieved power, equivalence bounds, or required N, assuming a true effect size of 0. Returns a string summarizing the power analysis, and a numeric variable for number of observations, equivalence bounds, or power.
## Sample size for alpha = 0.05, 90% power, equivalence bounds of ## r = -0.1 and r = 0.1, assuming true effect = 0 powerTOSTr(alpha=0.05, statistical_power=0.9, low_eqbound_r=-0.1, high_eqbound_r=0.1) ## Sample size for alpha = 0.05, N=536, equivalence bounds of ## r = -0.1 and r = 0.1, assuming true effect = 0 powerTOSTr(alpha=0.05, N=536, low_eqbound_r=-0.1, high_eqbound_r=0.1) ## Equivalence bounds for alpha = 0.05, N=536, statistical power of ## 0.9, assuming true effect = 0 powerTOSTr(alpha=0.05, N=536, statistical_power=0.9)