ó
áp7]c           @   sb   d  Z  d d l m Z d Z d Z e  Z d Z d Z d Z	 d Z
 d	 „  Z d d
 „ Z d „  Z d S(   s   U.S. Strike Duration Dataiÿÿÿÿ(   t   utilst   restructuredtexts   This is public domain.só   
This is a subset of the data used in Kennan (1985). It was originally
published by the Bureau of Labor Statistics.

::

    Kennan, J. 1985. "The duration of contract strikes in US manufacturing.
        `Journal of Econometrics` 28.1, 5-28.
sc   Contains data on the length of strikes in US manufacturing and
unanticipated industrial production.së   Contains data on the length of strikes in US manufacturing and
unanticipated industrial production. The data is a subset of the data originally
used by Kennan. The data here is data for the months of June only to avoid
seasonal issues.sÙ   ::

    Number of observations - 62

    Number of variables - 2

    Variable name definitions::

                duration - duration of the strike in days
                iprod - unanticipated industrial production
c          C   s   t  ƒ  }  t j |  d d ƒS(   sª   
    Load the strikes data and return a Dataset class instance.

    Returns
    -------
    Dataset instance:
        See DATASET_PROPOSAL.txt for more information.
    t	   endog_idxi    (   t	   _get_datat   dut   process_pandas(   t   data(    (    s@   lib/python2.7/site-packages/statsmodels/datasets/strikes/data.pyt   load_pandas)   s    		c         C   s   t  j t ƒ  d |  ƒS(   sf  
    Load the strikes data and return a Dataset class instance.

    Parameters
    ----------
    as_pandas : bool
        Flag indicating whether to return pandas DataFrames and Series
        or numpy recarrays and arrays.  If True, returns pandas.

    Returns
    -------
    Dataset instance:
        See DATASET_PROPOSAL.txt for more information.
    t	   as_pandas(   R   t   as_numpy_datasetR   (   R   (    (    s@   lib/python2.7/site-packages/statsmodels/datasets/strikes/data.pyt   load6   s    c           C   s   t  j t d ƒ j t ƒ S(   Ns   strikes.csv(   R   t   load_csvt   __file__t   astypet   float(    (    (    s@   lib/python2.7/site-packages/statsmodels/datasets/strikes/data.pyR   H   s    N(   t   __doc__t   statsmodels.datasetsR    R   t   __docformat__t	   COPYRIGHTt   TITLEt   SOURCEt
   DESCRSHORTt	   DESCRLONGt   NOTER   t   NoneR
   R   (    (    (    s@   lib/python2.7/site-packages/statsmodels/datasets/strikes/data.pyt   <module>   s   		