dynamichazard (version 1.0.2)

plot.ddhazard_space_errors: State Space Error Plot

Description

Plot function for state space errors from ddhazard fit.

Usage

# S3 method for ddhazard_space_errors
plot(
  x,
  mod,
  cov_index = NA,
  t_index = NA,
  p_cex = par()$cex * 0.2,
  pch = 16,
  ylab = "Std. state space error",
  x_tick_loc = NA,
  x_tick_mark = NA,
  xlab = "Time",
  ...
)

Value

Returns NULL using invisible.

Arguments

x

result of residuals with a `type` argument which yields state space errors.

mod

the ddhazard result used in the residuals call.

cov_index

the indices of state vector errors to plot. Default is to use all.

t_index

the bin indices to plot. Default is to use all bins.

p_cex

cex argument for the points

pch, ylab, xlab

arguments to override defaults set in the function.

x_tick_loc, x_tick_mark

at and labels arguments passed to axis.

...

arguments passed to plot.default.