BSBPlotDiag {BGPhazard}R Documentation

Plot diagnostics for BSBHaz model

Description

Plot diagnostics for BSBHaz model

Usage

BSBPlotDiag(
  bsbhaz,
  variable = c("omega1", "omega2", "lambda1", "lambda2", "gamma", "theta"),
  type = c("traceplot", "ergodic_means")
)

Arguments

bsbhaz

An object of class 'BSBHaz' created by BSBHaz.

variable

A character indicating which variable to get the plot from.

type

A character indicating if the plot should be a traceplot or plot the ergodic means.

Examples

t1 <- survival::Surv(c(1, 2, 3))
t2 <- survival::Surv(c(1, 2, 3))

init <- BSBInit(t1 = t1, t2 = t2, seed = 0)
samples <- BSBHaz(init, iter = 10, omega_d = 2,
gamma_d = 10, seed = 10)

BSBPlotDiag(samples, variable = "omega1", type = "traceplot")


[Package BGPhazard version 2.1.1 Index]