smallProp: small data, accumulated format

smallPropR Documentation

small data, accumulated format

Description

A very small data set used to illustrate logistic regression. This is dataset is on an accumulated format, which is suitable for large datasets.

Usage

smallProp

Format

  • y: Binary numeric response, 0 or 1.

  • x: Predictor variable, 0 or 1.

Examples


prop <- smallProp[,1:2]; x <- smallProp[,3]
res1 <- glm(prop ~ x, family = binomial)
coef(res1)


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