Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Houtan Bastani
obsmacro-dynare-json
Commits
034434a4
Verified
Commit
034434a4
authored
Jan 27, 2020
by
Houtan Bastani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test partial change in CI (lines 1-483)
parent
049b3064
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
dynare-preprocessor-w-json.rst
dynare-preprocessor-w-json.rst
+8
-9
No files found.
dynare-preprocessor-w-json.rst
View file @
034434a4
Using
JSON
Output
from
the
Dynare
Preprocessor
##############################################
:
date
:
2020
-
01
-
2
3
:
date
:
2020
-
01
-
2
4
:
tags
:
Dynare
,
Preprocessor
,
JSON
,
MATLAB
:
category
:
Dynare
:
slug
:
dynare
-
preprocessor
-
w
-
json
...
...
@@ -459,29 +459,28 @@ Together, these functions return matrices corresponding to the observed
variable, ``Y``, the regressors, ``X``, the constant term, ``lhssub``, and the
first and last periods of the observed data (``fp`` and ``lp``).
Parsing proceeds as follows in ``parse_ols_style_equation.m``.
After
, the
function arguments are verified
at the beginning of the function (lines 38-66),
we know that the LHS
contains either a ``VariableNode`` or a ``UnaryOpNode``.
Parsing proceeds as follows in ``parse_ols_style_equation.m``.
First
, the
function arguments are verified
(lines 38-66). After this, we know that the LHS
contains either a ``VariableNode`` or a ``UnaryOpNode``.
.. note:: Several different types of nodes that can appear in the AST,
corresponding to the types of operations that are available in a
``.mod`` file equation. The nodes are:
#. ``NumConstNode``:
e.g.
non-negative integer or double
#. ``NumConstNode``: non-negative integer
s
or double
s
#. ``VariableNode``: endogenous, exogenous, or parameter
#. ``UnaryOpNode``: unary operation on a node, e.g. ``log``, ``abs``,
unary minus, ...
#. ``BinaryOpNode``: binary operation on a node, e.g. arithmetic
operations, ``m
ax
``, comparison operators
operations, ``m
in``, ``max``, ``=
``, comparison operators
, ...
#. ``TrinaryOpNode``: trinary operation on a node, e.g. ``normcdf``,
``normpdf``
#. ``ExternalFunctionNode``: external function node
Assured that the type of the LHS is valid for OLS, the value of ``Y`` is set by
evaluating the LHS of the specified equation. Given that all equations are
represented as ``BinaryOpNodes`` (the two arguments being the LHS, ``arg1``,
and the RHS, ``arg2``), the call to evaluate the LHS of the equation is as
follows:
represented as ``BinaryOpNode``'
s
(
the
two
arguments
being
the
LHS
,
``
arg1
``,
and
the
RHS
,
``
arg2
``),
the
call
to
evaluate
the
LHS
of
the
equation
is
:
..
code
-
block
::
MATLAB
:
linenos
:
inline
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment