Hi - in order to roll back to Zelig 3.5, you can copy and paste the following in the R
Console:
install.packages("Zelig",
repos="http://r.iq.harvard.edu/archived/"ved/",
type = "source")
________________________________________
From: zelig-bounces(a)lists.gking.harvard.edu [zelig-bounces(a)lists.gking.harvard.edu] On
Behalf Of Kosuke Imai [kimai(a)princeton.edu]
Sent: Friday, December 21, 2012 10:22 AM
To: Weizhun Mao
Cc: matchit(a)lists.gking.harvard.edu; zelig(a)lists.gking.harvard.edu
Subject: Re: [zelig] [matchit] Ask for Help on MatchIt and Zelig, Thanks
This is a bug in the current version of Zelig. You should roll back to Zelig 3.5 for now
while this bug is being resolved. Thanks for your patience.
Kosuke
Department of Politics
Princeton University
http://imai.princeton.edu
On Dec 20, 2012, at 6:24 PM, Weizhun Mao <weizhun.mao(a)uni-konstanz.de> wrote:
Dear all,
I am learning the MatchIt paper by Ho et al. in Journal of Statistical Software (Vol. 42,
No.8, 2011).
However, when I went through all the codes in this paper I met two problems that troubled
me for two days .
As a result, I need your help. Thank you very much!
In fact, all the problems once took place. Before this email, I have checked almost all
the relevant solutions (like updating the software) in this emaillist, however it still
doesn't work.
In respect to the software, I am using the most updated software, including ZELIG
(Versions 4.1-0, built: 2012-11-09) and
MatchIt (Version 2.4-20, built: 2011-10-24) and R (version 2.15.2). Therefore, I
don't think it is a problem from software.
1. In the part of estimating "Average Treatment effect on the treated", I copy
the following code into R.
x.out1 <- setx(z.out1, data = match.data(m.out1, "treat"), cond = TRUE)
However it will give a warning message as follows. Does it matter? What order does the
new Zelig support?
Warning message:
In setx.default(z.out1, data = match.data(m.out1, "treat"), cond = TRUE) :
"cond" is not currently supported by this version of Zelig
2. When I try to estimate the Average Treatment Effect (overall), I copy the following
code.
ate.all <- c(s.out1$qi$att.ev, -s.out2$qi$att.ev)
It will indicates that "Error in -s.out2$qi$att.ev : invalid argument to unary
operator", which finally make me failing to continue.
I totally copy the codes in the article. Then what happened?
Would you like to tell me how to get rid of the failure?
Thank you very much!
Best wishes,
Mao
--
Mao Weizhun
Department of Politics and Management
Chair of International Politics
University of Konstanz
Room D 246
P.O. Box D 86
D-78457 Konstanz
Germany
Phone(O):+49-7531-88-4421
Email: Weizhun.Mao(a)uni-konstanz.de
Web:http://www.polver.uni-konstanz.de/gschneider/mitarbeiter/mao-weizhun/
-
---
MatchIt mailing list served by HUIT
List Address: matchit(a)lists.gking.harvard.edu
Subscribe/Unsubscribe:
http://lists.gking.harvard.edu/mailman/listinfo/ei
MatchIt Software and Documentation:
http://gking.harvard.edu/matchit/
Browse/Search List Archive:
http://lists.gking.harvard.edu/mailman/private/matchit/
Matchit mailing list
Matchit(a)lists.gking.harvard.edu
To unsubscribe from this list or get other information:
https://lists.gking.harvard.edu/mailman/listinfo/matchit
-
--
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