We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 950ba92 commit b953553Copy full SHA for b953553
src/statsmodel.jl
@@ -190,9 +190,17 @@ function Base.show(io::IO, model::TableModels)
190
println(io)
191
println(io,"Coefficients:")
192
println(io, ct)
193
+ println(io)
194
+ println("R²: ", round(r2(model), sigdigits=4))
195
if model isa TableRegressionModel
- println(io)
- println("R²: ", round(r2(model), sigdigits=4))
196
+ try
197
+ fstat = fstatistic(model)
198
+ println(io, fstat)
199
+ catch e
200
+ if !(isa(e, MethodError) && e.f == fstatistic)
201
+ rethrow(e)
202
+ end
203
204
end
205
catch e
206
if isa(e, ErrorException) && occursin("coeftable is not defined", e.msg)
@@ -202,3 +210,5 @@ function Base.show(io::IO, model::TableModels)
210
211
212
213
+
214
+fstatistic(m::TableRegressionModel) = fstatistic(m.model)
0 commit comments