PSMTable: Make flextable summarizing propensity score matching

View source: R/makePPTList_matchit.R

PSMTableR Documentation

Make flextable summarizing propensity score matching

Description

Make flextable summarizing propensity score matching

Usage

PSMTable(x, digitsstd = 3, grouplabel = NULL)

Arguments

x

An object of class matchit

digitsstd

integer indicating the number of decimal places

grouplabel

Optional group label

Examples

require(MatchIt)
formula=treat ~ age + educ + race+married+nodegree + re74 + re75
x=matchit(formula, data =lalonde, method= "full",link="probit")
PSMTable(x,grouplabel=c("Control","Treated"))
x=matchit(formula, data =lalonde, method= "nearest")
PSMTable(x,grouplabel=c("Control","Treated"))
data("GBSG2",package="TH.data")
x=matchit(horTh~age+menostat+tsize+tgrade+pnodes+progrec+estrec,data=GBSG2,method="full")
PSMTable(x)

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