Dear Ani,
I just released MatchIt version 2.2-6 which includes this bug fix. You
can install this latest version via
install.packages("MatchIt", repos="http://gking.harvard.edu")
Or you can wait for a few days until it appears on CRAN.
Cheers,
Kosuke
-----------------------------------------------------
Kosuke Imai Office: Corwin Hall 041
Assistant Professor Phone: 609-258-6601
Department of Politics eFax: 973-556-1929
Princeton University Email: kimai(a)Princeton.Edu
Princeton, NJ 08544-1012
http://imai.princeton.edu
-----------------------------------------------------
On Fri, 31 Mar 2006, Anirudh V. S. Ruhil wrote:
Dear Kosuke;
I reinstalled matchIt 2.2-5 and the error persists. The relevant code and
associated output (truncated to save bandwidth but show m.out2 exists)
follow ...
------------------------------------
library(MatchIt)
m.out2 <- matchit(scale ~ population +
urbanization
+ + pctownocc + mdyearstruc
+ + mdhomevalue + pcincome
+ + pctjuvenile + pctjuvespoor,
+ data = scale, method = "nearest")
summary(m.out2)
Call:
matchit(formula = scale ~ population + urbanization + pctownocc +
mdyearstruc + mdhomevalue + pcincome + pctjuvenile + pctjuvespoor,
data = scale, method = "nearest")
{....}
{....}
Percent Balance Improvement:
Mean Diff. eQQ Med eQQ Mean eQQ Max
distance 98.45 96.71 94.96 89.44
population 48.63 24.30 62.40 86.64
urbanization 95.06 57.10 94.97 96.52
pctownocc 84.82 81.91 82.74 65.41
mdyearstruc 86.78 83.33 76.47 73.08
mdhomevalue 92.66 87.10 87.44 93.22
pcincome 96.39 87.71 91.88 92.71
pctjuvenile 85.76 80.44 84.25 86.66
pctjuvespoor 86.45 80.75 81.74 67.84
Sample sizes:
Control Treated
All 160 13
Matched 13 13
Unmatched 147 0
Discarded 0 0
m.out2$match.matrix
1
1 "5"
31 "59"
35 "44"
53 "34"
70 "64"
81 "62"
87 "146"
100 "102"
137 "127"
148 "154"
158 "30"
171 "84"
173 "114"
matches <- match.data(m.out2)
Error in
cbind(data, object$distance) : cannot coerce type closure to list
vector
----------------------------------
best
Ani
Anirudh V. S. Ruhil, Ph.D.
Sr. Research Associate
Voinovich Center for Leadership and Public Affairs
Ohio University
Building 21, The Ridges
Athens, OH 45701-2979
Tel: 740.597.1949 | Fax: 740.597.3057
-
Zelig Mailing List, served by Harvard-MIT Data Center
Send messages: zelig(a)latte.harvard.edu
[un]subscribe Options:
http://lists.hmdc.harvard.edu/?info=zelig
Zelig program information:
http://gking.harvard.edu/zelig/