Linear regression with a positive definite matrix in GLM.jl?

Someone else can give you a more technical answer on the meaning of positive definite.

My guess is that the error is because your x1 and x5 terms vary together, so you don’t want to use them as separate terms. Note the NA in the R results for x5. Try taking one of those terms out.

5 Likes