Thanks for your time. I still see the same error as before:
library(Matchit)
data(lalonde)
foo1 <- matchit(treat ~ black, exact = TRUE, data = lalonde)
Exact
matching...Done
Calculating summary statistics...Done
foo1 # Works fine
Assignment model specification:
matchit(formula = treat ~ black, data = lalonde, exact = TRUE)
Sample sizes for full and exactly matched data:
Treated Control Total
Full 185 429 614
Matched 185 429 614
summary(foo1) # Fails
Error in apply(covariates,
2, qoi, tt = treat, ww = weights) :
dim(X) must have a positive length
packageDescription("Matchit")
Package:
Matchit
Version: 0.1-5
Date: 2004-08-05
Title: Matchit: Matching Software for Causal Inference
Author: Daniel Ho <deho(a)fas.harvard.edu>du>, Elizabeth Stuart
<stuart(a)stat.harvard.edu>du>, Kosuke Imai
<kimai(a)Princeton.Edu>du>, Gary King <king(a)harvard.edu>
Maintainer: Daniel Ho <deho(a)fas.harvard.edu>
Depends: R (>= 1.9.0)
Description: Matchit selects matched samples of the the original treated and control
groups with similar covariate
distributions -- can be used to match exactly on covariates, to match on
propensity scores, or perform
a variety of other matching procedures.
License: GPL
URL:
http://gking.harvard.edu/matchit
Packaged: Thu Aug 5 22:04:07 2004; kimai
Built: R 1.9.1; ; 2004-08-06 07:25:31; unix
-- File: /home/dkane/rlib/Matchit/DESCRIPTION
Am I missing something? Let me know if I should report traceback's or
anything else.
Thanks,
Dave
Kosuke Imai writes:
> Hi Dave,
> We have fixed these problems that you pointed out. The new version won't
> be released probably until next week, but I wanted to give you a tar ball
> so that you can play with it. Thanks for using the software and please let
> us know if you encounter any problem or have any suggestion to improve
> Matchit functionalities.
> Thanks,
> 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://www.princeton.edu/~kimai
> ---------------------------------------------------------
> On Thu, 5 Aug 2004, David Kane wrote:
> > Kosuke Imai writes:
> > > Hi,
> > > I have Linux and R 1.9.1, but it works fine. What problem do you have?
>
> > There are several problems. See
previous messages on the list.
>
> > 1) The installation help page for
MatchIt gives a command that does
> > not work. See:
>
> > --------------------------
> > bash-2.05b$ R --vanilla
>
> > R : Copyright 2004, The R Foundation
for Statistical Computing
> > Version 1.9.1 (2004-06-21), ISBN 3-900051-00-3
>
> > R is free software and comes with
ABSOLUTELY NO WARRANTY.
> > You are welcome to redistribute it under certain conditions.
> > Type 'license()' or 'licence()' for distribution details.
>
> > R is a collaborative project with
many contributors.
> > Type 'contributors()' for more information and
> > 'citation()' on how to cite R in publications.
>
> > Type 'demo()' for some
demos, 'help()' for on-line help, or
> > 'help.start()' for a HTML browser interface to help.
> > Type 'q()' to quit R.
>
> > WARNING: UTF-8 locales are not
currently supported
>
> > >
install.packages("matchit", CRAN="http://gking.harvard.edu")
> > trying URL `http://gking.harvard.edu/src/contrib/PACKAGES'
> > Content type `text/plain' length 2035 bytes
> > opened URL
> > .
> > downloaded 2035 bytes
>
> > Warning messages:
> > 1: argument `lib' is missing: using /home/dkane/rlib in:
install.packages("matchit", CRAN = "http://gking.harvard.edu")
> > 2: No package "matchit" on CRAN. in: download.packages(pkgs, destdir
= tmpd, available = available,
> > >
> > ------------------------------
>
> > I think that one needs to specify
the "lib" argument, although I am
> > not sure.
>
> > 2) Even with the "lib"
argument, you get a failure.
>
>
> > ------------------------------
> > > install.packages("matchit", lib = "~/rlib/",
CRAN="http://gking.harvard.edu")
> > trying URL `http://gking.harvard.edu/src/contrib/PACKAGES'
> > Content type `text/plain' length 2035 bytes
> > opened URL
> > .
> > downloaded 2035 bytes
>
> > Warning message:
> > No package "matchit" on CRAN. in: download.packages(pkgs, destdir =
tmpd, available = available,
> > >
> > -------------------------------
>
> > This problem has been around for a
while. Note that Zelig works for
> > me.
>
> > 3) The source code and/or tar balls
for the latest version (0.1-4)
> > does not seem to be available. At least I don't seem them here:
>
> >
http://www.people.fas.harvard.edu/~deho/src/contrib/
>
> > Although perhaps I should be looking
elsewhere.
>
> > 4) Daniel Ho was kind enough to
provide me with a tar ball for version
> > 0.1-4 (which I mistakenly deleted after installing it). Alas, it
> > doesn't work for me. See here for the details:
>
> >
http://lists.hmdc.harvard.edu/lists/matchit/2004_07/msg00005.html
>
> > Can you get the simple commands that
I demonstrate there to work?
>
> > Thanks for your time.
>
> > Dave
>
>
> > > You might want to reinstall it by
> >
> > > R
CMD remove
> >
> > >
command.
> >
> > >
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://www.princeton.edu/~kimai
> > > ---------------------------------------------------------
> >
> > > On
Thu, 5 Aug 2004, David Kane wrote:
> >
> > >
> Is anyone out there able to use the latest version of MatchIt (which I think is
> > > > 0.1-4) with the latest version of R (1.9.1) on LINUX? Will this be
> > > > possible anytime in the near future?
> > >
> > >
> Any pointers would be appreciated.
> > >
> > >
> Thanks,
> > >
> > >
> Dave Kane
> > >
> > >
> > > > -
> > > > MatchIt mailing list served by Harvard-MIT Data Center
> > > > List Address: matchit(a)latte.harvard.edu
> > > > Subscribe/Unsubscribe:
http://lists.hmdc.harvard.edu/?info=matchit
> > > > MatchIt Software and Documentation:
http://gking.harvard.edu/matchit/
> > >
> >
> >
> > > -
> > > MatchIt mailing list served by Harvard-MIT Data Center
> > > List Address: matchit(a)latte.harvard.edu
> > > Subscribe/Unsubscribe:
http://lists.hmdc.harvard.edu/?info=matchit
> > > MatchIt Software and Documentation:
http://gking.harvard.edu/matchit/
>
>
--
David Kane
Kane Capital Management
646-644-3626
-
MatchIt mailing list served by Harvard-MIT Data Center
List Address: matchit(a)latte.harvard.edu
Subscribe/Unsubscribe:
http://lists.hmdc.harvard.edu/?info=matchit
MatchIt Software and Documentation:
http://gking.harvard.edu/matchit/