| NMES1988 | R Documentation |
The NMES1988 dataset contains information on medical service use among
older adults in the United States. In addition to several counts of health care
utilization, it includes demographic, socioeconomic, insurance, and health-related
variables that are useful for studying patterns in demand for care.
data(NMES1988)
A data frame with 4406 observations on 19 variables:
Number of visits to a physician's office.
Number of visits to a non-physician provider's office.
Number of outpatient visits involving a physician.
Number of outpatient visits not involving a physician.
Number of emergency room visits.
Number of hospital admissions.
Self-rated health status, recorded as "poor", "average", or "excellent".
Number of chronic medical conditions.
Indicator of limitation in activities of daily living, with levels "limited" and "normal".
Region of residence, with categories "northeast", "midwest", "west", and "other".
Age measured in decades.
Indicator for African-American ethnicity: "yes" or "no".
Gender of the individual.
Marital status indicator: "yes" or "no".
Years of schooling completed.
Family income measured in units of 10,000 US dollars.
Employment status indicator: "yes" or "no".
Indicator for private insurance coverage: "yes" or "no".
Indicator for Medicaid coverage: "yes" or "no".
This dataset is included in the liver package for teaching and applied work in data science and statistical modeling. It is especially suitable for examples involving count outcomes, exploratory analysis, Poisson regression, and related generalized linear models.
Because the dataset contains several different measures of medical utilization, it can also be used to compare alternative response variables and to discuss how health status, insurance coverage, and socioeconomic factors relate to health care use.
Derived from the National Medical Expenditure Survey (NMES) conducted in 1987 and 1988. The version included here is adapted from material distributed through the AER package.
Deb, P. and Trivedi, P. K. (1997). Demand for Medical Care by the Elderly: A Finite Mixture Approach. Journal of Applied Econometrics, 12(3), 313–336.
Cameron, A. C. and Trivedi, P. K. (1998). Regression Analysis of Count Data. Cambridge: Cambridge University Press.
Zeileis, A., Kleiber, C., and Jackman, S. (2008). Regression Models for Count Data in R. Journal of Statistical Software, 27(8), 1–25.
Mohammadi, R. (2025). Data Science Foundations and Machine Learning with R: From Data to Decisions. https://book-data-science-r.netlify.app
doctor_visits,
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(NMES1988)
str(NMES1988)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.