ggPS: Make ggplot between covariates and propensity score

View source: R/makePPTList_matchit.R

ggPSR Documentation

Make ggplot between covariates and propensity score

Description

Make ggplot between covariates and propensity score

Usage

ggPS(x, xlabs = NULL, ncol = 2)

Arguments

x

An object of class matchit

xlabs

labels for group variable

ncol

Numeric Number of facet column

Examples

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))

cardiomoon/webrPSM documentation built on Feb. 2, 2024, 3:55 a.m.