smallProp | R Documentation |
A very small data set used to illustrate logistic regression. This is dataset is on an accumulated format, which is suitable for large datasets.
smallProp
y
: Binary numeric response, 0 or 1.
x
: Predictor variable, 0 or 1.
prop <- smallProp[,1:2]; x <- smallProp[,3]
res1 <- glm(prop ~ x, family = binomial)
coef(res1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.