plot_fitted: Plot the Bayesian curve fitted values

Description Usage Arguments Examples

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
3
4
5
6
7
8
plot_fitted(
  y,
  mu,
  postY,
  y_true = NULL,
  t01 = NULL,
  include_joint_bands = FALSE
)

Arguments

y

the n x 1 vector of time series observations

mu

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

postY

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

y_true

the n x 1 vector of points along the true curve

t01

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

include_joint_bands

logical; if TRUE, compute simultaneous credible bands

Examples

1
# FIXME

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