Commit Graph

33 Commits (1839529288c3ab9c9c18ffea551b399234a7fbfe)

Author SHA1 Message Date
Stéphane Adjemian (Ryûk) 5375070fa3
Make last input argument optional. 2023-07-08 11:43:19 +02:00
Sébastien Villemot 56ffc87e1c
Remove workaround for gaminv() bug fixed in Octave 4.4
See #161 and http://savannah.gnu.org/bugs/?52569
2023-03-16 17:24:18 +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 2e69ae22ff Make Octave error message more constructive and informative
See the discussion at http://savannah.gnu.org/bugs/?52569
2017-12-02 21:28:25 +01: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) 944ed4b42b Fixed bug.
Forgot to change the name of the routine for the inverse CDF of the
Weibull distribution.
2015-12-14 23:51:50 +01:00
Stéphane Adjemian (Charybdis) a1aa2bcd6e Changed second input of prior_bounds routine.
Do not pass options_ structure but only the required field (prior_trunc).
2015-12-11 18:50:54 +01:00
Stéphane Adjemian (Charybdis) 5fb1b1cc23 Added Weibull prior. 2015-12-04 14:50:44 +01:00
Stéphane Adjemian (Karaba) f48566aeae Fixed prior bounds (according to the doc in master branch).
* Second  and  third  positional  arguments  after the  name  of  the
   estimated  parameter   in  the  estimated_params   block  are  only
   considered in the optimization stage (not in the MCMC)

 * Do not  store bounds  in bayestopt_, because  bounds do  not always
   reflect restrictions implied by prior shapes.

 * prior_bounds routine  returns a structure  (with fields lb  and ub)
   instead of a matrix.
2014-10-20 16:18:54 +02:00
Stéphane Adjemian (Charybdis) ddd95361ba Cosmetic changes. Added isoctave function to replace exist('OCTAVE_VERSION'). 2013-11-04 10:54:45 +01:00
Sébastien Villemot 61485ab809 Fix copyright notices 2013-06-12 17:04:46 +02:00
Johannes Pfeifer c2ce75aa45 Fixed bug in set_prior.m when correlations are estimated. Corrected description in header of prior_bounds.m 2012-09-14 18:00:12 +02:00
Stéphane Adjemian (Scylla) 53a0418e1f Fixed typo. 2011-09-17 14:09:48 +02:00
Stéphane Adjemian (Charybdis) 322adb92a5 Removed global from prior_bounds. Added texinfo header. 2011-09-14 23:41:37 +02:00
Sébastien Villemot e95defd117 Implement workaround for ticket #161 2011-02-04 11:55:54 +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
michel d8c19044d2 4.1: sets natural boundaries when options_.prior_trunc == 0 (to be merged in 4.0)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2585 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-09 18:19:03 +00:00
stepan aa31417a05 Efficiency & Cosmetic changes related to the design of bayestopt_ and
the computation of the prior density.

bayestopt_.p1 is always the prior mean
bayestopt_.p2 is always the prior standard deviation
bayestopt_.p3 is unchanged
bayestopt_.p4 is unchanged
bayestopt_.p5 [new field] is the prior mode
bayestopt_.p6 [new field] is the first hyper-parameter of the prior density
bayestopt_.p7 [new field] is the second hyper-parameter of the prior density
 
These fields are defined in  set_prior and are never changed after. In
the previous version of Dynare,  the hyper parameters of the densities
were  updated at  each iteration  of the  optimization routine  or the
metropolis.

Removed fields pmean and pstdev.

Vectorized the code in priordens.

Fixed the bug mentionned by Gianni. If a (logged) density is evaluated
outside the  prior domain, the  output of priordens if  minus infinity
(instead of a complex number).


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2556 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-06 14:38:37 +00:00
stepan d082bc09b1 v4.1:: Added bounds to the uniform distribution (consistently with
the other prior distributions).


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2423 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-17 17:19:47 +00:00
sebastien b3470f646f v4 prior_bounds.m: small simplification
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1985 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-05 14:12:31 +00:00
sebastien b61c9e6a69 v4 matlab:
* added preprocessor support for inverse gamma of type 2
* added support for this distribution in prior_bounds.m and rndprior.m
* other cosmetic changes


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1983 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-05 10:48:04 +00:00
sebastien a5b3c829d8 v4 matlab: replaced CDF and quantile functions of the beta by GPL'd ones
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1982 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-05 09:52:45 +00:00
sebastien 7c25303258 v4 matlab:
* replaced CDF, PDF, quantile functions of the gamma by a GPL'd one
* replaced quantile function of the chi-square by a GPL'd one


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1981 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-05 09:40:36 +00:00
sebastien 8bef1f0399 v4 matlab:
* replaced dnorm, pnorm and qnorm by GPL alternatives in distributions/
* only add distributions/ to the path if under Matlab without Statistics toolbox


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1979 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-04 13:33:57 +00:00
sebastien db50368418 v4 matlab: fixed some existing copyright headers (and some other minor header issues)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1974 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-01 12:40:33 +00:00
assia 5f9026beb7 header updated
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1552 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-01-10 15:06:35 +00:00
assia b60ffa9ada header updated
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1550 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-01-10 14:53:41 +00:00
michel 26ff335c97 v4 prior_bounds.m, rndprior.m: uses now bayestopt_.p1 and p2
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1042 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-05 13:46:26 +00:00
adjemian 9e266024f8 Added : No constant for estimation of nonlinearly specified models with detrended data, BVAR-DSGE (not ready).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@911 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-09-13 12:39:23 +00:00
michel 9a9872fd33 dynare_v4 from CVS
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@8 ac1d8469-bf42-47a9-8791-bf33cf982152
2005-02-18 19:54:39 +00:00