§
    M/Ph	  ã                   óL   — d Z ddlZddlmZ dZdZe ZdZ	dZ
e
ZdZd	„ Zd
„ Zd„ ZdS )zGrunfeld (1950) Investment Dataé    N)ÚutilsÚrestructuredtextzThis is public domain.aŽ  This is the Grunfeld (1950) Investment Data.

The source for the data was the original 11-firm data set from Grunfeld's Ph.D.
thesis recreated by Kleiber and Zeileis (2008) "The Grunfeld Data at 50".
The data can be found here.
http://statmath.wu-wien.ac.at/~zeileis/grunfeld/

For a note on the many versions of the Grunfeld data circulating see:
http://www.stanford.edu/~clint/bench/grunfeld.htm
z2Grunfeld (1950) Investment Data for 11 U.S. Firms.ax  ::

    Number of observations - 220 (20 years for 11 firms)

    Number of variables - 5

    Variables name definitions::

        invest  - Gross investment in 1947 dollars
        value   - Market value as of Dec. 31 in 1947 dollars
        capital - Stock of plant and equipment in 1947 dollars
        firm    - General Motors, US Steel, General Electric, Chrysler,
                Atlantic Refining, IBM, Union Oil, Westinghouse, Goodyear,
                Diamond Match, American Steel
        year    - 1935 - 1954

    Note that raw_data has firm expanded to dummy variables, since it is a
    string categorical variable.
c                  ó   — t          ¦   «         S )á#  
    Loads the Grunfeld data and returns a Dataset class.

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

    Notes
    -----
    raw_data has the firm variable expanded to dummy variables for each
    firm (ie., there is no reference dummy)
    )Úload_pandas© ó    úb/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/statsmodels/datasets/grunfeld/data.pyÚloadr   -   s   € õ ‰=Œ=Ðr	   c                  óÌ   — t          ¦   «         } | j                             t          ¦  «        | _        t	          j        | ¦  «        }t          j        | d¬¦  «        }||_        |S )r   r   )Ú	endog_idx)	Ú	_get_dataÚyearÚastypeÚfloatÚpdÚget_dummiesÚduÚprocess_pandasÚraw_data)Údatar   Údss      r
   r   r   =   sT   € õ ‰;Œ;€DØ”	× Ò ¥Ñ'Ô'€D„IÝŒ~˜dÑ#Ô#€HÝ	Ô	˜4¨1Ð	-Ñ	-Ô	-€BØ€B„KØ€Ir	   c                  ó:   — t          j        t          d¦  «        } | S )Nzgrunfeld.csv)r   Úload_csvÚ__file__)r   s    r
   r   r   S   s   € ÝŒ;•x Ñ0Ô0€DØ€Kr	   )Ú__doc__Úpandasr   Ústatsmodels.datasetsr   r   Ú__docformat__Ú	COPYRIGHTÚTITLEÚSOURCEÚ
DESCRSHORTÚ	DESCRLONGÚNOTEr   r   r   r   r	   r
   ú<module>r&      sŠ   ðØ %Ð %Ø Ð Ð Ð à ,Ð ,Ð ,Ð ,Ð ,Ð ,à"€à*€	Ø€ð	€ð G€
à€	ð€ð(ð ð ð ð ð ð,ð ð ð ð r	   