Dear Jason,
Here are some quick responses to your questions.
First, the units that were (or were not) discarded due to common support
restrictions can be identified using the $discarded output from matchit. For
example:
temp <- matchit(treat~re74+re75+age+educ, data=lalonde, discard="both")
temp$discarded
In that case, temp$discarded is a vector of length 614 that is TRUE if units
were discarded because of common support restrictions and FALSE if they were
not.
To output a data set to a .txt or .csv file you can use commands like:
m.data <- match.data(temp)
write.table(m.data, file="matches.txt", sep="\t", quote=FALSE)
That will create a tab-delimited file. Other delimiters can be used by
specifying a different "sep" (see help(write.table) for more information).
I hope this is helpful.
Liz
-----Original Message-----
From: owner-matchit(a)mail-1.hmdc.harvard.edu
[mailto:owner-matchit@mail-1.hmdc.harvard.edu]On Behalf Of Jason Barabas
Sent: Monday, February 27, 2006 9:24 AM
To: matchit(a)mail-1.hmdc.harvard.edu
Subject: [matchit] Common Support and Export Function
Hi,
I have two questions concerning data management in MatchIt. First, how
can I identify the treatment and control units that share common
support, not just those units that are ultimately matched? Second, how
can I export a matched or common support dataset created via match.data
into another program? Section 3.3. of the MatchIt manual mentions
commands like "write.csv" or "write.dta," but an example would be
greatly appreciated.
Thanks.
Jason
-
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/