Skip to content

Commit

Permalink
Add adjusted R^2
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrejSlamecka committed Apr 26, 2022
1 parent 13c5d9b commit 659dc51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/statsmodel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ end
_show_fit_stats(io::IO, model::TableModels) = nothing

function _show_fit_stats(io::IO, model::TableRegressionModel)
println("R²: ", round(r2(model), sigdigits=4))
println("R²: ", round(r2(model), sigdigits=4),
"\t Adjusted R²: ", round(adjr2(model), sigdigits=4))
try
fstat = fstatistic(model)
println(io, fstat)
Expand Down

0 comments on commit 659dc51

Please sign in to comment.