View source: R/makePPTList_matchit.R
makePPTList_matchit | R Documentation |
make pptList with an object of class matchit
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
)
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 |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.