OBrienKaiserLong.RdContrived repeated-measures data from O'Brien and Kaiser (1985). For details see OBrienKaiser, which is for the "wide" form of the same data.
OBrienKaiserLongA data frame with 240 observations on the following 6 variables.
treatmenta between-subjects factor with levels control, A, B.
gendera between-subjects factor with levels F, M.
scorethe numeric response variable.
idthe subject id number.
phasea within-subjects factor with levels pre, post, fup.
houra within-subjects factor with levels 1, 2, 3, 4, 5.
O'Brien, R. G., and Kaiser, M. K. (1985) MANOVA method for analyzing repeated measures designs: An extensive primer. Psychological Bulletin 97, 316–333, Table 7.
head(OBrienKaiserLong, 15) # first subject
#> treatment gender score id phase hour
#> 1.1 control M 1 1 pre 1
#> 1.2 control M 2 1 pre 2
#> 1.3 control M 4 1 pre 3
#> 1.4 control M 2 1 pre 4
#> 1.5 control M 1 1 pre 5
#> 1.6 control M 3 1 post 1
#> 1.7 control M 2 1 post 2
#> 1.8 control M 5 1 post 3
#> 1.9 control M 3 1 post 4
#> 1.10 control M 2 1 post 5
#> 1.11 control M 2 1 fup 1
#> 1.12 control M 3 1 fup 2
#> 1.13 control M 2 1 fup 3
#> 1.14 control M 4 1 fup 4
#> 1.15 control M 4 1 fup 5