U
    Ãmœd�  ã                   @   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é    )ÚutilsÚ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.
Ú z¬The 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   úZ/home/sam/Atlas/atlas_env/lib/python3.8/site-packages/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   Ú__docformat__Z	COPYRIGHTZTITLEZSOURCEZ
DESCRSHORTZ	DESCRLONGÚNOTEr	   r   r
   r   r   r   r   Ú<module>   s   