reportPSM | R Documentation |
Report propensity sore matching
reportPSM(out, depvar = "", compare = NULL)
out |
An object of class matchit |
depvar |
Character name of dependent variable |
compare |
logical Whether or not compare to nearest model |
library(MatchIt)
formula=treat ~ age + educ + race+ married +nodegree + re74 + re75
out=matchit(formula, data =lalonde, method= "nearest")
reportPSM(out)
out=matchit(formula, data = lalonde, method= "full",distance="glm",link="probit")
reportPSM(out,depvar="re78")
reportPSM(out,depvar="re78",compare=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.