search for: betweenanova

Displaying 1 result from an estimated 1 matches for "betweenanova".

2009 Jan 23
1
Anova and unbalanced designs
...subject factors and unequal group sizes. Here is a minimal example of what I did: 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 every...