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]]
If you know SPSS already why not learn R modeling syntax and do this yourself? If ALPHA(.05) implies that you are using stepwise variable selection note that this is an invalid statistical technique. Frank Kristi Shoemaker wrote> > 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@ 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. >----- Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/SPSS-R-tp4110995p4111006.html Sent from the R help mailing list archive at Nabble.com.
Perhaps this website and the associated book will be of help: http://r4stats.com/ Michael On Nov 26, 2011, at 11:08 AM, Kristi Shoemaker <kristi.shoemaker at yahoo.com> wrote:> 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 at 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.
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-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Kristi Shoemaker > Sent: November-26-11 11:08 AM > To: r-help at 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]]
Dear Kristi,> Also. can anyone recommend any resources to help SPSS users learn to things in R?You may want to have a look at the R2STATS package, a simple GUI for linear models. Best, Yvonnick Noel University of Brittany Department of Psychology Rennes, France
Maybe Matching Threads
- Why can repeated measures anova with within & between subjects design not be done if group sizes are unbalanced?
- use of the 'by' command & converting SPSS ANOVA/GLM syntax into R syntax
- SPSS repeated interaction contrast in R
- NFS issue
- averaging two tables (rows with columns)