small: small data

smallR Documentation

small data

Description

A very small data set used to illustrate logistic regression.

Usage

small

Format

  • y: Binary numeric response, 0 or 1.

  • x: Predictor variable, 0 or 1.

Examples


res1 <- glm(y ~ x, data = small, family = binomial)
coef(res1)


thoree/stat340 documentation built on June 30, 2024, 4:04 p.m.