doctor_visits: Doctor Visits and Health Care Utilization Data

doctor_visitsR Documentation

Doctor Visits and Health Care Utilization Data

Description

A dataset containing information on individuals' doctor visit counts, demographic characteristics, income, illness burden, reduced activity days, self-reported health status, and indicators of health care coverage and chronic conditions.

Usage

data(doctor_visits)

Format

A data frame with 5190 observations and 12 variables:

age

Age of the individual.

income

Income level of the individual.

illness

Number of illnesses experienced by the individual.

reduced

Number of days with reduced activity.

health

Self-reported health score.

gender

Gender of the individual: "male" or "female".

private

Whether the individual has private health insurance: "yes" or "no".

freepoor

Whether the individual is covered by free government health care due to low income: "yes" or "no".

freerepat

Whether the individual is covered by free government health care due to repatriation status: "yes" or "no".

nchronic

Whether the individual has a chronic condition that is not limiting: "yes" or "no".

lchronic

Whether the individual has a chronic condition that is limiting: "yes" or "no".

visits

Number of doctor visits (target variable).

Details

This dataset was adapted for inclusion in the liver package and can be used to illustrate methods for count data modeling, exploratory data analysis, and regression techniques such as Poisson regression in R.

Source

Originally distributed with the AER package.

References

Mullahy, J. (1997). Heterogeneity, Excess Zeros, and the Structure of Count Data Models. Journal of Applied Econometrics, 12:337–350.

Cameron, A.C. and Trivedi, P.K. (1986). Econometric Models Based on Count Data: Comparisons and Applications of Some Estimators and Tests. Journal of Applied Econometrics, 1:29–53.

Cameron, A.C. and Trivedi, P.K. (1998). Regression Analysis of Count Data. Cambridge: Cambridge University Press.

Reza Mohammadi (2025). Data Science Foundations and Machine Learning with R: From Data to Decisions. https://book-data-science-r.netlify.app.

See Also

bike_demand, mortgage, bank, churn_mlc, churn, churn_tel, adult, cereal, advertising, marketing, drug, house, house_price, red_wines, white_wines, insurance, caravan, fertilizer, corona

Examples

data(doctor_visits)

str(doctor_visits)
summary(doctor_visits)

liver documentation built on April 7, 2026, 9:07 a.m.