It depends on design. The simple main effects for within subjects/
repeated
measures factors are just one-way ANOVAs on the subset of the data you
are
interested in. For between subject factors just get the MSe from the
original
ANOVA and then you can compute in R from a vector of cell means in a
balanced design. so something like this should work:
ms.error <- 10
cell.means <- c(14, 16, 22, 23)
n <- 10
ss.sme <- n * var(cell.means)
df.sme <- length(cell.means) - 1
ms.sme <- ss.sme / df.sme
F.sme <- ms.sme / ms.error
F.sme
pf(F.sme, df.sme, df.error, lower.tail=FALSE)
For a between-subject factor in a mixed design you need to pool two
error terms and it is fiddly, though there is an excel spreadsheet on
my
blog that does this. For some reason I never implemented this in R
but it is a simple matter of pooling the variances and using a
Welch-Satterthwaite style correction for the df.
For contrasts, you can run them fairly easily in the gmodels or
multcomp
packages. The gmodels packages is more versatile (e.g., working with
mer and lme objects) while multcomp has options for multiple
comparison
prodecures that are more powerful than those in SPSS or Statistica. In
fact,
SPSS contrasts are extremely hard to set up for anything other than
contrasts on a single factor.
Thom