Displaying 1 result from an estimated 1 matches for "withinanova".
2009 Jan 23
1
Anova and unbalanced designs
...library(car)
within1 <- c(1,2,3,4,5,6,4,5,3,2); within2 <- c(3,4,3,4,3,4,3,4,5,4)
values <- data.frame(w1 = within1, w2 = within2)
values <- as.matrix(values)
between <- factor(c(rep(1,4), rep(2,6)))
betweenanova <- lm(values ~ between)
with <- expand.grid(within = factor(1:2))
withinanova <- Anova(betweenanova, idata=with, idesign=
~as.factor(within), type = "III" )
I do not know if this is the appropriate method to deal with unbalanced
designs.
I observed, that SPSS calculates everything identically except the main
effect of the within factor, here, the SSQ and F-...