Commit Graph

72 Commits (e9ffb16ec62b8e6cba2ca1dc84e8c4c65d8a45f0)

Author SHA1 Message Date
Stéphane Adjemian (Ryûk) 735bd66d4d
Remove unused output arguments. 2023-12-18 07:48:27 +01:00
Stéphane Adjemian (Ryûk) 7468a903b7
Remove initialize_dataset routine.
This routine was no longer used in other parts of the code.
2023-12-17 19:00:37 +01:00
Stéphane Adjemian (Guts) 7915b91fdb
Error takes sprintf like arguments directly. 2023-12-16 22:24:26 +01:00
Johannes Pfeifer 879d92fbf8 Move many functions towards consistent naming
Related to #1776
2023-10-24 22:21:15 +02:00
Johannes Pfeifer e70b2fdfcf makedataset.m: account for short filenames 2023-08-29 16:15:34 +02:00
Sébastien Villemot 10af04c6d8
Use Unicode copyright symbol (in UTF-8 encoding) in all source files
It is now supported by the MATLAB editor (as of R2022a).

The old ASCII notation is left in some files that we copy as-is from other
sources (e.g. in the contrib/ and m4/ subdirectories).

The particles submodule is not updated at this point, because it is in an
inconsistent state.

[skip ci]
2022-04-13 14:54:25 +02:00
Sébastien Villemot 766fff88f6
Use secure URL for link to GNU licenses 2021-06-09 17:35:05 +02:00
Marco Ratto 915502ce13 copyright year and indentation 2021-02-13 11:29:40 +01:00
Marco Ratto d56bba724c autocov is initialized NaN with the original order and then only loop up to updted order compatible with sample size. 2021-02-13 11:27:18 +01:00
Marco Ratto ebec3ede8a allow negative lag (i.e. a lead) 2021-02-12 18:50:55 +01:00
Marco Ratto 1519e4673a trap case when order is too big wrt sample size 2021-02-12 18:49:33 +01:00
Sébastien Villemot 49dc997073
Global reindentation of MATLAB code (excluding submodules)
Also convert to Unix end-of-lines, and remove trailing whitespaces.
2019-12-20 16:30:27 +01:00
Marco Ratto aeceafbec2 fixed error in formula of annualized steady state
(cherry picked from commit 696800b277dadd164244771ccfce8e39f1146472)
2019-01-17 10:57:39 +01:00
Stéphane Adjemian (Charybdis) 4adebd4419 Fixed copyright header. 2018-02-01 22:51:23 +01:00
Marco Ratto a7bc6414f5 fixed bug to logical if condition 2018-02-01 19:14:13 +01:00
Marco Ratto 13a30a0a4e add a new case for ratios between endogenous variables, like trade balance to GDP. 2018-01-27 10:37:31 +01:00
Johannes Pfeifer b4204f8b9e Make sure that mean and covariance of data are correctly computed with only one observation
Need to always compute mean along first dimension

(cherry picked from commit 2d371b1997f5fa07fcbbf47e5923d7817d07c6b9)
2018-01-12 09:48:14 +01:00
Marco Ratto 45166aba81 Bug fix for undefined yr variable 2018-01-10 13:14:27 +01:00
Johannes Pfeifer e857df0c93 Correct header of makedataset.m 2017-10-04 10:40:42 +02:00
Stéphane Adjemian (Charybdis) 1bf81c9f5a Fixed copyright notices. 2017-05-18 18:36:38 +02:00
Stéphane Adjemian (Charybdis) 5417b27ac7 Fixed indentation of matlab files. 2017-05-16 15:10:20 +02:00
Stéphane Adjemian (Charybdis) a53636e24e Fixed copyright notices. 2017-05-16 14:11:15 +02:00
Stéphane Adjemian (Charybdis) 88e1701289 Removed useless commas and semicolons. 2017-05-16 13:24:46 +02:00
Stéphane Adjemian (Charybdis) 3816272414 Make load_m_file_data_legacy.m work with row vectors.
Added unit-tests.
2017-05-10 17:39:11 +02:00
Johannes Pfeifer b52c095a6b Add legacy function for loading mat-files with old interface
Follows approach of #758 and closes #1364
2017-04-29 18:25:39 +02:00
Marco Ratto 19cc38b39e allow to start from quarterly growth rate variables 2017-03-17 12:41:59 +01:00
Marco Ratto d7723877cf bug fixes for annualized nominal variables 2017-03-17 12:41:59 +01:00
Marco Ratto a8107e154a added new annual aggregation types, for consistent quantity/price aggregations, if required. 2017-03-17 12:41:59 +01:00
Marco Ratto e7442bcf78 added geometric average.
Set neutral type names, replacing stock/flow/deflator.
2017-03-17 12:41:59 +01:00
Marco Ratto bfe6d04bf2 - Added the possibility to compute annualized variables and associated decompositions out of quarterly ones, without blowing up variable definitions
- Fixed call to plot realtime conditional shock decomposition
2017-03-17 12:41:59 +01:00
Johannes Pfeifer 5d8da65e6d Add check for unique data entries in dataset
Leads to cryptic crashes if not filtered out
2015-06-08 11:16:40 +02:00
Stéphane Adjemian (Karaba) 0b99367648 Fixed bug in makedataset (do not use 'exist' function, cannot make the difference between xls and xlsx files). 2015-06-05 16:35:05 +02:00
Marco Ratto e3ac15458a Properly deal with dseries in identification. This fixes #781 2014-11-18 11:34:49 +01:00
Stéphane Adjemian (Telemachus) 8fedac4d5e Replaced calls to dyn_assert by calls to dassert.
This routine is used to compare objects i -n unit tests.
2014-11-08 09:28:53 +01:00
Stéphane Adjemian (Karaba) 63d3157267 Do not force the user to provide a clean m data file when using the legacy data interface.
Note that  all the variables  listed in varobs  need to have  the same
number of observations.
2014-10-20 17:28:35 +02:00
Johannes Pfeifer 96df3b0043 Cosmetic changes to error messages
(cherry picked from commit ffa424d9d88dcd534272b154a3d9848df861914b)
2014-10-13 13:05:46 +02:00
Johannes Pfeifer bf69cee91f Set missing argument in makedataset.m that leads to crashes with GSA
Fixes the recent problem with unit tests
2014-07-23 12:05:45 +02:00
Stéphane Adjemian (Scylla) afb5be2067 Set options_.nobs if the new data interface is used. 2014-07-17 22:05:08 +02:00
Stéphane Adjemian (Scylla) 5b08223820 Changed default value of initial_period (NaN). 2014-07-17 22:05:08 +02:00
Stéphane Adjemian (Charybdis) 94b87beb10 Fixed bug (missing code for handling prefilter=1). 2014-07-09 15:34:53 +02:00
Stéphane Adjemian (Scylla) a29a4d0842 Removed unitary test (needs to be fixed). 2014-06-26 16:09:50 +02:00
Stéphane Adjemian (Scylla) 0b82874268 Adapted madataset routine for Gsa. 2014-06-25 11:34:39 +02:00
Stéphane Adjemian (Scylla) b11f6e2505 Adapted code for dsge-var models. 2014-06-23 10:55:08 +02:00
Stéphane Adjemian (Scylla) f5c2027e18 Do not impose the equality between the initial period as defined by the set_time command and the date of the initial observation defined in the datafile or dseries object. 2014-06-19 18:02:31 +02:00
Stéphane Adjemian (Charybdis) 4f02e58010 Added the possibility to pass a dseries object to the data command (the user can manipulate the data in the mod file, using dseries class methods, and use them for estimation without writing the data on disk). 2014-06-17 16:03:30 +02:00
Stéphane Adjemian (Charybdis) efcf6bd9c0 Use dseries object in the estimation routines. 2014-06-16 17:41:59 +02:00
Stéphane Adjemian (Charybdis) 45d7f15c94 Cosmetic. Deleted trailing white spaces. 2014-05-23 18:16:11 +02:00
Stéphane Adjemian (Charybdis) 78e5fafb07 Updated header. 2014-05-23 18:14:46 +02:00
Stéphane Adjemian (Charybdis) bc7f834241 Added missing flag for unitary test. 2014-05-23 18:14:26 +02:00
Stéphane Adjemian (Charybdis) 56de3979c2 Removed compute_corr routine. 2014-05-23 18:12:43 +02:00