Skip Main Navigation Skip To Navigation Content

Health Insurance

Skip top of page navigation
Census.govPopulation Health Insurance Main MethodologyHelp for CPS ASEC Users › CPS Health Insurance Coverage Recoding Programming Code

CPS Health Insurance Coverage Recoding Programming Code

This document shows how our computer program takes some key edited health insurance variables and recodes them into the variables we use most often to prepare our tables and reports.

For a detailed description of all CPS ASEC variables in a data dictionary, go to: http://www.census.gov/apsd/techdoc/cps/cps-main.html



Using Data from CPS ASEC (March) 2001 or later years

Private Health Insurance Status
Variable: COV_HI

    IF HI, DEPHI, PRIV, DEPRIV or OUT = 1, or OTHSTYP(1-6) = 10-14, or AHITYP(1-6) = 10-15
    THEN COV_HI = 1   "yes"
    ELSE COV_HI = 2   "no"



Employment-based (Group) Health Insurance Status
Variable: COV_GH

    IF   HI or DEPHI = 1, or OTHSTYP(1-6) = 10-11, or AHITYP(1-6) = 10-11
    THEN   COV_GH = 1
    ELSE   COV_GH = 2



Medicare Status
Variable: MCARE

    IF   CARE = 1 or OTHSTYP(1-6) = 1 or AHITYP(1-6) = 1
    THEN   MCARE = 1
    ELSE   MCARE = 2



Medicaid Status
Variable: MCAID

    IF   CAID = 1 or PCHIP = 1 or OTHSTYP(1-6) = 2, 7, 9 or 15, or AHITYP(1-6) = 2,7 or 9
    THEN   MCAID =1
    ELSE   MCAID = 2



Military Health Care Status
Variable: CHAMP

    IF   OTYP(_1),(_2),(_3), or (_5) = 1 or OTHSTYP(1-6) = 3-6 or AHITYP(1-6) = 3-6
    THEN   CHAMP = 1
    ELSE   CHAMP = 2



Using Data from CPS March (ASEC) 2000

Private Health Insurance Status
Variable: COV_HI

    IF   HI, DEPHI, PRIV, DEPRIV or OUT = 1, or OTHSTYP(1-6) = 9-13, or AHITYP(1-6) = 9-14
    THEN   COV_HI = 1 "yes"
    ELSE   COV_HI = 2 "no"



Employment-based (Group) Health Insurance Status
Variable: COV_GH

    IF   HI or DEPHI = 1, or OTHSTYP(1-6) = 9-10, or AHITYP(1-6) = 9-10
    THEN   COV_GH = 1
    ELSE   COV_GH = 2



Medicare Status
Variable: MCARE

    IF   CARE = 1 or OTHSTYP(1-6) = 1 or AHITYP(1-6) = 1
    THEN   MCARE = 1
    ELSE   MCARE = 2



Medicaid Status
Variable: MCAID

    IF   CAID = 1 or OTHSTYP(1-6) = 2, 8, or 14, or AHITYP(1-6) = 2 or 8
    THEN   MCAID =1
    ELSE   MCAID = 2



Military Health Care Status
Variable: CHAMP

    IF   OTYP(_1),(_2),(_3), or (_5) = 1 or OTHSTYP(1-6) = 3-6 or AHITYP(1-6) = 3-6
    THEN   CHAMP = 1
    ELSE   CHAMP = 2



Using Data from CPS March (ASEC) 1995 to 1999*

Private Health Insurance Status
Variable: COV_HI

    IF   HI, DEPHI, PRIV, DEPRIV or OUT = 1, or OTHSTYP(1-6) = 9-13
    THEN   COV_HI = 1 "yes"
    ELSE   COV_HI = 2 "no"



Employment-based (Group) Health Insurance Status
Variable: COV_GH

    IF   HI or DEPHI = 1, or OTHSTYP(1-6) = 9-10
    THEN   COV_GH = 1
    ELSE   COV_GH = 2



Medicare Status
Variable: MCARE

    IF   CARE = 1 or OTHSTYP(1-6) = 1
    THEN   MCARE = 1
    ELSE   MCARE = 2



Medicaid Status
Variable: MCAID

    IF   CAID = 1 or OTYP4 = 1 or OTHSTYP(1-6) = 2, 7, 8 or 14
    THEN   MCAID =1
    ELSE   MCAID = 2



Military Health Care Status
Variable: CHAMP

    IF   OTYP(_1),(_2),(_3), or (_5) = 1 or OTHSTYP(1-6) = 3-6
    THEN   CHAMP = 1
    ELSE   CHAMP = 2



*Note: Beginning with the March 1998 CPS, people with no coverage other than access to Indian Health Service are no longer considered covered by health insurance. To reflect this change, you can substitute the following statement for MCAID when using CPS March 1998 or 1999 data files:

    IF   CAID = 1 or OTHSTYP(1-6) = 2, 8, or 14


Contact the Demographic Call Center Staff at 301-763-2422 or 1-866-758-1060 (toll free) or visit ask.census.gov for further information on Health Insurance Data.


Source: U.S. Census Bureau | Health Insurance |  Last Revised: September 12, 2012