Learn R Programming

COUNT (version 1.3.4)

lbw: lbw

Description

The data come to us from Hosmer and Lemeshow (2000). Called the low birth weight (lbw) data, the response is a binary variable, low, which indicates whether the birth weight of a baby is under 2500g (low=1), or over (low=0).

Usage

data(lbw)

Arguments

Format

A data frame with 189 observations on the following 10 variables.

Source

Hosmer, D and S. Lemeshow (2000), Applied Logistic Regression, Wiley

Details

lbw is saved as a data frame. Count models can use ftv as a response variable, or convert it to grouped format

References

Hilbe, Joseph M (2007, 2011), Negative Binomial Regression, Cambridge University Press Hilbe, Joseph M (2009), Logistic Regression Models, Chapman & Hall/CRC

Examples

Run this code
data(lbw)
glmbwp <- glm(ftv ~ low + smoke + factor(race), family=poisson, data=lbw)
summary(glmbwp)
exp(coef(glmbwp))
library(MASS)
glmbwnb <- glm.nb(ftv ~ low + smoke + factor(race), data=lbw)
summary(glmbwnb)
exp(coef(glmbwnb))

Run the code above in your browser using DataLab