power_oneway_between: Analytic power calculation for one-way between designs.

Description Usage Arguments Value References Examples

View source: R/power_oneway_between.R

Description

Analytic power calculation for one-way between designs.

Usage

1
power_oneway_between(design_result, alpha_level = 0.05)

Arguments

design_result

Output from the ANOVA_design function

alpha_level

Alpha level used to determine statistical significance

Value

mu = means

sigma = standard deviation

n = sample size

alpha_level = alpha level

Cohen_f = Cohen f

f_2 = Cohen's f^2

lambda = lambda

F_critical = Criticial F-value

power = power

df1 = degrees of freedom for the effect

df2 = degrees of freedom of the error

eta_p_2 = partial eta-squared

mean_mat = matrix of the means

References

too be added

Examples

1
2
3
4
5
6
7
## Set up a within design with one factor with 2 levels,
## 40 participants (woh do all conditions), and standard deviation of 2
## with a mean pattern of 1, 0, 1, conditions labeled 'condition'
## with names for levels of "cheerful", "neutral", "sad"
design_result <- ANOVA_design(design = "3b", n = 40, mu = c(1, 0, 1),
      sd = 2, labelnames = c("condition", "cheerful", "neutral", "sad"))
power_result <- power_oneway_between(design_result, alpha_level = 0.05)

Lakens/ANOVApower documentation built on Jan. 9, 2020, 5:32 p.m.