More explicit error message when posterior mode file is outdated
(cherry picked from commit 5c8efaae6c38a727baca20a862d456407a5f0eeb)
oo_.PosteriorTheoreticalMoments.correlation contains autocorrelations
(cherry picked from commit 17acd4154c192193a1c84e27d7bb31b47e7215f8)
Bugfix in dyn_saveas

Fixed a bug for the non-Octave version where only the last active figure
was printed instead of the figure with the actual handle. Octave
eps-version still needs to be taken care of.
(cherry picked from commit cd26c3cebd82140c8354cd6596d19d9459171fad)
Fix dyn_saveas for Octave
(cherry picked from commit c58aebd2ef1af574ad14e6186375b8c729ed0e7f)
Bugfix in rplot

Make other plot types take into account that variables are in rows, not
columns
(cherry picked from commit e76828bb9cca0b4888b9f2d0ad3af568e4eeda92)
Add warning for variance decomposition at order=2

At order=2, the variance decomposition is still based on order=1. This
commit introduces a warning. See issue #278
(https://github.com/DynareTeam/dynare/issues/278). This information that
the variance decomposition is only triggered at periods=0 has been added
to the manual.
(cherry picked from commit 98ec0095dfe22acf3896c3dac74c4a71219fc019)
Bugfix in rplot + typo correction
(cherry picked from commit 1df8bf15c2ea3fbe145f5dc8dfe6625be51e0a72)
Manual cherry-pick from
Commit:22e0b9cc3d70f67ffe125a5d0a16805c539c83cc

1) fixed bugs when no estimated parameters are declared;
2) fixed bug for the ML base (bayestopt_.pshape==0);
3) make more transparent the error when the model does not solve at prior_mode or  prior_mean;
4) when prior_mean or prior_mode fail, try 50 times with randomly generated samples from the prior before interrupting identification.

This commit fixes issues related to fabiac forum request and subsequent discussion with Johannes.

http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=4402&p=10771&hilit=identification&sid=64c6f9d987a2641e79dd5722137eb483#p10771
1) trap the case where the model does not solve for any parameter values in the MC sample;
2) fixed initialization of alpha2_stab;
(cherry picked from commit d6993cecc4d5afc90614e817156a18b2d254ffab)
Manual cherry pick from
Commit:b0ce2dacd918d83b2b8ad6f2188a14660e802976

1) better trace all cases when the model does not solve, classifying cases according to info output of dynare_resolve;
2) trap the case of memory allocation limit for too large model undergoing to reduced form mapping
Manual cherry pick from
Commit:92e4e73765fa79c5dffd193c56feec7017ff34cd

Trap the cases where the state space matrices are not stored for memory allocation issues
[to be fixed later by breaking the big matrix stored ...]
bug fix in call to priordens;
(cherry picked from commit 597d30d0bfcacecf45a267f4d3a9c0bfa3786793)
Merge pull request #328 from rattoma/4.3

Identification and sensitivity fixes
Clarify theoretical second moments for order=2

Eliminates warning message introduced in
4c8f3a89cc91ef301cf2a20d68d7dfb0cb983254
Adds hint to approximation in table title and adds the information with
a reference to Kim/Kim/Schaumburg/Sims (2008) to manual.
closes #278
(cherry picked from commit 1883eb092bb3b962e5161f79220c78d420fa4a41)
Provisions for MATLAB 8.1 (R2013a)
(cherry picked from commit 3bbdbf83870af1fc4493b897f5413be0d3cdbc4b)
Add Frédéric and Johannes to userguide; remove useless spam obsfuscating
(cherry picked from commit db2999d84ed99a1736c3d5f97bd6b12ae97a6146)
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
-
(cherry picked from commit 7518072e7762c54e39d75c2f6e1e6261f416efa4)
Add unit test for correlated measurement error

Tests both ML and Bayesian estimation and test calibrated correlation of
those shocks
(cherry picked from commit 0311c4add48a81af7b01ca91dbdc9909669b1688)
Clarify treatment of measurement error and correlations in manual
(cherry picked from commit 34fb9f1c62c63e7e4ab41656a7690167449e596f)
Fix bug in ML forecasting if observables are not included
(cherry picked from commit 156397ec319ac9f907b775020dd5001b4b29830a)