ó
á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 d	 „ Z d
 „  Z d „  Z d S(   s   Stack loss dataiÿÿÿÿ(   t   utilst   restructuredtexts   This is public domain. sw   
Brownlee, K. A. (1965), "Statistical Theory and Methodology in
Science and Engineering", 2nd edition, New York:Wiley.
s(   Stack loss plant data of Brownlee (1965)sÂ   The stack loss plant data of Brownlee (1965) contains
21 days of measurements from a plant's oxidation of ammonia to nitric acid.
The nitric oxide pollutants are captured in an absorption tower.s³  ::

    Number of Observations - 21

    Number of Variables - 4

    Variable name definitions::

        STACKLOSS - 10 times the percentage of ammonia going into the plant
                    that escapes from the absoroption column
        AIRFLOW   - Rate of operation of the plant
        WATERTEMP - Cooling water temperature in the absorption tower
        ACIDCONC  - Acid concentration of circulating acid minus 50 times 10.
c         C   s   t  j t ƒ  d |  ƒS(   sj  
    Load the stack loss data and returns 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(   t   dut   as_numpy_datasett   load_pandas(   R   (    (    sB   lib/python2.7/site-packages/statsmodels/datasets/stackloss/data.pyt   load#   s    c          C   s   t  ƒ  }  t j |  d d ƒS(   s®   
    Load the stack loss data and returns a Dataset class instance.

    Returns
    -------
    Dataset instance:
        See DATASET_PROPOSAL.txt for more information.
    t	   endog_idxi    (   t	   _get_dataR   t   process_pandas(   t   data(    (    sB   lib/python2.7/site-packages/statsmodels/datasets/stackloss/data.pyR   4   s    		c           C   s   t  j t d ƒ j t ƒ S(   Ns   stackloss.csv(   R   t   load_csvt   __file__t   astypet   float(    (    (    sB   lib/python2.7/site-packages/statsmodels/datasets/stackloss/data.pyR   A   s    N(   t   __doc__t   statsmodels.datasetsR    R   t   __docformat__t	   COPYRIGHTt   TITLEt   SOURCEt
   DESCRSHORTt	   DESCRLONGt   NOTEt   NoneR   R   R   (    (    (    sB   lib/python2.7/site-packages/statsmodels/datasets/stackloss/data.pyt   <module>   s   	