makePPTList_matchit: make pptList with an object of class matchit

View source: R/makePPTList_matchit.R

makePPTList_matchitR Documentation

make pptList with an object of class matchit

Description

make pptList with an object of class matchit

Usage

makePPTList_matchit(
  x,
  depvar = NULL,
  time = "",
  status = "",
  seed = 1234,
  m.threshold = 0.1,
  v.threshold = 2,
  compare = TRUE,
  report = TRUE,
  multiple = TRUE,
  depKind = "continuous",
  covarCentering = FALSE,
  withinSubclass = FALSE,
  analyzeSens = FALSE
)

Arguments

x

An object of class matchit

depvar

Variable name serves as dependent variables

time

Name of time variable

status

Name of status variable

seed

Integer

m.threshold

numeric The default value is 0.1

v.threshold

numeric The default value is 2

compare

logical

report

logical

multiple

logical

depKind

character One of c("continuous","binary","survival")

covarCentering

logical

withinSubclass

logical

analyzeSens

logical

Examples

require(MatchIt)
require(cobalt)
require(survival)
x=matchit(treat ~ age + educ + race + married+nodegree + re74 + re75, data =lalonde,
   method="subclass",subclass=4)
x=matchit(treat ~ age + educ + race + married+nodegree + re74 + re75, data =lalonde,
   method="exact")
x=matchit(treat ~ age + educ + race + married+nodegree + re74 + re75, data =lalonde,
   method="full",link='probit')
x=matchit(treat ~ age + educ + race + married+nodegree + re74 + re75, data =lalonde,
   method="nearest",link='probit')
result=makePPTList_matchit(x)
result=makePPTList_matchit(x,depvar="re78",analyzeSens=TRUE)
data("GBSG2",package="TH.data")
x=matchit(horTh~age+menostat+tsize+tgrade+pnodes+progrec+estrec,data=GBSG2,method="full")
result=makePPTList_matchit(x,time="time",status="cens")

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