
    'YHh                     X    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g dZd Zy)zDanish Money Demand Data    N)utilsrestructuredtextzThis is public domain.aU  
Danish data used in S. Johansen and K. Juselius.  For estimating
estimating a money demand function::

    [1] Johansen, S. and Juselius, K. (1990), Maximum Likelihood Estimation
        and Inference on Cointegration - with Applications to the Demand
        for Money, Oxford Bulletin of Economics and Statistics, 52, 2,
        169-210.
z::
    Number of Observations - 55

    Number of Variables - 5

    Variable name definitions::

        lrm - Log real money
        lry - Log real income
        lpy - Log prices
        ibo - Bond rate
        ide - Deposit rate
c                      t               } d| j                  _        t        j                  | t        | j                              S )NzQS-JAN)datanames)	_get_dataindexfreqduDatasetlistcolumns)r   s    ^/var/www/html/planif/env/lib/python3.12/site-packages/statsmodels/datasets/danish_data/data.pyload_pandasr   '   s.    ;DDJJO::4tDLL'9::    c                      t               S )z
    Load the US macro data and return a Dataset class.

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

    Notes
    -----
    The Dataset instance does not contain endog and exog attributes.
    )r    r   r   loadr   -   s     =r   c                     t        j                  t        d      } t        | j                        D ]U  \  }}|j                  d      }t        |d         dz
  dz  dz   }|d    d|dd| j                  | j                  |   d	f<   W t        j                  | j                        | d	<   | j                  d	      j                  t              S )
Nzdata.csvQ      r   -02dz-01period)r   load_csv__file__	enumerater   splitintlocr	   pdto_datetime	set_indexastypefloat)r   ivalpartsmonths        r   r   r   =   s    ;;x,DDKK( I3		#U1X"a'!+/4Qxj%C,HA()	I
 ^^DKK0DN>>(#**511r   )lrmlrylpyiboidec                       y)Ndanish_datar   r   r   r   __str__r2   K   s    r   )__doc__pandasr"   statsmodels.datasetsr   r   __docformat__	COPYRIGHTTITLESOURCE
DESCRSHORT	DESCRLONGNOTEr   r   r   variable_namesr2   r   r   r   <module>r>      sR      ,"(	
 ,
	; 2 5r   