plot_curve: Plot a curve given posterior samples

Description Usage Arguments

View source: R/helper_functions.R

Description

Plot the posterior mean, simultaneous and pointwise 95% credible bands for a curve given draws from the posterior distribution

Usage

1
2
3
4
5
6
7
plot_curve(
  post_f,
  tau = NULL,
  alpha = 0.05,
  include_joint = TRUE,
  main = "Posterior Mean and Credible Bands"
)

Arguments

post_f

Ns x m matrix of Ns posterior simulations of the curve at m points

tau

m x 1 vector of observation points

alpha

confidence level for the bands

include_joint

logical; if TRUE, include joint bands (as well as pointwise)

main

text for title plot


drkowal/fosr documentation built on Oct. 2, 2020, 11:20 a.m.