Skip to content

Commit 769a9f7

Browse files
Improve estimation prints (#93)
1 parent a80f480 commit 769a9f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/MLE.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ function fit(gas::Model{D, T}, y::Vector{T};
117117
func = TwiceDifferentiable(psi_tilde -> log_lik(psi_tilde, y, gas_fit, initial_params, unknowns, n), opt_method.initial_points[i])
118118
opt_result = optimize(func, opt_method, verbose, i)
119119
update_aux_estimation!(aux_est, func, opt_result)
120-
println("initial point $i of $n_initial_points - Log-likelihood: $(-opt_result.minimum)")
120+
println("Round $i of $n_initial_points - Log-likelihood: $(-opt_result.minimum)")
121121
catch err
122122
println(err)
123-
println("initial point $i diverged")
123+
println("Round $i diverged")
124124
end
125125
end
126126

@@ -136,7 +136,7 @@ function fit(gas::Model{D, T}, y::Vector{T};
136136
bic = BIC(n, n_unknowns, best_llk)
137137

138138
if verbose >= 1
139-
println("\nBest initial_point optimization result:")
139+
println("\nBest optimization result:")
140140
println(aux_est.opt_result[best_seed])
141141
end
142142

src/link_functions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jacobian_link(::Type{LogLink}, param::T, lower_bound::T) where T = 1/(param - lo
4949
"""
5050
LogitLink <: Link
5151
52-
Define the map ``\\tilde{f} = -\\ln(\\frac{b - a}{f + a} - 1)`` where ``f \\in [a, b], a, b \\in \\mathbb{R}`` and ``\\tilde{f} \\in \\mathbb{R}``
52+
Define the map ``\\tilde{f} = \\ln(\\frac{f - a}{b - f})`` where ``f \\in [a, b], a, b \\in \\mathbb{R}`` and ``\\tilde{f} \\in \\mathbb{R}``
5353
"""
5454
struct LogitLink <: Link end
5555

0 commit comments

Comments
 (0)