How can I output the fitted values?
Posted
by
zenbomb
on Stack Overflow
See other posts from Stack Overflow
or by zenbomb
Published on 2012-11-26T17:02:12Z
Indexed on
2012/11/26
17:03 UTC
Read the original article
Hit count: 192
r
|curve-fitting
Sorry if this is a novice question, but I don't understand it. I am fitting a sigmoid curve to my data with glm()
. This works, I can plot the output and I see a nice sigmoid curve.
However, how do I get R to return the final values it has fit? As I understand it, R fits the data to logit(y) = b0 + b1x
, but when I do > summary(glm.out)
I only get
Call:
glm(formula = e$V2 ~ e$V1, family = binomial(logit), data = e)
Deviance Residuals:
1 2 3 4 5 6 7
-0.00001 -0.06612 -0.15118 -0.34237 0.20874 0.08724 -0.19557
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -24.784 20.509 -1.208 0.227
e$V1 2.073 1.725 1.202 0.229
(Dispersion parameter for binomial family taken to be 1)
Null deviance: 4.60338 on 6 degrees of freedom
Residual deviance: 0.23388 on 5 degrees of freedom
AIC: 5.8525
Number of Fisher Scoring iterations: 8
How do I get b0 and b1?
© Stack Overflow or respective owner