Skip to content

Commit

Permalink
Fix passing tolerance to mle_for_θ (#355)
Browse files Browse the repository at this point in the history
Old PR used `tol`, which no longer exists.
  • Loading branch information
nalimilan authored Jan 17, 2020
1 parent 78ecfd1 commit 0455c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/negbinfit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function negbin(F,
throw(ArgumentError("length of wts must be either $ly or 0 but was $lw"))
end

θ = mle_for_θ(y, μ, wts; maxiter=maxiter, tol=tol)
θ = mle_for_θ(y, μ, wts; maxiter=maxiter, tol=rtol)
d = sqrt(2 * max(1, deviance(regmodel)))
δ = one(θ)
ll = loglikelihood(regmodel)
Expand Down

0 comments on commit 0455c0e

Please sign in to comment.