"plot.ci" is now part of the plot function. That is, it is implicitly called on
an object of the correct type.
The code:
Zelig:::plot.ci(...)
However, will still work.
On Oct 23, 2012, at 4:24 PM, Anthony Pezzola wrote:
Dear all,
I just updated Zelig and am running R 2.15.1 and have run into the following error with
polt.ci:
Error: could not find function "plot.ci"
Is plot.ci no depreciated?
I have tried the following script from the web and recieve the same error:
data(turnout)
z.out <- zelig(vote ~ race + educate + age + I(age^2) + income,
+
model = "logit", data = turnout)
.
.
.
summary(z.out)
Call:
glm(formula = formula, family = binomial(link = "logit"), data = data,
weights = w, model = F)
Deviance Residuals:
Min 1Q Median 3Q Max
-2.7413 -0.8156 0.5564 0.7780 1.8218
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -4.3416816 0.4763159 -9.115 < 2e-16 ***
racewhite 0.2721490 0.1470441 1.851 0.064199 .
educate 0.1764168 0.0203024 8.689 < 2e-16 ***
age 0.0945198 0.0177067 5.338 9.39e-08 ***
I(age^2) -0.0006835 0.0001783 -3.833 0.000126 ***
income 0.1517485 0.0278442 5.450 5.04e-08 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
(Dispersion parameter for binomial family taken to be 1)
Null deviance: 2266.7 on 1999 degrees of freedom
Residual deviance: 2009.6 on 1994 degrees of freedom
AIC: 2021.6
Number of Fisher Scoring iterations: 5
age.range <- 18:95
x.low <- setx(z.out, educate = 12, age = age.range)
x.high <- setx(z.out, educate = 16, age = age.range)
s.out <- sim(z.out, x = x.low, x1 = x.high)
plot.ci(s.out, xlab = "Age in Years",
+ ylab = "Predicted
Probability of Voting",
+ main = "Effect of Education and Age on Voting Behavior")
Error: could not find function "plot.ci"
------------------------------
Anthony A. Pezzola
Profesor Asistente
Jefe del Magíster en Ciencia Política
Instituto de Ciencia Política
Pontificia Universidad Católica de Chile
Santiago, Chile
(56) 2 354-7823
To be sure of hitting the target, shoot first and call whatever you hit the target.
-
--
Zelig Mailing List, served by HUIT
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options:
http://lists.gking.harvard.edu/mailman/listinfo/zelig
Zelig program information:
http://gking.harvard.edu/zelig/
Zelig mailing list
Zelig(a)lists.gking.harvard.edu
To unsubscribe from this list or get other information:
https://lists.gking.harvard.edu/mailman/listinfo/zelig