pwr2ppl (version 0.1.1)

anc: Compute Power for One or Two Factor ANCOVA with a single covariate Takes means, sds, and sample sizes for each group. Alpha is .05 by default, alternative values may be entered by user

Description

Compute Power for One or Two Factor ANCOVA with a single covariate Takes means, sds, and sample sizes for each group. Alpha is .05 by default, alternative values may be entered by user

Usage

anc(m1.1, m2.1, m1.2, m2.2, m1.3 = NULL, m2.3 = NULL, m1.4 = NULL,
  m2.4 = NULL, s1.1 = NULL, s2.1 = NULL, s1.2 = NULL,
  s2.2 = NULL, s1.3 = NULL, s2.3 = NULL, s1.4 = NULL,
  s2.4 = NULL, r, s = NULL, alpha = 0.05, factors, n)

Arguments

m1.1

Cell mean for First level of Factor A, First level of Factor B

m2.1

Cell mean for Second level of Factor A, First level of Factor B

m1.2

Cell mean for First level of Factor A, Second level of Factor B

m2.2

Cell mean for Second level of Factor A, Second level of Factor B

m1.3

Cell mean for First level of Factor A, Third level of Factor B

m2.3

Cell mean for Second level of Factor A, Third level of Factor B

m1.4

Cell mean for First level of Factor A, Fourth level of Factor B

m2.4

Cell mean for Second level of Factor A, Fourth level of Factor B

s1.1

Cell standard deviation for First level of Factor A, First level of Factor B

s2.1

Cell standard deviation for Second level of Factor A, First level of Factor B

s1.2

Cell standard deviation for First level of Factor A, Second level of Factor B

s2.2

Cell standard deviation for Second level of Factor A, Second level of Factor B

s1.3

Cell standard deviation for First level of Factor A, Third level of Factor B

s2.3

Cell standard deviation for Second level of Factor A, Third level of Factor B

s1.4

Cell standard deviation for First level of Factor A, Fourth level of Factor B

s2.4

Cell standard deviation for Second level of Factor A, Fourth level of Factor B

r

Correlation between covariate and dependent variable.

s

Overall standard deviation. Sets all cell sds equal

alpha

Type I error (default is .05)

factors

Number of factors (1 or 2)

n

Sample Size per cell

Value

Power for One or Two Factor ANCOVA with a single covariate

Examples

Run this code
# NOT RUN {
anc(m1.1=.85,m2.1=2.5, s1.1 = 1.7, s2.1=1,
m1.2=0.85, m2.2= 2.5, s1.2 = 1.7, s2.2=1,
m1.3=0.0,m2.3=2.5, s1.3 = 1.7, s2.3=1,
m1.4=0.6, m2.4 = 2.5, s1.4 = 1.7, s2.4=1, r= 0.4,
n=251, factors =2)
# }

Run the code above in your browser using DataCamp Workspace