anova1f_3: Compute power for a One Factor ANOVA with three levels. Takes...

Description Usage Arguments Value Examples

View source: R/anova1f_3.R

Description

Compute power for a One Factor ANOVA with three levels. Takes means, sds, and sample sizes for each group. Alpha is .05 by default, alternative values may be entered by user

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
anova1f_3(
  m1 = NULL,
  m2 = NULL,
  m3 = NULL,
  s1 = NULL,
  s2 = NULL,
  s3 = NULL,
  n1 = NULL,
  n2 = NULL,
  n3 = NULL,
  alpha = 0.05
)

Arguments

m1

Mean of first group

m2

Mean of second group

m3

Mean of third group

s1

Standard deviation of first group

s2

Standard deviation of second group

s3

Standard deviation of third group

n1

Sample size for first group

n2

Sample size for second group

n3

Sample size for third group

alpha

Type I error (default is .05)

Value

Power for the One Factor ANOVA

Examples

1
anova1f_3(m1=80, m2=82, m3=82, s1=10, s2=10, s3=10, n1=60, n2=60, n3=60)

Example output

Sample size overall = 180
Power  = 0.1852 for eta-squared = 0.009

pwr2ppl documentation built on April 4, 2021, 9:06 a.m.