R Dataset / Package COUNT / badhealth

Submitted by pmagunia on March 9, 2018 - 1:06 PM
Dataset License
GNU General Public License v2.0
Attachment Size
dataset-90943.csv 7.78 KB
Documentation

badhealth

Description

From German health survey data for the year 1998 only.

Usage

data(badhealth)

Format

A data frame with 1,127 observations on the following 3 variables.

numvisit

number of visits to doctor during 1998

badh

1=patient claims to be in bad health; 0=not in bad health

age

age of patient: 20-60

Details

badhealth is saved as a data frame. Count models use numvisit as the response variable, 0 counts are included.

Source

German Health Survey, amended in Hilbe and Greene (2008).

References

Hilbe, Joseph M (2011), Negative Binomial Regression, Cambridge University Press Hilbe, J. and W. Greene (2008). Count Response Regression Models, in ed. C.R. Rao, J.P Miller, and D.C. Rao, Epidemiology and Medical Statistics, Elsevier Handbook of Statistics Series. London, UK: Elsevier.

Examples

data(badhealth)
glmbadp <- glm(numvisit ~ badh + age, family=poisson, data=badhealth)
summary(glmbadp)
exp(coef(glmbadp))
library(MASS)
glmbadnb <- glm.nb(numvisit ~ badh + age, data=badhealth)
summary(glmbadnb)
exp(coef(glmbadnb))
--

Dataset imported from https://www.r-project.org.

Documentation License
GNU General Public License v2.0

From Around the Site...

Title Authored on Content type
R Dataset / Package wooldridge / jtrain2 March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Zelig / turnout March 9, 2018 - 1:06 PM Dataset
R Dataset / Package evir / bmw March 9, 2018 - 1:06 PM Dataset
R Dataset / Package robustbase / condroz March 9, 2018 - 1:06 PM Dataset
npk February 26, 2017 - 11:28 AM Dataset