JuliaStats / GLM.jl

Generalized linear models in Julia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mean Squared Error

jo-fleck opened this issue · comments

Is there a way to obtain the mean squared error (mse) from a linear regression from the fitted model (as coef and stderror)? I have tried `deviance' but it doesn't give me the same result as computing the mse 'by hand'. Thanks!

Have you tried deviance(mod)/dof_residual(mod)?

@nalimilan Thanks! That's it.