Skip to content

Commit 408dfcd

Browse files
Minor fix in CoefTable information (#2036)
1 parent 59e5cce commit 408dfcd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/modes/OptimInterface.jl

+5-2
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ function StatsBase.coeftable(m::ModeResult; level::Real=0.95)
6363
q = quantile(Normal(), (1 + level) / 2)
6464
ci_low = estimates .- q .* stderrors
6565
ci_high = estimates .+ q .* stderrors
66-
66+
67+
level_ = 100*level
68+
level_percentage = isinteger(level_) ? Int(level_) : level_
69+
6770
StatsBase.CoefTable(
6871
[estimates, stderrors, zscore, p, ci_low, ci_high],
69-
["Coef.", "Std. Error", "z", "Pr(>|z|)", "Lower 95%", "Upper 95%"],
72+
["Coef.", "Std. Error", "z", "Pr(>|z|)", "Lower $(level_percentage)%", "Upper $(level_percentage)%"],
7073
terms)
7174
end
7275

0 commit comments

Comments
 (0)