Commit Graph

30 Commits (master)

Author SHA1 Message Date
Johannes Pfeifer 2e73856f5a
GSA and identification: move files to namespace 2023-12-14 18:29:01 +01:00
Johannes Pfeifer 0561200f1c Implement even more naming consistency
Mostly removes M for M_
2023-10-25 17:29:55 +02:00
Johannes Pfeifer 5a3ae27b13
set_all_parameters.m: only operate on covariance matrices if necessary 2023-10-11 09:26:04 -04: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
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
Johannes Pfeifer 96098a17d2 Cosmetic fix to set_all_parameters.m 2016-05-30 13:31:22 +02:00
Johannes Pfeifer 3ea44d47cf Port changes from #511 to gsa/set_shocks_param.m
Closes #662
2015-06-05 16:56:32 +02:00
Stéphane Adjemian (Scylla) 8429321547 Merge branch 'master' into remove-dynDate-class 2013-11-06 12:43:06 +01:00
Johannes Pfeifer fddee8e1db Bugfixes for correlated shocks
Uses preprocessing capabilities introduced in 07137e804b

Fixes #392 and #494. Also fixes a bug in the checking for positive definiteness of covariance matrices in likelihood functions

Allows for calibrated covariances by reading them out and setting them after covariance matrix has been reconstructed from correlation and variances.

Adds unit test
2013-11-05 15:55:29 +01:00
Stéphane Adjemian (Charybdis) d86d713cf4 Renamed dynSeries class as dseries. 2013-10-18 17:38:43 +02:00
Sébastien Villemot 61485ab809 Fix copyright notices 2013-06-12 17:04:46 +02:00
Johannes Pfeifer 7518072e77 Fix several bugs related to estimated measurement errors
1. The first call to set_prior overwrote the first column of
estim_params_.var_endo storing the position of the variable with
measurement error in M_.endo_names with the position in
options_.var_obs. All subsequent calls to set_prior then lead to
crashes.
2. At the same time, for correlations of ME, the first column of
estim_params_.corrn still stored the position of the variable with
measurement error in M_.endo_names. But subsequent calls to it were done
as if it stored the position in options_.var_obs

I introduced two new variables in estim_params_ storing the respective
positions in var_obs so as to not necessitate changes in the
preprocessors.

3. For cases of calibrated measurement error correlations, the
covariance matrix was not updated.

4. Fixing a lot of smaller bugs related to measurement errors, including
some copy and paste errors
-
2013-03-21 20:51:12 +01:00
Johannes Pfeifer ebc7d6f67a Add comment why use of old correlation matrix from previous draw is correct and revert change
Due to only using the diagonal of Sigma_e and the correlation matrix having ones on the diagonal, the diagonal entries of the covariance matrix are correctly built from recent draw. Later, when using the new draw for the correlations, only the correctly updated diagonal entries of Sigma_e are used.
2013-03-21 20:49:33 +01:00
Sébastien Villemot 1f9cea669a Update copyright notices 2012-06-08 18:22:34 +02:00
Stéphane Adjemian (Charybdis) 0da05ae29d Removed globals from set_all_parameters routine. 2012-06-07 15:13:39 +02:00
Stéphane Adjemian (Charybdis) e12748329b Fixed bug reported by Johannes (http://www.dynare.org/pipermail/dev/2012-May/002015.html), see also trac#257. 2012-06-06 18:25:08 +02:00
Sébastien Villemot 02652f6eb8 Updated copyright notices 2011-02-04 17:27:33 +01:00
sebastien 502e3e1df8 Beautified MATLAB code (Unix newline convention + Emacs indentation), except: AIM, swz, particle
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3250 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 17:17:34 +00:00
sebastien 9f5beff89e v4 matlab: fixed remaining copyright headers (those files which are in the CR+LF endline convention)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1975 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-01 13:08:13 +00:00
michel 5572943251 v4 added missing ; in set_all_parameters.m
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1709 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-17 10:33:25 +00:00
michel c7dc3ca3bc v4 bug corrections in dealing with measurement errors
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1708 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-16 17:02:39 +00:00
michel 92f19dd476 v4: corrected bug for correlated coefficients
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1705 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-14 20:10:41 +00:00
assia c58fd57c39 header updated
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1560 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-01-10 15:48:43 +00:00
michel 1f3036649e v4 set_all_parameters: added H=M_.H;
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@680 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-03-13 21:18:06 +00:00
michel ce34a58ab6 v4 set_all_parameters: bug corrections. Now M_.H should be initialized by the parser [Marco+Michel]
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@675 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-03-13 09:35:07 +00:00
michel f26902fc43 v4 se_all_parameters.m: bug correction
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@670 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-03-11 16:05:19 +00:00
michel d44de20724 v4 set_all_parameters: corrected bugs, M_.H needs to be set in dynare_estimation.m
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@664 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-03-08 21:10:00 +00:00
michel 00fac4544c v4 updating computing statistics from Metropolis (not finihesd)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@655 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-03-05 21:01:27 +00:00