Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in predictCount()? #3

Open
b-steve opened this issue Oct 2, 2017 · 5 comments
Open

Bug in predictCount()? #3

b-steve opened this issue Oct 2, 2017 · 5 comments

Comments

@b-steve
Copy link
Contributor

b-steve commented Oct 2, 2017

Is the predictCount() function supposed to work for logistic regression models, or just Poisson GLMs? It is used to calculate estimated probabilities in a previous version of the STATS 20x notes.

However, the function appears to think every GLM has a log link function. For logistic regression models, estimated probabilities are calculated by exponentiating the linear predictor, rather than using the inverse-logit function.

@jmcurran
Copy link
Collaborator

jmcurran commented Oct 2, 2017 via email

@b-steve
Copy link
Contributor Author

b-steve commented Oct 3, 2017 via email

@jmcurran
Copy link
Collaborator

jmcurran commented Oct 3, 2017 via email

@b-steve
Copy link
Contributor Author

b-steve commented Oct 3, 2017 via email

@jmcurran
Copy link
Collaborator

jmcurran commented Oct 3, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants