File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -190,9 +190,17 @@ function Base.show(io::IO, model::TableModels)
190
190
println (io)
191
191
println (io," Coefficients:" )
192
192
println (io, ct)
193
+ println (io)
194
+ println (" R²: " , round (r2 (model), sigdigits= 4 ))
193
195
if model isa TableRegressionModel
194
- println (io)
195
- 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
+ end
196
204
end
197
205
catch e
198
206
if isa (e, ErrorException) && occursin (" coeftable is not defined" , e. msg)
@@ -202,3 +210,5 @@ function Base.show(io::IO, model::TableModels)
202
210
end
203
211
end
204
212
end
213
+
214
+ fstatistic (m:: TableRegressionModel ) = fstatistic (m. model)
You can’t perform that action at this time.
0 commit comments