diff --git a/src/negbinfit.jl b/src/negbinfit.jl index 831bbf4e..58c0b1a7 100644 --- a/src/negbinfit.jl +++ b/src/negbinfit.jl @@ -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)