View source: R/makePPTList_mnps.R
makePPTList_mnps | R Documentation |
Make PPT List with an object of class mnps
makePPTList_mnps(
x,
dep = "",
time = "",
status = "",
adjustCovar = FALSE,
covars = "",
method = "GBM"
)
x |
Character |
dep |
Character Name of dependent variable |
time |
Name of time variable |
status |
Name of status variable |
adjustCovar |
logical |
covars |
string |
method |
Method of PS estimate. One of c("GBM","lm","glm","chisq") |
## Not run:
library(twang)
data(AOD)
x <- "mnps(treat~illact+crimjust+subprob+subdep+white,data=AOD,verbose=FALSE,n.trees=3000)"
result=makePPTList_mnps(x,dep="suf12")
data(cancer,package="survival")
x="mnps(rx~nodes+differ+adhere+obstruct+surg+extent+node4,data=colon,n.trees=3000)"
result=makePPTList_mnps(x,time="time",status="status")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.