/MEPS

This repository provides example code for loading and analyzing data from AHRQ's Medical Expenditure Panel Survey (MEPS). More information about the survey and access to public use data files is available on our website

Primary LanguageSAS

Medical Expenditure Panel Survey (MEPS)

This repository contains instructions and example code for loading and analyzing data from the Agency for Healthcare Research and Quality's Medical Expenditure Panel Survey (MEPS) Household Component (HC). Quick reference guides are also provided for convenience.

MEPS Workshops
Survey Background
Accessing MEPS-HC data
Analyzing MEPS-HC data
Additional Survey Components
Contact MEPS

Example code for loading and analyzing MEPS data in R, SAS, and Stata is available in the following folders. These folders also include example exercises from recent MEPS workshops. In addition, the SAS folder contains exercises from older workshops (1996-2006):

Note to User: All code provided in this repository is intended as an example for loading and analyzing MEPS data. AHRQ cannot certify the quality of your analysis. It is the user's responsibility to verify the accuracy of the results.

MEPS Workshops

The Agency for Healthcare Research and Quality (AHRQ) conducts several workshops throughout the year. These workshops provide extended knowledge about MEPS data, practical information about usage of MEPS public use data files and an opportunity to construct analytic files with the assistance of AHRQ staff. The workshops are designed for health services researchers who have a background or interest in using national health surveys. For questions regarding MEPS Workshops, please contact Anita Soni at WorkshopInfo@ahrq.hhs.gov. Information on upcoming workshops is posted on the MEPS website. Check back regularly for updates.

The agenda, presentation slides, and programming exercises for the most recent workshop are available in the MEPS-workshop repository.

Survey Background

The Medical Expenditure Panel Survey, which began in 1996, is a set of large-scale surveys of families and individuals, their medical providers (doctors, hospitals, pharmacies, etc.), and employers across the United States. The MEPS Household Component (MEPS-HC) survey collects information from families and individuals pertaining to medical expenditures, conditions, and events; demographics (e.g., age, ethnicity, and income); health insurance coverage; access to care; health status; and jobs held. Each surveyed household is interviewed five times (rounds) over a two-year period:

MEPS over-lapping panel design

The MEPS-HC is designed to produce national and regional estimates of the health care use, expenditures, sources of payment, and insurance coverage of the U.S. civilian noninstitutionalized population. The sample design of the survey includes weighting, stratification, clustering, multiple stages of selection, and disproportionate sampling.

Accessing MEPS-HC data

Data from the Household Component of MEPS are available for download as public use files. Each dataset contains .zip and .exe files in ASCII and SAS transport format.

MEPS data files website screenshot

To download the data, unzip and save the ASCII (.dat) or SAS transport (.ssp) file to your local computer. For example, the 2014 full-year-consolidated files h171.dat and h171.ssp can be stored in a local directory 'C:\MEPS\data':

Windows folder containing h171.dat and h171.ssp

The steps for loading the .dat or .ssp files depends on the programming language being used and the MEPS data year. Code for loading MEPS data in R, SAS, and Stata are available in the corresponding folders.

Analyzing MEPS-HC data

The complex survey design of MEPS requires special methods for analyzing MEPS data. These tools are available in many common programming languages. Failure to account for the survey design can result in biased estimates. Details and examples of using the appropriate survey methods are provided in the R, SAS, and Stata folders. Additional examples comparing these three languages can be found in the quick reference guide meps_programming_statements.md.

Sample size and precision

When analyzing MEPS data, it is the user's responsibility to ensure that sample sizes and precision are adequate for the user's purposes. Please refer to AHRQ's guidelines for specific recommendations.

MEPS variables across the years

When analyzing multiple years of MEPS data, it is important to note that MEPS variable names may differ across years. Here are just a few examples:

  • 1996: Round-specific variables have only one round number (e.g. AGE2X instead of AGE42X)
  • 1996-1998: PERWT variable is WTDPERyy (yy = '96', '97', '98')
  • 1996-2001: VARPSU variable has 2-digit year at end (e.g. VARPSU96)

Users should refer to the documentation that is provided with each data set for more information.

Additional Survey Components

In addition to the Household Component (MEPS-HC), MEPS is comprised of two additional components: The MEPS Medical Provider Component (MEPS-MPC) and the MEPS Insurance Component (MEPS-IC). The MEPS-MPC survey collects information from providers of medical care that supplements the information collected from persons in the MEPS-HC sample in order to provide the most accurate cost data possible. The MEPS-IC survey collects information from employers in the private sector and state and local governments on the health insurance coverage offered to their employees. It also includes information on the number and types of private health insurance plans offered, benefits associated with these plans, annual premiums and contributions to premiums by employers and employees, copayments and coinsurance, by various employer characteristics (for example, State, industry and firm size). Summary data tables, chartbooks, and publications are available on the MEPS website.

Special permissions are required to access datasets from the MPC and IC components. Access to the MEPS-MPC data can be requested from the AHRQ data center. For access to the MEPS-IC data, visit the Census Bureau's data center website.

Contact MEPS

Please review the Frequently Asked Questions on our website before contacting us to see if we already have an answer to your question. Also read our Privacy Policy for answers to any questions you may have about the use of your e-mail address.

You can contact us by e-mail, mail, or telephone:

MEPS Project Director
Medical Expenditure Panel Survey
Agency for Healthcare Research and Quality
5600 Fishers Lane
Rockville, MD 20857
mepsprojectdirector@ahrq.hhs.gov
(301) 427-1406