Commit 037eca4b authored by Marco Ratto's avatar Marco Ratto
Browse files

Fixed bug with ML estimation with analytic derivatives

parent e0018f8b
...@@ -75,6 +75,8 @@ if nargin > 6 && initialization == 1 ...@@ -75,6 +75,8 @@ if nargin > 6 && initialization == 1
end end
logged_prior_density = 0.0; logged_prior_density = 0.0;
dlprior = 0.0;
d2lprior = 0.0;
if tt1 if tt1
logged_prior_density = logged_prior_density + sum(lpdfgbeta(x(id1),p6(id1),p7(id1),p3(id1),p4(id1))) ; logged_prior_density = logged_prior_density + sum(lpdfgbeta(x(id1),p6(id1),p7(id1),p3(id1),p4(id1))) ;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment