We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 659dc51 commit 88490cfCopy full SHA for 88490cf
src/statsmodel.jl
@@ -196,13 +196,14 @@ end
196
_show_fit_stats(io::IO, model::TableModels) = nothing
197
198
function _show_fit_stats(io::IO, model::TableRegressionModel)
199
- println("R²: ", round(r2(model), sigdigits=4),
200
- "\t Adjusted R²: ", round(adjr2(model), sigdigits=4))
201
try
+ println("R²: ", round(r2(model), sigdigits=4),
+ "\t Adjusted R²: ", round(adjr2(model), sigdigits=4))
202
+
203
fstat = fstatistic(model)
204
println(io, fstat)
205
catch e
- if !(isa(e, MethodError) && e.f == fstatistic)
206
+ if !(isa(e, MethodError) && (e.f == r2 || e.f == adjr2 || e.f == fstatistic))
207
rethrow(e)
208
end
209
0 commit comments