plot.pdlm: Plot a Fitted Predictive Dynamic Linear Model

View source: R/plot_pdlm.R

plot.pdlmR Documentation

Plot a Fitted Predictive Dynamic Linear Model

Description

Produces a plot for an object of class pdlm (typically created by pdlm). The function displays the observed data along with the fitted curves computed using filtered and/or smoothed state estimates.

Usage

## S3 method for class 'pdlm'
plot(x, plot_data = TRUE, conf.int = FALSE, sig.level = 0.95, ...)

Arguments

x

An object of class pdlm, as returned by dlm.

plot_data

Logical; if TRUE (default) the observed data points are plotted.

conf.int

Logical; if TRUE, plot confidence intervals with the given sig.level.

sig.level

Numeric; significance level for confidence intervals (default: 0.95).

...

Additional graphical parameters to pass to the underlying plotting functions.

Value

This function produces a plot of the fitted DLM and returns NULL invisibly.


dlmwwbe documentation built on June 8, 2025, 10:07 a.m.