Johannes Pfeifer
5231fc04c1
Remove global variables from prior_posterior_statistics.m and PosteriorIRF.m
2023-09-25 12:08:41 +02:00
Willi Mutschler
a41fbdefbc
estimation: more flexible handling of displayed string in command window
...
Also removed estim_params_ as unused input argutment to CutSample
2023-09-19 13:26:33 +02:00
Willi Mutschler
9a4e022eb7
remove global from GetAllPosteriorDraws
2023-09-19 13:26:33 +02:00
Johannes Pfeifer
8532d6abd7
Cosmetic changes to various estimation routines
2023-07-13 14:40:01 -04:00
Johannes Pfeifer
e6c43c2a29
load_last_mh_history_file: make sure number of blocks and parameters matches loaded files
2023-07-13 14:39:50 -04:00
Johannes Pfeifer
e7ca989b21
prior_posterior_statistics.m: fix logical condition
2022-12-05 14:52:03 +01: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
Johannes Pfeifer
312d053ae1
Use LaTeX labels in figures
2020-06-17 21:48:25 +02:00
Houtan Bastani
3d9fe36ec5
ignore unused return value
...
[skip ci]
2020-02-25 14:50:56 +01:00
Houtan Bastani
54fe1c754c
fix typo in variable name
2020-02-25 14:50:55 +01:00
Sébastien Villemot
87bb0c6997
Fix mistake in previous commit w.r.t. steadystate file
2018-06-27 17:15:13 +02:00
Sébastien Villemot
a1b8bd39b2
Move the location of various generated files on the filesystem
...
- M and MEX files are now under +${MODELNAME}/
- bytecode, C source and JSON now under ${MODELNAME}/model/
2018-06-27 17:03:39 +02:00
Stéphane Adjemian (Scylla)
7be8f10e0e
Use cells of strings instead of char arrays.
2018-01-09 22:30:01 +01:00
Johannes Pfeifer
818a07a4ef
Fix get_posterior_parameters
...
Get rid of setting variables from the base workspace in the function, making the function read-only (as the name suggests)
2017-10-05 09:54:08 +02:00
Houtan Bastani
718ff3d61c
preprocessor: only create *set_auxiliary_variables.m file if there will be something in it. Closes #1384
2017-08-29 14:44:52 +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)
85fe69b265
Cosmetic change (use logicals).
2017-03-20 11:39:22 +01:00
Johannes Pfeifer
9abac8ccdb
Store indicator whether smoother was used with loglinear
...
Required to keep track of whether estimates were logged. Related to #1407
2017-03-20 11:36:10 +01:00
Marco Ratto
2b28ba70d9
Make remote parallel computation compatible with new steadystate and auxiliary variable files
2017-03-18 17:28:44 +01:00
Stéphane Adjemian (Charybdis)
e71ed1bad6
Partially revert f70f45d1271e716498a8761a8e8476f54da3607d. Do not discard repetitions.
2017-03-18 00:06:15 +01:00
Marco Ratto
e180e2f075
1) fixed while for b index
...
2) ensure there are no repeated draws in sub-draws;
3) speed-up subdraw sampling when all retained draws are used.
2017-03-18 00:06:15 +01:00
Marco Ratto
a68e958cf7
As agreed in #1375 , moved treatment of filtered_vars in dynare_estimation_init.m
2017-03-17 15:43:00 +01:00
Marco Ratto
4f93c3df15
proper use of varlist in smoothed variables + sort in alphabetic order to find more easily plots for large numbers of variables.
2017-03-17 15:43:00 +01:00
Marco Ratto
4b2d139c7a
- store oo_.FilteredVariablesKStepAheadVariances only if options_.filter_covariance. this can save a lot of memory for large models
...
- oo_.FilteredVariables must be stored independently to a previous MCMC. evaluate_smoother must in any case provide full info in oo_
- options_.filtered_vars does not always imply filtered variables are computed. options_.nk is more robust.
2017-03-17 15:43:00 +01:00
Johannes Pfeifer
e815c2b4db
Output UpdatedVariables in oo_ without filtered_variables
...
Makes it consistent with manual and closes #1366
2017-01-04 10:57:00 +01:00
Johannes Pfeifer
3ebc982b02
Add state_uncertainty to Bayesian smoother
2016-11-04 09:23:55 +01:00
Johannes Pfeifer
bf725787e6
Only generate forecast with measurement error if observed variables are requested
2016-08-23 17:22:41 +02:00
Johannes Pfeifer
7050cab9c9
Consider measurement error for uncertainty bands in Bayesian estimation
2016-08-23 17:22:41 +02:00
Johannes Pfeifer
3b09ab5424
Save Smoother.Trend and Smoother.Constant after MCMC
2016-06-16 12:05:38 +02:00
Johannes Pfeifer
5d6d1336ef
Enable filter_covariance option in posterior sampling
2016-06-16 12:05:38 +02:00
Johannes Pfeifer
12ee5b7276
Fix copyrights and references to random_walk_metropolis_hastings headers
2016-05-19 17:15:31 +02:00
Houtan Bastani
25121bca4f
fix copyright dates
2016-05-04 16:05:31 +02:00
Johannes Pfeifer
df1c7fce8a
Do not condition handing over of observable index on requesting forecasts
...
Already the smoother uses them due to potential trends being present
2016-03-23 10:35:58 +01:00
Johannes Pfeifer
fb20b464d4
Remove bayestopt_.mean_varobs and use dataset_info instead
...
Closes #255
2016-03-23 10:31:09 +01:00
Johannes Pfeifer
f64b76f0d3
Move saving of data mean to data initialization instead of posterior computations
...
Makes it accessible for other functions that also need it
2016-03-23 10:10:41 +01:00
Johannes Pfeifer
b4941c02d3
Cosmetic Fixes to Metropolis-Hastings routines
...
- Adds comments and headers and fixes typos in previous ones
- Make naming in random_walk_metropolis_hastings_core.m more intuitive
2015-04-25 19:28:16 +02:00
Johannes Pfeifer
d4c0726026
Fix size of filtered variables matrix
...
Fixes crash occurring due to non-conformable matrices
2015-03-12 10:49:33 +01:00
Johannes Pfeifer
45ef721d03
Fix computation of SmoothedMeasurementErrors in Bayesian smoother
2014-11-16 21:08:18 +01:00
Johannes Pfeifer
5062f2ec7b
Fix length of stored and plotted forecasts for Bayesian estimation
...
It stored the initial condition(s) in addition to the forecasts for the specified horizon. In plots, the first point was actually not the forecast, but the initial condition. This contrasted with the behavior or ML and recursive Bayesian forecasts. Now the stored and plotted forecasts always have the first forecast horizon as the first entry/data point
2014-11-16 21:08:17 +01:00
Stéphane Adjemian (Scylla)
11f00d041e
Fixed bug (options_.varobs is a row cell array of strings) + Cosmetic changes.
2014-06-23 12:53:39 +02:00
Stéphane Adjemian (Scylla)
195a3f8fff
Fixed bug (missing transposition).
2014-06-23 12:52:44 +02:00
Stéphane Adjemian (Charybdis)
880bb58aef
Fixed mode_check and prior_posterior_statistics routines (added dataset_info as an input).
2014-06-17 10:19:07 +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)
63986a0ebf
Closes #567 .
2013-12-18 16:44:31 +01:00
Stéphane Adjemian (Scylla)
4a4c06b781
Fixed bug (options_.subdraws does not exist).
2013-12-18 16:44:31 +01:00
Johannes Pfeifer
cd3b5bf3d9
Fix bug in Bayesian estimation where the filter_step_ahead command produced no output
...
- Improves documentation of resulting matrices
- Adds unit test for filter_step_ahead option
2013-12-11 16:43:15 +01:00
Stéphane Adjemian (Scylla)
d52a0d2c89
Changed the logic for mh-history files (keep track of all the previous estimations if load_mh_file is used). Various bug fixes and cosmetic changes.
2013-11-20 18:03:12 +01:00