[R] GLM output problem
Anderson Eduardo
andersonaed at gmail.com
Thu Sep 1 14:13:25 CEST 2016
Embarrassing but that's true. I wrote 'binamial' instead of 'binomial'. I
tried now with the correct spelling and everything is ok, in fact.
> summary(GLM)
Call:
glm(formula = model, family = binomial(link = logit))
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -18.5750 10.7646 -1.726 0.0844 .
x 5.0403 2.7757 1.816 0.0694 .
I(x^2) -0.2845 0.1558 -1.826 0.0679 .
Thank you all.
Anderson Eduardo
2016-09-01 5:14 GMT-03:00 peter dalgaard <pdalgd at gmail.com>:
> >> 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
>
>
>
>
>
>
>
>
>
>
--
Anderson A. Eduardo
------------------------------------------------------------------------------
Lattes <http://lattes.cnpq.br/3826166230581311> | Researcher ID
<http://orcid.org/0000-0001-8045-8043> | Google Acadêmico
<https://scholar.google.com.br/citations?user=oOUjq9IAAAAJ&hl=pt-BR> | Site
<http://andersonaireseduardo.xpg.uol.com.br/>
------------------------------------------------------------------------------
[[alternative HTML version deleted]]
More information about the R-help
mailing list