Assignment 7 Part 3 (Generalized Linear Model)

Assignment 7 Part 3 (Generalized Linear Model)

by Edgardo Torres -
Number of replies: 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

In reply to Edgardo Torres

Re: Assignment 7 Part 3 (Generalized Linear Model)

by Melissa Hazen -
I used the poly function for the quadratic instead
In reply to Melissa Hazen

Re: Assignment 7 Part 3 (Generalized Linear Model)

by 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.
In reply to Edgardo Torres

Re: Assignment 7 Part 3 (Generalized Linear Model)

by Sarah Shawky -
I'm getting this same thing.. did you manage to solve it?
In reply to Sarah Shawky

Re: Assignment 7 Part 3 (Generalized Linear Model)

by 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.