
    M/Ph                     D    d Z ddlmZ dZdZe ZdZdZdZ	dZ
d	 Zd
 Zd ZdS )z%RAND Health Insurance Experiment Data    )utilsrestructuredtextzThis is in the public domain.a9  
The data was collected by the RAND corporation as part of the Health
Insurance Experiment (HIE).

http://www.rand.org/health/projects/hie.html

This data was used in::

    Cameron, A.C. amd Trivedi, P.K. 2005.  `Microeconometrics: Methods
        and Applications,` Cambridge: New York.

And was obtained from: <http://cameron.econ.ucdavis.edu/mmabook/mmadata.html>

See randhie/src for the original data and description.  The data included
here contains only a subset of the original data.  The data varies slightly
compared to that reported in Cameron and Trivedi.
z-The RAND Co. Health Insurance Experiment Data a  ::

    Number of observations - 20,190
    Number of variables - 10
    Variable name definitions::

        mdvis   - Number of outpatient visits to an MD
        lncoins - ln(coinsurance + 1), 0 <= coninsurance <= 100
        idp     - 1 if individual deductible plan, 0 otherwise
        lpi     - ln(max(1, annual participation incentive payment))
        fmde    - 0 if idp = 1; ln(max(1, MDE/(0.01 coinsurance))) otherwise
        physlm  - 1 if the person has a physical limitation
        disea   - number of chronic diseases
        hlthg   - 1 if self-rated health is good
        hlthf   - 1 if self-rated health is fair
        hlthp   - 1 if self-rated health is poor
        (Omitted category is excellent self-rated health)
c                      t                      S )
    Loads the RAND HIE data and returns a Dataset class.

    Returns
    -------
    Dataset
        See DATASET_PROPOSAL.txt for more information.

    Notes
    -----
    endog - response variable, mdvis
    exog - design
    )load_pandas     a/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/statsmodels/datasets/randhie/data.pyloadr   2   s     ==r
   c                  F    t          j        t                      d          S )r   r   )	endog_idx)duprocess_pandas	_get_datar	   r
   r   r   r   C   s     Y[[A6666r
   c                  6    t          j        t          d          S )Nzrandhie.csv)r   load_csv__file__r	   r
   r   r   r   T   s    ;x///r
   N)__doc__statsmodels.datasetsr   r   __docformat__	COPYRIGHTTITLESOURCE
DESCRSHORT	DESCRLONGNOTEr   r   r   r	   r
   r   <module>r      s~    + + , , , , , ,"1	$ B
	(  "7 7 7"0 0 0 0 0r
   