>> And use the parameters returned by GLM to contruct an equation for the >> regression model: >> >> model.eq = -0.446078 + 0.267673*x - 0.014577*I(x^2) > > ## Not what I got with your data. I got: > > Coefficients: > (Intercept) x I(x^2) > -18.5750 5.0403 -0.2845 > > > I suspect you had some other x,y variables lying around when you > defined your model.
More likely, the family= specification got lost and gaussian family implied: > glm(model) Call: glm(formula = model) Coefficients: (Intercept) x I(x^2) -0.44608 0.26767 -0.01458 -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: [email protected] Priv: [email protected] ______________________________________________ [email protected] mailing list -- To UNSUBSCRIBE and more, see 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.

