Skip to content

Instantly share code, notes, and snippets.

@cimentadaj
Created September 22, 2016 17:16
Show Gist options
  • Save cimentadaj/0ef02f6680b38f23e0733a9572b3f790 to your computer and use it in GitHub Desktop.
Save cimentadaj/0ef02f6680b38f23e0733a9572b3f790 to your computer and use it in GitHub Desktop.
install.packages("stargazer") # in case you don't have this package
library(stargazer)
m1 <- glm(mtcars$vs ~ mtcars$hp + mtcars$mpg)
stargazer(m1, type = "text") # Our standard log odds
stargazer(m1, apply.coef = exp, type = "text") # The coefficients are correct, but look at the significance levels!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment