
    "g	                     J    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y)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     _/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/statsmodels/datasets/grunfeld/data.pyloadr   -   s     =r	   c                      t               } | j                  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   =   sM     ;D		  'DI~~d#H			41	-BBKIr	   c                  :    t        j                  t        d      } | S )Nzgrunfeld.csv)r   load_csv__file__)r   s    r
   r   r   S   s    ;;x0DKr	   )__doc__pandasr   statsmodels.datasetsr   r   __docformat__	COPYRIGHTTITLESOURCE
DESCRSHORT	DESCRLONGNOTEr   r   r   r   r	   r
   <module>r&      sG    %  ,"*		 G
	( ,r	   