| qpm_model | R Documentation |
Declares a linear semi-structural model with model-consistent
expectations. Equations are parsed immediately, so unknown symbols and
malformed lag/lead references are caught at construction time.
Coefficients are extracted from the current calibration when the model
is solved with qpm_solve().
qpm_model(
name = "QPM model",
variables,
shocks,
equations,
params = list(),
sigma = NULL,
meta = list()
)
name |
Model name used in printed output. |
variables |
Variable declarations from |
shocks |
Shock declarations from |
equations |
Equations from |
params |
Named list/vector of parameter values. |
sigma |
Named vector of shock standard deviations. Defaults to 1 for every shock. |
meta |
Optional list of metadata (e.g. plausible parameter
|
An object of class qpm_model.
m <- qpm_model(
name = "AR(1) toy",
variables = vars(x = "A persistent process"),
shocks = shocks(eps_x),
equations = eqs(x ~ rho * x[-1] + eps_x),
params = list(rho = 0.8)
)
m
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.