how do I compute in Matlab the log likelihood
Show older comments
Hi!
how do I compute in Matlab the log likelihood after a bayesian VAR estimation with n draws?
Thanks!
Fabrice
Answers (1)
Cris LaPierre
on 31 Jan 2021
Edited: Cris LaPierre
on 31 Jan 2021
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
DABIRE Fabrice Anicet Parfait
on 31 Jan 2021
Edited: DABIRE Fabrice Anicet Parfait
on 31 Jan 2021
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!