Closed itsdebartha closed 1 year ago
The printing of the table of coefficients is actually not controlled by GLM but rather by the show
method for CoefTable
in StatsBase. It uses a couple of internal types, PValue
and TestStat
, that control the fixed-size printing of p-values and test statistics, respectively. The remaining numbers are printed in a way modeled after how Base prints arrays: using vertical decimal alignment with "compact" printing of numbers (fewer decimal digits).
@itsdebartha can you make an issue for this in StatsBase.jl?
@itsdebartha can you make an issue for this in StatsBase.jl?
Sure
I noticed that the outputs of GLM might be a bit confusing, mainly due to the fact that the number of digits after the decimal is not fixed. Consider the below case:
I was suggesting, how about fixing the number of digits after the decimal to a certain value, maybe based on the max number of digits in the output. The others could be filled out with 0's. Something like:
According to me, this looks a bit more ordered than the previous one.