small | R Documentation |
A very small data set used to illustrate logistic regression.
small
y
: Binary numeric response, 0 or 1.
x
: Predictor variable, 0 or 1.
res1 <- glm(y ~ x, data = small, family = binomial)
coef(res1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.