I am using stats() 3.5.2 to run a manova with:
- participant 1:20
- gender as between subject factor
- group as within subject factor
- anxiety as dependent measure
- BAC as dependent measures
The dataset follow:
treat4 = data.frame (
participant = rep(1:20,3),
gender = factor (rep(c(rep("male", 10), rep ("female", 10)),3)),
group = factor (c(rep("control",20), rep("run",20), rep("party",20))),
anxiety = round(c(rnorm(20, mean=55, sd=5),rnorm(20, mean=20, sd=5),rnorm(20, mean=75, sd=5))),
BAC = round(c(rep(0.01,20), rep(0.01,20), rnorm(20, mean= 0.09, sd=0.01)),2))
I apply the manova () function and summarize as follows:
mod = manova(cbind(anxiety,BAC) ~ gender + Error(group),data=treat4)
summary (mod)
This is what I get:
Error: group
Df Pillai approx F num Df den Df Pr(>F)
Residuals 2
Error: Within
Df Pillai approx F num Df den Df Pr(>F)
gender 1 0.013447 0.37482 2 55 0.6892
Residuals 56
There are a couple of issues:
1) Gender seems to be accounted as within-subjects factor
2) I don't get any statistics for the group factor
Any help?