Learn R Programming

Matching (version 0.48)

summary.balanceMV: Summarizing output from balanceMV

Description

summary method for class balanceMV

Usage

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

Arguments

object
An object of class "balanceMV", usually, a result of a call to balanceMV.
digits
The number of significant digits that should be displayed.
...
Other options for the generic summary function.

See Also

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

Examples

Run this code
data(lalonde)

#propensity score matching
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)

X  <- cbind(lalonde$re74,lalonde$re75,lalonde$age,lalonde$hisp,lalonde$black)
Y  <- lalonde$re78
Tr  <- lalonde$treat

rr  <- Match(Y=Y,Tr=Tr,X=X,M=1)

#multivariate test for balance
# 'nboots' and 'nmc' are set to small values in the interest of speed.
# Please increase to at least 500 each for publication quality p-values.  
ks  <- balanceMV(treat~ age + I(age^2) + educ + I(educ^2) + black +
               hisp + married + nodegr + re74  + I(re74^2) + re75 + I(re75^2) +
               u74 + u75, data=lalonde, match.out=rr, nboots=10, nmc=10)

#let's summarize the output
summary(ks)

Run the code above in your browser using DataLab