lmm1Ftrends {pwr2ppl}R Documentation

Compute power for a One Factor Within Subjects LMM Trends with up to four levels. 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 a One Factor Within Subjects LMM Trends with up to four levels. Takes means, sds, and sample sizes for each group. Alpha is .05 by default, alternative values may be entered by user

Usage

lmm1Ftrends(
  m1,
  m2,
  m3 = NA,
  m4 = NA,
  s1,
  s2,
  s3 = NULL,
  s4 = NULL,
  r12,
  r13 = NULL,
  r14 = NULL,
  r23 = NULL,
  r24 = NULL,
  r34 = NULL,
  n,
  alpha = 0.05
)

Arguments

m1

Mean of first time point

m2

Mean of second time point

m3

Mean of third time point

m4

Mean of fourth time point

s1

Standard deviation of first time point

s2

Standard deviation of second time point

s3

Standard deviation of third time point

s4

Standard deviation of forth time point

r12

correlation Time 1 and Time 2

r13

correlation Time 1 and Time 3

r14

correlation Time 1 and Time 4

r23

correlation Time 2 and Time 3

r24

correlation Time 2 and Time 4

r34

correlation Time 3 and Time 4

n

Sample size for first group

alpha

Type I error (default is .05)

Value

Power for the One Factor Within Subjects LMM Trends

Examples

lmm1Ftrends(m1=-.25,m2=-.15,m3=-.05,m4=.05,s1=.4,s2=.5,s3=.6,s4=.7,
r12=.50, r13=.30, r14=.15, r23=.5, r24=.30, r34=.50, n=25)

[Package pwr2ppl version 0.5.0 Index]