Learn R Programming

Matching (version 0.48)

summary.Match: Summarizing output from Match

Description

summary method for class Match

Usage

## S3 method for class 'Match':
summary(object, ... , full=FALSE, digits=5)

Arguments

object
An object of class "Match", usually, a result of a call to Match.
full
A flag for whether the unadjusted estimates and naive standard errors should also be summarized.
digits
The number of significant digits that should be displayed.
...
Other options for the generic summary function.

See Also

Also see Match, MatchBalance, balanceMV, balanceUV, GerberGreenImai, lalonde

Examples

Run this code
#
# Replication of Dehejia and Wahba psid3 model
#
# Dehejia, Rajeev and Sadek Wahba. 1999.``Causal Effects in Non-Experimental Studies: Re-Evaluating the
# Evaluation of Training Programs.''Journal of the American Statistical Association 94 (448): 1053-1062.
#
data(lalonde)

#
# Estimate the propensity model
#
glm1  <- glm(treat~age + I(age^2) + educ + I(educ^2) + black +
             hisp + married + nodegr + re74  + I(re74^2) + re75 + I(re75^2) +
             u74 + u75, family=binomial, data=lalonde)


#
#save data objects
#
X  <- glm1$fitted
Y  <- lalonde$re78
Tr  <- lalonde$treat

#
# one-to-one matching with replacement (the "M=1" option).
# Estimating the treatment effect on the treated (the "estimand" option which defaults to 0).
#
rr  <- Match(Y=Y,Tr=Tr,X=X,M=1);

#Let's summarize the output
summary(rr)

Run the code above in your browser using DataLab