Skip to content

Instantly share code, notes, and snippets.

@smc77
Created October 26, 2011 01:45
Show Gist options
  • Save smc77/1315162 to your computer and use it in GitHub Desktop.
Save smc77/1315162 to your computer and use it in GitHub Desktop.
Logistic Regression
# Apply logistic regression to South African heart data from ESL
sa.heart <- glm(chd ~ sbp + tobacco + ldl + famhist + obesity + alcohol + age , family = binomial , data=hr)
summary(sa.heart)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment