Commit Graph

61 Commits (2f13d6610d6842adc4a4b448eb45ebd4223967e6)

Author SHA1 Message Date
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
Stéphane Adjemian (Charybdis) 2ee4d62570 Added routine to compute centered marginal moments of order n (possibly with missing observations). 2014-05-23 18:10:59 +02:00
Stéphane Adjemian (Charybdis) b2c28530ea Renamed compute_stdv as nanvariance (computes variances instead of standard deviations). 2014-05-23 18:06:32 +02:00
Stéphane Adjemian (Charybdis) bdd7b8aacc Rewrote compute_acov and renamed it as nanautocovariance. 2014-05-23 15:07:46 +02:00
Stéphane Adjemian (Charybdis) dd223e41f5 Rewrote compute_cova and renamed it nancovariance. Added a new routine to test if an array contain at least one NaN. 2014-05-22 19:27:14 +02:00
Stéphane Adjemian (Scylla) 66d08ac3bf Merge branch 'master' into use-dynSeries
Conflicts:
	matlab/dynare_estimation_init.m
	matlab/global_initialization.m
	matlab/prior_posterior_statistics.m
	matlab/read_variables.m
	matlab/set_prior.m
	matlab/utilities/dataset/initialize_dataset.m
	preprocessor/ComputingTasks.cc
2014-04-30 10:10:30 +02:00
Stéphane Adjemian (Scylla) f1e4ca2f48 Test if the data are positive before applying the log. 2014-01-30 17:44:47 +01:00
Johannes Pfeifer 530ad8e2d8 Fix bug when datafile was changed and nobs resulting from old dataset was bigger than is possible in new dataset 2013-11-15 16:47:25 +01:00
Stéphane Adjemian (Charybdis) 55e3bcc5f8 Removed general transformation of the raw data, only consider the log function. 2013-09-11 11:26:35 +02:00
Stéphane Adjemian (Charybdis) 907e087ea9 Consider options_.varobs as a cell of strings. 2013-09-07 16:39:04 +02:00
Stéphane Adjemian (Charybdis) 4052d4ccaf Cosmetic changes. Use skipline() instead of disp(' '). 2013-07-10 17:12:34 +02:00
Stéphane Adjemian (Charybdis) 33053a7303 Fixed bug. 2013-06-20 18:04:38 +02:00