Assignment 7 Part 3 (Generalized Linear Model)

Assignment 7 Part 3 (Generalized Linear Model)

par Edgardo Torres Carmona,
Nombre de réponses : 4

Hello,

For part 3 of assignment 7, I keep getting a very weird plot for the generalized linear model (image attached).

Has anyone come across this error? How did you guys solve it?

Screen cap. of Generalized Linear Model plot

En réponse à Edgardo Torres Carmona

Re: Assignment 7 Part 3 (Generalized Linear Model)

par Melissa Hazen,
I used the poly function for the quadratic instead
En réponse à Melissa Hazen

Re: Assignment 7 Part 3 (Generalized Linear Model)

par Melissa Hazen,
Sorry, missed that it was a GLM you were asking about - I followed the code in the slides from the GLM lecture and the output was okay for me.
En réponse à Edgardo Torres Carmona

Re: Assignment 7 Part 3 (Generalized Linear Model)

par Sarah Shawky,
I'm getting this same thing.. did you manage to solve it?
En réponse à Sarah Shawky

Re: Assignment 7 Part 3 (Generalized Linear Model)

par Erik Spence,
The problem was that he was not putting the column names into the glm definition, and then didn't specify the name of the column when using the predict function.