Commit Graph

11964 Commits (4ac5ebbefccb217017f910243e06677e78ba0b0c)

Author SHA1 Message Date
Houtan Bastani 4ac5ebbefc
add var AR test 2019-03-15 14:22:50 +01:00
Houtan Bastani dccabecee7
fix trend-component tests 2019-03-15 13:29:15 +01:00
Stéphane Adjemian (Charybdis) d3db092c81
Added a cherry-pick routine.
Extracts equations from a mod file and produce .inc files (equations, lists of
parameters, endogenous variables and exogenous variables) that can be included
in a mod file that will be used to simulate the model.

If an innovation has a tag `(used='estimationonly')` it will be excluded from
the generated files (ie list of shocks and equations).
2019-03-14 11:04:10 +01:00
Stéphane Adjemian (Charybdis) 52eed33c42
Fixed growth neutrality correction in presence of exogenous variables.
Also fixes growth neutrality correction in models with non optimizing
agents (correction was not taking into account the value of the share of non
optimizing agents).
2019-03-11 11:54:53 +01:00
Stéphane Adjemian (Charybdis) 6997e0a4a6
Added the possibility to have exogenous variables in the optimal part of PAC.
Works with iterative ols and nls.
2019-03-08 14:34:41 +01:00
Houtan Bastani ba416f12ad
makefile: use tabs instead of spaces 2019-03-08 11:16:26 +01:00
Houtan Bastani d7246b3489
ols-style routines: allow user to specify parameters to be estimated 2019-03-08 11:15:33 +01:00
Stéphane Adjemian (Charybdis) 33e43a55b2
Cosmetic change. Print expression on more than one line (one line per additive term). 2019-03-08 09:36:56 +01:00
Houtan Bastani 183081f94b
pooled_fgls: remove useless part of code 2019-03-07 18:06:53 +01:00
Houtan Bastani 6b4b2bb8b3
fix path to test 2019-03-07 18:06:53 +01:00
Stéphane Adjemian (Charybdis) d4814c6b92
Removed pointer to missing file in Makefile.am. 2019-03-07 17:33:40 +01:00
Stéphane Adjemian (Charybdis) 03e60b6439
Cosmetic change. 2019-03-07 17:09:56 +01:00
Stéphane Adjemian (Charybdis) c8393a6a45
Updated list of non versioned files in under tests subfolder. 2019-03-07 17:09:36 +01:00
Stéphane Adjemian (Charybdis) 46d0d7daa7
Updated preprocessor. 2019-03-07 17:08:43 +01:00
Stéphane Adjemian (Charybdis) dac08da6a4
Added the possibility to tag a varexo variable as an observed variable. 2019-03-07 15:31:34 +01:00
Stéphane Adjemian (Charybdis) 1471b3bfce
Changegd estimator for the exogenous part of pac.estimation.iterative_ols routine. 2019-03-07 12:37:06 +01:00
Stéphane Adjemian (Charybdis) 4d69674874
Partially reverts 1190cab. 2019-03-07 12:31:23 +01:00
Houtan Bastani 1190caba61
pac.estimate.nls: clean up code: remove unused variables, unused output arguments, no need for otherwise in switch 2019-03-07 11:59:59 +01:00
Houtan Bastani b844bc53a0
pac: fix bugs in output of ec component 2019-03-07 11:44:40 +01:00
Houtan Bastani 92b1c25b9f
fix typo 2019-03-07 10:47:02 +01:00
Houtan Bastani f3a10d0238
add test for estimating certain parameters in sur 2019-03-07 10:47:02 +01:00
Stéphane Adjemian (Charybdis) 40918f4316
Fixed condition in integration tests for ec.istarget. 2019-03-07 09:39:14 +01:00
Stéphane Adjemian (Charybdis) 9eb64a0b64
Updated preprocessor submodule.
Fixes exogenous variables in PAC equation without non optimizing behaviour.
2019-03-06 15:39:00 +01:00
Houtan Bastani c0319a9bff
fix bug in printing of error message: ds is not available (or needed) in print function 2019-03-05 14:57:51 +01:00
Stéphane Adjemian (Charybdis) 4798c07ced
Avoid infinite loop in pac.estimation.iterative_ols(). 2019-03-05 07:21:08 +01:00
Houtan Bastani 59ab4f4b34
update tests 2019-03-04 15:08:19 +01:00
Houtan Bastani 01c5d2a90c
add model_name option to ols-style routines 2019-03-04 11:15:51 +01:00
Houtan Bastani e4888c0775
pooled_ols: use varargout instead of oo_ to pass values back to pooled_fgls 2019-03-04 11:15:51 +01:00
Houtan Bastani f443037ed3
fix argument checking in pooled_ols 2019-03-04 11:15:51 +01:00
Stéphane Adjemian (Charybdis) cdadab34b4
Streamlined code in print_expectations and allow diff and unary op in growth option of pac_model. 2019-03-02 22:36:13 +01:00
Stéphane Adjemian (Charybdis) d00b57541e
Allow exogenous variables in pac.estimation.iterative_ols routine.
The parameters associated to these additional variables can be estimated or calibrated.
2019-03-01 23:32:47 +01:00
Stéphane Adjemian (Charybdis) 21e6260011
Cosmetic, strmatch() -> find(strcmp()).
[skip ci]

