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
plot_curve(post_f, tau = NULL, alpha = 0.05, include_joint = TRUE,
  main = "Posterior Mean and Credible Bands", ylim = NULL)

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

title text (optional)

ylim

range of y-axis (optional)


drkowal/dfosr documentation built on May 7, 2020, 3:09 p.m.