Learn R Programming

psc (version 1.2.0)

plot.psc.flexsurvreg: Function for Plotting PSC objects

Description

Function for Plotting PSC objects

Usage

# S3 method for psc.flexsurvreg
plot(x, ...)

Value

a survival plot corresponding to the psc fit

Arguments

x

an object of class 'psc'

...

not used

Details

making use of 'ggsurvplot' in the survminer package, this function plots the expected survival funtion for the 'control' treatment estimated from the CFM along with the Kaplan Meier estimates of the observed events