File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ const TableModels = Union{TableStatisticalModel, TableRegressionModel}
123123@delegate TableRegressionModel. model [StatsBase. modelmatrix,
124124 StatsBase. residuals, StatsBase. response,
125125 StatsBase. predict, StatsBase. predict!,
126- StatsBase. cooksdistance]
126+ StatsBase. cooksdistance, fstatistic ]
127127StatsBase. predict (m:: TableRegressionModel , new_x:: AbstractMatrix ; kwargs... ) =
128128 predict (m. model, new_x; kwargs... )
129129# Need to define these manually because of ambiguity using @delegate
@@ -184,6 +184,14 @@ _show_fit_stats(io::IO, model::TableModels) = nothing
184184
185185function _show_fit_stats (io:: IO , model:: TableRegressionModel )
186186 println (" R²: " , round (r2 (model), sigdigits= 4 ))
187+ try
188+ fstat = fstatistic (model)
189+ println (io, fstat)
190+ catch e
191+ if ! (isa (e, MethodError) && e. f == fstatistic)
192+ rethrow (e)
193+ end
194+ end
187195end
188196
189197# show function that delegates to coeftable
You can’t perform that action at this time.
0 commit comments