| doctor_visits | R Documentation |
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.
data(doctor_visits)
A data frame with 5190 observations and 12 variables:
Age of the individual.
Income level of the individual.
Number of illnesses experienced by the individual.
Number of days with reduced activity.
Self-reported health score.
Gender of the individual: "male" or "female".
Whether the individual has private health insurance: "yes" or "no".
Whether the individual is covered by free government health care due to low income: "yes" or "no".
Whether the individual is covered by free government health care due to repatriation status: "yes" or "no".
Whether the individual has a chronic condition that is not limiting: "yes" or "no".
Whether the individual has a chronic condition that is limiting: "yes" or "no".
Number of doctor visits (target variable).
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.
Originally distributed with the AER package.
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.
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
data(doctor_visits)
str(doctor_visits)
summary(doctor_visits)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.