How to get log likelihood value from GLM.jl estimation

#1

How to get log likelihood value from GLM.jl estimation

Thank you.

#2
julia> using DataFrames, GLM

julia> data = DataFrame(X=[1,2,3], Y=[2,4,7])

julia> ols = lm(@formula(Y ~ X), data);

julia> loglikelihood(ols)
0.07874203723022843
#3

Thank you.
It’s a little bit strange, but I did find this function in the GLM documentation.

#4

Thank you.
It’s a little bit strange, but I did find this function in the GLM documentation.