Learn R Programming

trtswitch (version 0.2.3)

plot.assess_phregr: Plot method for assess_phregr objects

Description

Generate line plots of observed and simulated paths of standardized score processes of a Cox model.

Usage

# S3 method for assess_phregr
plot(x, nsim = 20, ...)

Value

A list of ggplot2 objects for the line plots, one for each covariate.

Arguments

x

An object of class assess_phregr.

nsim

The number of simulation samples used in the plot.

...

Ensures that all arguments starting from "..." are named.

Author

Kaifeng Lu, kaifenglu@gmail.com