(cherry picked from commit 580939d70b)
2019-02-28 21:24:17 +01:00
Stéphane Adjemian (Charybdis) fd98e83d78
Adapted integration tests for 8e60ded. 2019-02-28 16:23:04 +01:00
Stéphane Adjemian (Charybdis) e75ca94a48
Fixed PAC with growth option equal to lagged endogenous or exogenous variable.
Still not working with first difference or lagged first difference.
2019-02-28 14:58:17 +01:00
Stéphane Adjemian (Charybdis) 6b6a9b793c
Updated header.
We recently added leads on first differences as an auxiliary variable type.

[skip ci]

(cherry picked from commit e1f1fd2de3)
2019-02-28 10:24:53 +01:00
Stéphane Adjemian (Charybdis) 5fbc04ada2
Return 0 if the input is not the name of an endogenous variable.
Also removed the call to deprecated strmatch.

[skip ci]

(cherry picked from commit 3400e13c06)
2019-02-28 10:17:43 +01:00
Stéphane Adjemian (Charybdis) 4093a99f40
Efficiency change.
It is not possible to pre-allocate a cell array here, but

Array = {};
for i=1:10
    Array(i) = {'a'}
end

is faster by a factor 10 than

Array = {};
for i=1:10
    Array = [Array, 'a']
end
2019-02-28 09:41:35 +01:00
Stéphane Adjemian (Charybdis) 3aa977600c
Allow arbitrary unary operator, not only log(). 2019-02-28 09:30:03 +01:00
Stéphane Adjemian (Charybdis) 1775869bbd
Avoid infinite loop. 2019-02-28 09:24:12 +01:00
Stéphane Adjemian (Charybdis) 8e60ded1bd
Write the growth correction term in a separate file. 2019-02-27 22:26:07 +01:00
Stéphane Adjemian (Charybdis) f07b1e8028
Account for exogenous variables in PAC's RoT part.
Fixes the iterative_ols estimation of PAC equation when the Rule of Thumbs (non
optimizing) part of the equations contains endogenous and/or exogenous variables.
2019-02-27 15:53:25 +01:00
Stéphane Adjemian (Charybdis) 6500099f4e
Removed debugging display. 2019-02-27 15:08:49 +01:00
Stéphane Adjemian (Charybdis) 379431b05b
Added integration test.
Check that the content of pac.[pacmodel].equations.[eqtag].non_optimizing_behaviour.vars is correct.
2019-02-27 14:22:59 +01:00
Houtan Bastani 075a6b7db5
sur, surgibbs: following change in `067fc9cc5a5b01e9a04209850f08ecbf3bd0a2b1` pidxs no longer needed as output from sur.m 2019-02-26 17:01:33 +01:00
Houtan Bastani 067fc9cc5a
surgibbs: fix bug in assigning back to M_.params 2019-02-26 16:56:20 +01:00
Houtan Bastani 043ecfc3b2
Revert "surgibbs: fix bug in param values output"
This reverts commit d6c5618a74.
2019-02-26 16:54:26 +01:00
Houtan Bastani d6c5618a74
surgibbs: fix bug in param values output 2019-02-26 15:42:51 +01:00
Houtan Bastani 0cd18c3841
create include files for estimated parameters 2019-02-26 15:42:51 +01:00
Houtan Bastani 0c8867cbad
fix typo 2019-02-26 12:52:38 +01:00
Stéphane Adjemian (Charybdis) 445f88df55
Fixed PAC/MCE with non optimizing behaviour.
Alse added integration tests for PAC/MCE.
2019-02-25 23:07:57 +01:00