Conf.Interval of prior

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Conf.Interval of prior

Postby KKLS » Mon Feb 13, 2017 1:03 pm

Hi all,

I am afraid this is too basic to ask. I couldn ot figure it.

In bayesian estimation , If I set a PRIOR for a parameter as

\rho, BETA_PDF, a, b;


Is there a way I can also calculate the confidence interval for this prior ?


I know it might be basic,

Thanks in advance ?
KKLS
 
Posts: 38
Joined: Sat May 21, 2016 11:24 am

Re: Conf.Interval of prior

Postby jpfeifer » Mon Feb 13, 2017 1:19 pm

Confidence intervals and Bayesian econometrics do not square well. Bayesian look at credible sets. What exactly do you mean? The second number in the specified prior is the standard deviation of the prior, which gives you an indiciation of the prior precision.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Conf.Interval of prior

Postby KKLS » Mon Feb 13, 2017 1:56 pm

what is the credibel set (interval ) that this particular prior defines ?
Can I calculate it or is dynare calculating the posterior credible set and that should also be the prior credible set (is it the same ?)

in one of the papers it says :
I am setting this particular prior so that the 95 % credible set is this [ m;n] (some values) ..

many thankx Professor
KKLS
 
Posts: 38
Joined: Sat May 21, 2016 11:24 am

Re: Conf.Interval of prior

Postby jpfeifer » Mon Feb 13, 2017 3:40 pm

At https://github.com/JohannesPfeifer/prior_from_quantiles you can find codes to compute quantiles for various distributions. See Koop's textbook Bayesian Econometrics for a definition of a credible set.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Conf.Interval of prior

Postby KKLS » Mon Feb 13, 2017 5:09 pm

Thanks for the reply Professor.

1. I was trying to say is there a way I can calculatete the credible set given the PRIOR Median and S.E ?

2. To do the reverse :

I just copy pasted the 4 codes files .

- run_prior_parameter_calculation.m
- get_gamma_ab.m
- get_inv_gamma_ab.m
- cmaes.m
and ran the first one (run_prior_parameter_calculation.m) Prof. Pfeifer.

I got such an error :

run_prior_parameter_calculation
Error using feval
Undefined function 'get_gamma_ab' for input arguments of type 'double'.

Error in cmaes (line 691)
fitness.hist(1)=feval(fitfun, xmean, varargin{:});

Error in run_prior_parameter_calculation (line 50)
[~,~,~,~,~,bestever] = cmaes('get_gamma_ab',x_start,0.2,[],target);


Wonder if I did sth wrong ?!!
KKLS
 
Posts: 38
Joined: Sat May 21, 2016 11:24 am

Re: Conf.Interval of prior

Postby jpfeifer » Mon Feb 13, 2017 6:14 pm

1. The easiest way is to use the unstable version together with
Code: Select all
write_latex_prior_table

to generate a LaTeX table or use the command line
Code: Select all
prior table

Both require a previous
Code: Select all
estimated_params
block. See the manual for details.

2. Check whether the mentioned file is really in the current folder.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Conf.Interval of prior

Postby KKLS » Thu Feb 16, 2017 2:43 pm

Many Thanks Prof. Pfeifer,

In ''dynare.pdf'' (of the unstable version) I can find the documentation for the first command
write_latex_prior_table;


but NOT for the second one, i.e.
prior table


Anywhere else I can check for it pls ?
KKLS
 
Posts: 38
Joined: Sat May 21, 2016 11:24 am

Re: Conf.Interval of prior

Postby jpfeifer » Thu Feb 16, 2017 3:03 pm

You should find it at the bottom of Section "9 Dynare misc commands"
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Conf.Interval of prior

Postby KKLS » Tue Feb 21, 2017 3:47 pm

Many Thanks Professor!
KKLS
 
Posts: 38
Joined: Sat May 21, 2016 11:24 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests