Learn R Programming

powerbrmsINLA (version 1.3.0)

plot_sequential_monitor: Plot a sequential analysis trajectory with stopping boundaries

Description

Visualises a sequential_analysis() monitor: either the monitored posterior probability across looks with the prespecified success and futility boundaries, or the effect estimate with its credible interval across looks.

Usage

plot_sequential_monitor(
  monitor,
  type = c("probability", "estimate"),
  title = NULL,
  subtitle = NULL
)

Value

A ggplot object.

Arguments

monitor

A "powerbrmsINLA_seq_monitor" object.

type

"probability" (default) or "estimate".

title, subtitle

Optional plot annotations.