It is very difficult to work from an image. Please include a Reproducible Example in future questions.
In the image, the line that starts with
regModel <- glm(num ~ age
ends with
) summary(regModel
You cannot include the summary function on the same line as the call to glm()
The second line of code sets the family argument of glm to name of a distribution, which is not a valid value. The value binomial() that was used previously is valid. Also, you cannot set na.action to an action. I would leave out that argument unless you know you need it.
The third line of code begins with =, which is not allowed.
1 Like
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.