state: Define a State Variable Equation

View source: R/model-specification.R

stateR Documentation

Define a State Variable Equation

Description

Wraps a formula to mark it as an equation for a state variable in a linear DSGE model. State equations describe the evolution of state variables one period ahead.

Usage

state(formula, shock = TRUE)

Arguments

formula

A formula of the form variable ~ expression. The left-hand side variable represents the one-period lead of the state.

shock

Logical. If TRUE (default), an unobserved shock is attached to this state equation (exogenous state). If FALSE, no shock is attached (endogenous state / deterministic state).

Value

A list with class "dsge_equation" containing the parsed equation and its type.

See Also

obs(), unobs(), dsge_model()


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