How to Get the Variance-Covariance Matrix after getting the estimation parameters

Dear Sir,

I would like to know how to get the matrix of variance-covariance of parameter estimates using the Maximum likelihood procedure,

I mean after getting the results of the parameters I wan also to know the Variance-Covariance matrix of these parameters, as an extra output of the model estimation.

I have tried to use the following,


but I don't think its correct!

its so necessary to conduct Andrew's test which needs (f-fe)'V(f-fe), where V: is the varaince-covaraince of the parameter estiamtes


Thank you very much


2 Answers



If you are using the maximum likelihood package, you should have the following code to call the package in your estimation:

{x,f,g, vc, retcode} = maxlik(data,var,&fct,start);

which basically stores the estimated variance-covariance matrix in the global variable named `vc'.

It will also be printed to the output window by the following code:


Hope this helps.



Dear Sir

I would like to thank you very much for answering my question, you saved my day,

Indeed now I can recall the variance-covariance matrix as I want,

yours sincerely


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy