plot_pfs {oncomsm} | R Documentation |
Plot progression-free-survival function
Description
plot_pfs()
plots the progression-free-survival function of a model.
Usage
plot_pfs(
model,
parameter_sample = NULL,
seed = 42L,
nsim = 500L,
warmup = 250,
nuts_control = list(),
dt_interval = NULL,
dt_n_grid = 25,
dt_expand = 1.1,
dt_grid = NULL,
confidence = NULL,
...
)
Arguments
model |
an object of class srpmodel containing prior information |
parameter_sample |
a stanfit object with samples from the respective model. |
seed |
integer, fixed random seed; NULL for no fixed seed |
nsim |
integer, number of samples to draw |
warmup |
integer, number of warm-up samples for the MCMC sampler
before retaining samples; see |
nuts_control |
list, parameters for NUTS algorithm see |
dt_interval |
numeric vector of length two with minimal and maximal time (relative to individual first visit) to use for plotting |
dt_n_grid |
number of grid points to use when automatically choosing plotting interval |
dt_expand |
expansion factor for upper plotting limit when using automatic interval detection |
dt_grid |
numeric vector of time points to use for plotting |
confidence |
numeric in (0, 1) confidence level for point-wise confidence bands around mean; none plotted if NULL. |
... |
further arguments passed to method implementations |
Value
a ggplot2::ggplot object
See Also
plot_transition_times()
plot_response_probability()
Examples
## Not run:
mdl <- create_srpmodel(A = define_srp_prior())
plot_pfs(mdl)
## End(Not run)