Merge pull request #325 from JohannesPfeifer/master

Clarification for second moments at second order and to rplot; restriction of endogenous prior to stationary models
reporting: @page: allow for multiple titles, title_format, first args can be provided as strings or cellstr, multiple args as cellstr
reporting: @table: simplify code
reporting: add centering
reporting: @table: only print given date range
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;
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
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;
Merge pull request #327 from rattoma/master

Identification and sensitivity fixes
Fix bug in ML forecasting if observables are not included
Fixing bug introduced in ae82c284dcc11714e39a29e11400ee79af8df02e
Fixing of bugs when estimating model with correlated shocks

Due ot a missing check whether the correlation matrix is updated, the
covariance matrix was built wrong. The variances were updated with the
old correlation matrix. Subsequently, after updating the correlation
matrix, the covariance matrix was put together using the variances based
on the old correlation matrix instead of the new one.
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
-
Add unit test for correlated measurement error

Tests both ML and Bayesian estimation and test calibrated correlation of
those shocks
Clarify treatment of measurement error and correlations in manual