View source: R/makePPTList_mnps.R
adjustedPlot_mnps | R Documentation |
Draw adjusted survival curve using weights
adjustedPlot_mnps(out, time = "", status = "", ...)
out |
An object of class mnps |
time |
Name of time variable |
status |
Name of status variable |
... |
further arguments to be passed survminer::ggsurvplot |
an object of class ggsurvplot
library(twang)
data(cancer,package="survival")
out=mnps(rx~nodes+differ+adhere+obstruct+surg+extent+node4,data=colon,verbose=FALSE,n.trees=3000)
adjustedPlot_mnps(out,time="time",status="status")
adjustedPlot_mnps(out,time="time",status="status",pval=TRUE,risk.table=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.