U
    Kvf                     @   sH   d Z ddlmZ dZdZe ZdZdZdZ	dZ
d	d
 Zdd Zdd ZdS )zLongley dataset    )utilsZrestructuredtextzThis is public domain.a5  
The classic 1967 Longley Data

http://www.itl.nist.gov/div898/strd/lls/data/Longley.shtml

::

    Longley, J.W. (1967) "An Appraisal of Least Squares Programs for the
        Electronic Comptuer from the Point of View of the User."  Journal of
        the American Statistical Association.  62.319, 819-41.
 zThe Longley dataset contains various US macroeconomic
variables that are known to be highly collinear.  It has been used to appraise
the accuracy of least squares routines.aW  ::

    Number of Observations - 16

    Number of Variables - 6

    Variable name definitions::

            TOTEMP - Total Employment
            GNPDEFL - GNP deflator
            GNP - GNP
            UNEMP - Number of unemployed
            ARMED - Size of armed forces
            POP - Population
            YEAR - Year (1947 - 1962)
c                   C   s   t  S )
    Load the Longley data and return a Dataset class.

    Returns
    -------
    Dataset
        See DATASET_PROPOSAL.txt for more information.
    )load_pandas r   r   E/tmp/pip-unpacked-wheel-2v6byqio/statsmodels/datasets/longley/data.pyload-   s    	r   c                  C   s   t  } tj| ddS )r   r   )Z	endog_idx)	_get_dataduZprocess_pandasdatar   r   r   r   9   s    	r   c               	   C   s6   t td} | jd d dddddddgf t} | S )	Nzlongley.csv                     )r
   Zload_csv__file__ZilocZastypefloatr   r   r   r   r	   F   s    &r	   N)__doc__Zstatsmodels.datasetsr   r
   Z__docformat__Z	COPYRIGHTZTITLEZSOURCEZ
DESCRSHORTZ	DESCRLONGZNOTEr   r   r	   r   r   r   r   <module>   s   