How to get asymptotic covariance matrix

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.

How to get asymptotic covariance matrix

Postby jkh » Wed Sep 07, 2016 10:27 am

Hi,

I want to get an asymptotic covariance at mode.

I know that dynare stores the hessian(hh) in a file called MODEL_FILENAME_mode.mat.

To get an asymptotic covariance at mode, which way should I do afteropening mode file.mat?


1. inv(hh)

2. inv(-hh)

3. hh

4. what else


Thanks in advance.
jkh
 
Posts: 20
Joined: Thu Jun 25, 2015 10:15 am

Re: How to get asymptotic covariance matrix

Postby jpfeifer » Wed Sep 07, 2016 5:01 pm

Dynare uses
Code: Select all
        invhess = inv(hh);
        stdh = sqrt(diag(invhess));
        oo_.posterior.optimization.Variance = invhess;

The minus is not necessary, because the Hessian was computed on minus the log-likelihood function.
------------
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


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 6 guests