PerturbationModelSpecification#
- class cultivars.multivariate.structural.perturbation.PerturbationModelSpecification(*args, **kwargs)[source]#
What a perturbation model must supply to be solved and estimated.
Every method takes the structural parameter vector
thetain its natural (constrained) space. The engine differentiatesequationsnumerically, so it must be smooth in its arguments near the steady state and must be written in the variables the approximation should be taken in – write it in logs for a log-linear approximation.- Variables:
parameter_names (
Sequence[str]) – One label per structural parameter.bounds (
Sequence[tuple[float,float]]) –(d, 2)lower and upper bounds per parameter;-inf/inffor an unbounded side.n_states (
int) – Predetermined variables, exogenous processes included.n_controls (
int) – Non-predetermined variables.
Note
The protocol is not
runtime_checkable, and nothing here checks an implementation against it. A method with the wrong signature or a return of the wrong shape surfaces where the engine first uses it.See also
PerturbationModelSpecification– the public name of this class.
Attributes#
One label per structural parameter, in the order of |
|
|
|
Number of predetermined variables |
|
Number of non-predetermined variables |
Methods#
|
Residuals of |
|
Log prior density in the constrained space; |
|
|
|
|
|
|