plot.fahrmeier_94
Plots for ddhazard
Plot to illustrate the estimate state space variables from a ddhazard
fit
Usage
# S3 method for fahrmeier_94
plot(x, xlab = "Time", ylab = "Hazard",
type = "cov", plot_type = "l", cov_index, ylim, col = "black",
add = F, do_alter_mfcol = T, level = 0.95, ddhazard_boot, ...)
Arguments
- x
Result of
ddhazard
call- xlab, ylab, ylim, col
Arguments to override defaults set in the function
- type
Type of plot. Currently, only
"cov"
is available for plot of the state space parameters- plot_type
The
type
argument passed toplot
- cov_index
The index (indices) of the state space parameter(s) to plot
- add
FALSE
if you want to make a new plot- do_alter_mfcol
TRUE
if the function should alterpar(mfcol)
in case thatcov_index
has more than one element- level
Level (fraction) for confidence bounds
- ddhazard_boot
Object from a
ddhazard_boot
call which confidence bounds will be based on and where bootstrap samples will be printed with a transparent color- ...
Arguments passed to
plot
orlines
depending on the value ofadd
Details
Creates a plot of state variables or adds state variables to a plot with indices cov_index
. Pointwise 1.96 std. confidence intervals are provided with the smoothed co-variance matrices from the fit