Description Usage Arguments Value Examples

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | ```
lmm2F(
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
)
``` |

`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) |

Power for the Two Factor Within Subjects LMM

1 | ```
lmm2F(m1.1=-.25,m2.1=0,m1.2=-.25,m2.2=.10,s1.1=.4,s2.1=.5,s1.2=.4,s2.2=.5,r=.5,n=200)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.