how do I compute in Matlab the log likelihood

Hi!
how do I compute in Matlab the log likelihood after a bayesian VAR estimation with n draws?
Thanks!
Fabrice

Answers (1)

The equation I used for LL was
LL=(Actual_Output.*log(Fit_values)+(1-Actual_Output).*log(1-Fit_values));
% ref: Mertens, et al. Anesthesiology. 99(2):347-359, August 2003.

1 Comment

Ok thank you.
Actual_Output refers to the data and Fit_values to the estimates?
I'll try it

Sign in to comment.

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!