lmm2Fse {pwr2ppl} | R Documentation |
Compute power for a Two Factor Within Subjects Using Linear Mixed Models with up to two by 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 Two Factor Within Subjects Using Linear Mixed Models with up to two by four levels. Takes means, sds, and sample sizes for each group. Alpha is .05 by default, alternative values may be entered by user
Usage
lmm2Fse(
m1.1,
m2.1,
m3.1 = NA,
m4.1 = NA,
m1.2,
m2.2,
m3.2 = NA,
m4.2 = NA,
s1.1 = NA,
s2.1 = NA,
s3.1 = NA,
s4.1 = NA,
s1.2 = NA,
s2.2 = NA,
s3.2 = NA,
s4.2 = NA,
r12 = NULL,
r13 = NULL,
r14 = NULL,
r15 = NULL,
r16 = NULL,
r17 = NULL,
r18 = NULL,
r23 = NULL,
r24 = NULL,
r25 = NULL,
r26 = NULL,
r27 = NULL,
r28 = NULL,
r34 = NULL,
r35 = NULL,
r36 = NULL,
r37 = NULL,
r38 = NULL,
r45 = NULL,
r46 = NULL,
r47 = NULL,
r48 = NULL,
r56 = NULL,
r57 = NULL,
r58 = NULL,
r67 = NULL,
r68 = NULL,
r78 = NULL,
r = NULL,
s = NULL,
n,
alpha = 0.05
)
Arguments
m1.1 |
Mean of first level factor 1, 1st level factor two |
m2.1 |
Mean of second level factor 1, 1st level factor two |
m3.1 |
Mean of third level factor 1, 1st level factor two |
m4.1 |
Mean of fourth level factor 1, 1st level factor two |
m1.2 |
Mean of first level factor 1, 2nd level factor two |
m2.2 |
Mean of second level factor 1, 2nd level factor two |
m3.2 |
Mean of third level factor 1, 2nd level factor two |
m4.2 |
Mean of fourth level factor 1, 2nd level factor two |
s1.1 |
Standard deviation of first level factor 1, 1st level factor two |
s2.1 |
Standard deviation of second level factor 1, 1st level factor two |
s3.1 |
Standard deviation of third level factor 1, 1st level factor two |
s4.1 |
Standard deviation of forth level factor 1, 1st level factor two |
s1.2 |
Standard deviation of first level factor 1, 2nd level factor two |
s2.2 |
Standard deviation of second level factor 1, 2nd level factor two |
s3.2 |
Standard deviation of third level factor 1, 2nd level factor two |
s4.2 |
Standard deviation of forth level factor 1, 2nd level factor two |
r12 |
correlation Factor 1, Level 1 and Factor 1, Level 2 |
r13 |
correlation Factor 1, Level 1 and Factor 1, Level 3 |
r14 |
correlation Factor 1, Level 1 and Factor 1, Level 4 |
r15 |
correlation Factor 1, Level 1 and Factor 2, Level 1 |
r16 |
correlation Factor 1, Level 1 and Factor 2, Level 2 |
r17 |
correlation Factor 1, Level 1 and Factor 2, Level 3 |
r18 |
correlation Factor 1, Level 1 and Factor 2, Level 4 |
r23 |
correlation Factor 1, Level 2 and Factor 1, Level 3 |
r24 |
correlation Factor 1, Level 2 and Factor 1, Level 4 |
r25 |
correlation Factor 1, Level 2 and Factor 2, Level 1 |
r26 |
correlation Factor 1, Level 2 and Factor 2, Level 2 |
r27 |
correlation Factor 1, Level 2 and Factor 2, Level 3 |
r28 |
correlation Factor 1, Level 2 and Factor 2, Level 4 |
r34 |
correlation Factor 1, Level 3 and Factor 1, Level 4 |
r35 |
correlation Factor 1, Level 3 and Factor 2, Level 1 |
r36 |
correlation Factor 1, Level 3 and Factor 2, Level 2 |
r37 |
correlation Factor 1, Level 3 and Factor 2, Level 3 |
r38 |
correlation Factor 1, Level 3 and Factor 2, Level 4 |
r45 |
correlation Factor 1, Level 4 and Factor 2, Level 1 |
r46 |
correlation Factor 1, Level 4 and Factor 2, Level 2 |
r47 |
correlation Factor 1, Level 4 and Factor 2, Level 3 |
r48 |
correlation Factor 1, Level 4 and Factor 2, Level 4 |
r56 |
correlation Factor 2, Level 1 and Factor 2, Level 2 |
r57 |
correlation Factor 2, Level 1 and Factor 2, Level 3 |
r58 |
correlation Factor 2, Level 1 and Factor 2, Level 4 |
r67 |
correlation Factor 2, Level 2 and Factor 2, Level 3 |
r68 |
correlation Factor 2, Level 2 and Factor 2, Level 4 |
r78 |
correlation Factor 2, Level 3 and Factor 2, Level 4 |
r |
sets same correlations between DVs on all factor levels (seriously, just use this) |
s |
sets same standard deviation for factor levels (see comment above) |
n |
Sample size for first group |
alpha |
Type I error (default is .05) |
Value
Power for Simple Effects in Two Factor Within Subjects LMM
Examples
lmm2Fse(m1.1=-.25,m2.1=0,m3.1=.10,m4.1=.15,m1.2=-.25,m2.2=.10,m3.2=.30,m4.2=.35,
s1.1=.4,s2.1=.5,s3.1=2.5,s4.1=2.0,s1.2=.4,s2.2=.5,s3.2=2.5,s4.2=2.0,r=.5,n=220)