plot.dsge_perfect_foresight: Plot Perfect Foresight Transition Paths

View source: R/perfect-foresight.R

plot.dsge_perfect_foresightR Documentation

Plot Perfect Foresight Transition Paths

Description

Plot the deterministic transition paths from a perfect_foresight result, optionally overlaying a second path for comparison (e.g. linearized vs. nonlinear).

Usage

## S3 method for class 'dsge_perfect_foresight'
plot(x, vars = NULL, type = "deviation", compare = NULL, max_panels = 9L, ...)

Arguments

x

A dsge_perfect_foresight object.

vars

Character vector of variable names to plot. If NULL (default), plots all variables with non-trivial paths.

type

Character. One of "deviation" (default) or "level". Controls whether to plot deviations from SS or levels.

compare

Optional second dsge_perfect_foresight object to overlay on the same panels (e.g. pass the linearized perfect_foresight() result alongside a perfect_foresight_nonlinear() result to visualise the nonlinearity premium). Only variables common to both objects are overlaid.

max_panels

Integer. Maximum number of panels per plot page. Default 9.

...

Additional arguments (currently unused).

Value

No return value, called for the side effect of producing transition path plots on the active graphics device.


dsge documentation built on Sept. 25, 2026, 5:08 p.m.