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

Log model #4

Open
nwstephens opened this issue Apr 3, 2019 · 0 comments
Open

Log model #4

nwstephens opened this issue Apr 3, 2019 · 0 comments

Comments

@nwstephens
Copy link
Contributor

nwstephens commented Apr 3, 2019

Most statisticians would do a log transform of the predictor and response in your model:

lm(log(hospitals) ~ log(population))

When you make new predictions, you should back transform the response so it's in the non-log space.

The log transform will lead to a better model, and prettier pictures, but will be slightly harder to interpret.

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

1 participant