adjustedPlot_mnps: Draw adjusted survival curve using weights

View source: R/makePPTList_mnps.R

adjustedPlot_mnpsR Documentation

Draw adjusted survival curve using weights

Description

Draw adjusted survival curve using weights

Usage

adjustedPlot_mnps(out, time = "", status = "", ...)

Arguments

out

An object of class mnps

time

Name of time variable

status

Name of status variable

...

further arguments to be passed survminer::ggsurvplot

Value

an object of class ggsurvplot

Examples

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)

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