MEPS2001: Ambulatory Expenditures Data

Description Usage Format Source References Examples

Description

The dataset is an extract from the Medical Expenditures Panel Survey. Sample of 3328 observations, with 526 zero expenditures. It was used for illustrative examples by Cameron and Trivedi (2009, Chapter 16).

Usage

1

Format

A data frame with 3328 observations on the following 12 variables.

educ

Educational attainment, in years.

age

Age.

income

Income.

female

Logical, TRUE if female.

totchr

Number of chronic diseases.

age2

Age squared

ambexp

Ambulatory expenditures.

lambexp

Log ambulatory expenditures.

blhisp

Ethnicity. Logical, TRUE if black or hispanic.

dambexp

Logical, TRUE if the ambulatory expenditures are greater than zero.

lnambx

Log ambulatory expenditures, with zeros replacing NA's.

ins

Insurance status. Logical, TRUE if insured.

Source

2001 Medical Expenditure Panel Survey by the Agency for Healthcare Research and Quality.

References

Cameron, C.A. and Trivedi, P.K. (2009) Microeconometrics Using Stata, College Station, TX: Stata Press.

Examples

1
2

Example output

Loading required package: sampleSelection
Loading required package: maxLik
Loading required package: miscTools

Please cite the 'maxLik' package as:
Henningsen, Arne and Toomet, Ott (2011). maxLik: A package for maximum likelihood estimation in R. Computational Statistics 26(3), 443-458. DOI 10.1007/s00180-010-0217-1.

If you have questions, suggestions, or comments regarding the 'maxLik' package, please use a forum or 'tracker' at maxLik's R-Forge site:
https://r-forge.r-project.org/projects/maxlik/
Loading required package: robustbase

Attaching package: 'robustbase'

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

    colMedians, rowMedians

Loading required package: mvtnorm
Loading required package: MASS
      educ            age            income           female      
 Min.   : 0.00   Min.   :2.100   Min.   :-90.05   Min.   :0.0000  
 1st Qu.:12.00   1st Qu.:3.100   1st Qu.: 19.46   1st Qu.:0.0000  
 Median :13.00   Median :4.000   Median : 31.09   Median :1.0000  
 Mean   :13.41   Mean   :4.057   Mean   : 36.80   Mean   :0.5084  
 3rd Qu.:16.00   3rd Qu.:4.900   3rd Qu.: 46.83   3rd Qu.:1.0000  
 Max.   :17.00   Max.   :6.400   Max.   :237.30   Max.   :1.0000  
                                                                  
     vgood             good           hospexp             totchr      
 Min.   :0.0000   Min.   :0.0000   Min.   :     0.0   Min.   :0.0000  
 1st Qu.:0.0000   1st Qu.:0.0000   1st Qu.:     0.0   1st Qu.:0.0000  
 Median :0.0000   Median :0.0000   Median :     0.0   Median :0.0000  
 Mean   :0.4159   Mean   :0.2761   Mean   :   481.6   Mean   :0.4832  
 3rd Qu.:1.0000   3rd Qu.:1.0000   3rd Qu.:     0.0   3rd Qu.:1.0000  
 Max.   :1.0000   Max.   :1.0000   Max.   :175775.0   Max.   :5.0000  
                                                                      
      ffs            dhospexp            age2           agefem     
 Min.   :0.0000   Min.   :0.00000   Min.   : 4.41   Min.   :0.000  
 1st Qu.:0.0000   1st Qu.:0.00000   1st Qu.: 9.61   1st Qu.:0.000  
 Median :0.0000   Median :0.00000   Median :16.00   Median :2.100  
 Mean   :0.4123   Mean   :0.05559   Mean   :17.72   Mean   :2.076  
 3rd Qu.:1.0000   3rd Qu.:0.00000   3rd Qu.:24.01   3rd Qu.:4.100  
 Max.   :1.0000   Max.   :1.00000   Max.   :40.96   Max.   :6.400  
                                                                   
    fairpoor          year01     instype           ambexp       
 Min.   :0.0000   Min.   :1   Min.   :0.0000   Min.   :    0.0  
 1st Qu.:0.0000   1st Qu.:1   1st Qu.:0.0000   1st Qu.:  113.0  
 Median :0.0000   Median :1   Median :1.0000   Median :  534.5  
 Mean   :0.0604   Mean   :1   Mean   :0.5877   Mean   : 1386.5  
 3rd Qu.:0.0000   3rd Qu.:1   3rd Qu.:1.0000   3rd Qu.: 1618.0  
 Max.   :1.0000   Max.   :1   Max.   :1.0000   Max.   :49960.0  
                                                                
    lambexp           blhisp         instype_s1        dambexp      
 Min.   : 0.000   Min.   :0.0000   Min.   :0.0000   Min.   :0.0000  
 1st Qu.: 5.618   1st Qu.:0.0000   1st Qu.:0.0000   1st Qu.:1.0000  
 Median : 6.658   Median :0.0000   Median :0.0000   Median :1.0000  
 Mean   : 6.555   Mean   :0.3086   Mean   :0.3651   Mean   :0.8419  
 3rd Qu.: 7.556   3rd Qu.:1.0000   3rd Qu.:1.0000   3rd Qu.:1.0000  
 Max.   :10.819   Max.   :1.0000   Max.   :1.0000   Max.   :1.0000  
 NA's   :526                                                        
     lnambx            ins        
 Min.   : 0.000   Min.   :0.0000  
 1st Qu.: 4.727   1st Qu.:0.0000  
 Median : 6.281   Median :0.0000  
 Mean   : 5.519   Mean   :0.3651  
 3rd Qu.: 7.389   3rd Qu.:1.0000  
 Max.   :10.819   Max.   :1.0000  
                                  

ssmrob documentation built on Aug. 20, 2021, 5:08 p.m.