Dear Kristi, I assume that this is a repeated-measures ANOVA with one within-subjects factor (Time) and two between-subjects factors (Age and Sex, which are crossed). If Age is numeric, and not a factor, then the "type-III" tests that you requested don't test sensible hypotheses. In any event, if my guess is right about the design, then you can use the Anova() function in the car package for an equivalent analysis. See the repeated-measures example in ?Anova (for the O'Brien and Kaiser data).
You've already had an answer to the more general question. I hope this helps, John -------------------------------- John Fox Senator William McMaster Professor of Social Statistics Department of Sociology McMaster University Hamilton, Ontario, Canada http://socserv.mcmaster.ca/jfox > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Kristi Shoemaker > Sent: November-26-11 11:08 AM > To: r-help@r-project.org > Subject: [R] SPSS -> R > > I'm an SPSS user trying to make the transition to R. > > Can someone help me translate the following SPSS code into R?: > > > GLM Total_tp1 Total_tp2 WITH Age Sex > /WSFACTOR=Time 2 Repeated > /METHOD=SSTYPE(3) > /CRITERIA=ALPHA(.05) > /WSDESIGN= Time > /DESIGN= Age Sex Age*Sex. > > Also. can anyone recommend any resources to help SPSS users learn to > things in R? > > Thanks, > -kristi > > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.