plot_fitted: Plot the Bayesian curve fitted values

Description Usage Arguments

View source: R/helper_functions.R

Description

Plot the curve posterior means with posterior credible intervals (pointwise and joint), the observed data, and true curves (if known)

Usage

1
2
plot_fitted(y, mu, postY, y_true = NULL, t01 = NULL,
  include_joint_bands = FALSE)

Arguments

y

the T x 1 vector of time series observations

mu

the T x 1 vector of fitted values, i.e., posterior expectation of the mean

postY

the nsims x T matrix of posterior draws from which to compute intervals

y_true

the T x 1 vector of points along the true curve

t01

the observation points; if NULL, assume T equally spaced points from 0 to 1

include_joint_bands

logical; if TRUE, compute simultaneous credible bands


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