View source: R/plot.fitfrail.R
plot.fitfrail | R Documentation |
fitfrail
objects
Plot the cumulative baseline hazard estimates or the parameter trace from model estimation.
## S3 method for class 'fitfrail'
plot(x, type = c("cumhaz", "trace"), ...)
x |
a |
type |
string, the type of plot. Can be either "cumhaz" to plot the mean estimated cumulative hazard or "trace" to plot the paramater and log-likelihood trace. |
... |
extra arguments include:
|
The plot object.
John. V Monaco, Malka Gorfine, Li Hsu
fitfrail
## Not run:
data(drs)
fit.drs <- fitfrail(Surv(time, status) ~ treated + cluster(subject_id),
drs, frailty="gamma")
# Plot the parameter and log-likelihood trace
plot(fit.drs, type="trace")
# This may take a while to run.
# Use parameter B to specify the number of repetitions in the weighted bootstrap
plot(fit.drs, type="cumhaz", CI=0.95)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.