[R] GLM output problem
peter dalgaard
pdalgd at gmail.com
Thu Sep 1 10:14:00 CEST 2016
>> 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: pd.mes at cbs.dk Priv: PDalgd at gmail.com
More information about the R-help
mailing list