Try: regression <- lm (biomass ~ poly (temperature, degree=2, raw=TRUE))
See the help page for poly what raw=TRUE does. Best, -- Wolfgang Viechtbauer Department of Methodology and Statistics University of Maastricht, The Netherlands http://www.wvbauer.com/ ----Original Message---- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, May 21, 2007 10:37 To: [email protected] Subject: [R] coefficients regression > Hi, > I would like to calculate a polynomial regression with R, but I don't > get the same coefficients as when using SPSS. Is there a way to > transform the coefficients? > > I use: > regression <- lm (biomass ~ poly (temperature, 2)) > > Thank you, > Romana Limberger ______________________________________________ [email protected] 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.
