[R] coefficients regression
Viechtbauer Wolfgang (STAT)
Wolfgang.Viechtbauer at STAT.unimaas.nl
Mon May 21 17:36:23 CEST 2007
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: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of romi at aon.at
Sent: Monday, May 21, 2007 10:37 To: r-help at stat.math.ethz.ch
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
More information about the R-help
mailing list