plot.fitfrail: Plot method for 'fitfrail' objects

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plot.fitfrail.R

Description

Plot the cumulative baseline hazard estimates or the parameter trace from model estimation.

Usage

1
2
## S3 method for class 'fitfrail'
plot(x, type = c("cumhaz", "trace"), ...)

Arguments

x

a fitfrail object

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:

CI for type="cumhaz", numeric confidence interval between 0 and 1. If CI=0, no confidence interval is displayed. Otherwise, the bootstrapped confidence interval is calculated and displayed.

end for type="cumhaz", numeric x-axis limit (plot up to time end)

show.loglik for type="trace", logical whether to show the log-likelihood trace.

Value

The plot object.

Author(s)

John. V Monaco, Malka Gorfine, Li Hsu

See Also

fitfrail

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## 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)

frailtySurv documentation built on Aug. 29, 2018, 1:04 a.m.