View source: R/makePPTList_matchit.R
ggPS | R Documentation |
Make ggplot between covariates and propensity score
ggPS(x, xlabs = NULL, ncol = 2)
x |
An object of class matchit |
xlabs |
labels for group variable |
ncol |
Numeric Number of facet column |
require(MatchIt)
require(ggplot2)
formula=treat ~ age + race+educ + nodegree + re74 + re75
x=matchit(formula, data =lalonde, method= "nearest",ratio=1,caliper=0.25)
ggPS(x,xlabs=c("control","treated"))+theme(legend.position=c(0.8,0.15))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.