Last data update: 2014.03.03

R: Medical Expenditure Panel Survey Data
HealthInsuranceR Documentation

Medical Expenditure Panel Survey Data

Description

Cross-section data originating from the Medical Expenditure Panel Survey survey conducted in 1996.

Usage

data("HealthInsurance")

Format

A data frame containing 8,802 observations on 11 variables.

health

factor. Is the self-reported health status “healthy”?.

age

age in years.

limit

factor. Is there any limitation?

gender

factor indicating gender.

insurance

factor. Does the individual have a health insurance?

married

factor. Is the individual married?

selfemp

factor. Is the individual self-employed?

family

family size.

region

factor indicating region.

ethnicity

factor indicating ethnicity: African-American, Caucasian, other.

education

factor indicating highest degree attained: no degree, GED (high school equivalent), high school, bachelor, master, PhD, other.

Details

This is a subset of the data used in Perry and Rosen (2004).

Source

Online complements to Stock and Watson (2007).

http://wps.aw.com/aw_stock_ie_2/0,12040,3332253-,00.html

References

Perry, C. and Rosen, H.S. (2004). “The Self-Employed are Less Likely than Wage-Earners to Have Health Insurance. So What?” in Holtz-Eakin, D. and Rosen, H.S. (eds.), Entrepeneurship and Public Policy, MIT Press.

Stock, J.H. and Watson, M.W. (2007). Introduction to Econometrics, 2nd ed. Boston: Addison Wesley.

See Also

StockWatson2007

Examples

data("HealthInsurance")
summary(HealthInsurance)
prop.table(xtabs(~ selfemp + insurance, data = HealthInsurance), 1)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(AER)
Loading required package: car
Loading required package: lmtest
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

Loading required package: sandwich
Loading required package: survival
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/AER/HealthInsurance.Rd_%03d_medium.png", width=480, height=480)
> ### Name: HealthInsurance
> ### Title: Medical Expenditure Panel Survey Data
> ### Aliases: HealthInsurance
> ### Keywords: datasets
> 
> ### ** Examples
> 
> data("HealthInsurance")
> summary(HealthInsurance)
 health          age        limit         gender     insurance  married   
 no : 629   Min.   :18.00   no :7571   female:4169   no :1750   no :3369  
 yes:8173   1st Qu.:30.00   yes:1231   male  :4633   yes:7052   yes:5433  
            Median :39.00                                                 
            Mean   :38.94                                                 
            3rd Qu.:48.00                                                 
            Max.   :62.00                                                 
                                                                          
 selfemp        family             region     ethnicity         education   
 no :7731   Min.   : 1.000   northeast:1682   other: 365   none      :1119  
 yes:1071   1st Qu.: 2.000   midwest  :2023   afam :1083   ged       : 374  
            Median : 3.000   south    :3075   cauc :7354   highschool:4434  
            Mean   : 3.094   west     :2022                bachelor  :1549  
            3rd Qu.: 4.000                                 master    : 524  
            Max.   :14.000                                 phd       : 135  
                                                           other     : 667  
> prop.table(xtabs(~ selfemp + insurance, data = HealthInsurance), 1)
       insurance
selfemp        no       yes
    no  0.1832881 0.8167119
    yes 0.3109244 0.6890756
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>