
    M/Ph                     D    d 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 )z6Spector and Mazzeo (1980) - Program Effectiveness Data    )utilsrestructuredtextzMUsed with express permission of the original author, who
retains all rights. a  
http://pages.stern.nyu.edu/~wgreene/Text/econometricanalysis.htm

The raw data was downloaded from Bill Greene's Econometric Analysis web site,
though permission was obtained from the original researcher, Dr. Lee Spector,
Professor of Economics, Ball State University.z^Experimental data on the effectiveness of the personalized
system of instruction (PSI) programaj  ::

    Number of Observations - 32

    Number of Variables - 4

    Variable name definitions::

        Grade - binary variable indicating whether or not a student's grade
                improved.  1 indicates an improvement.
        TUCE  - Test score on economics test
        PSI   - participation in program
        GPA   - Student's grade point average
c                      t                      S )
    Load the Spector dataset and returns a Dataset class instance.

    Returns
    -------
    Dataset
        See DATASET_PROPOSAL.txt for more information.
    )load_pandas     a/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/statsmodels/datasets/spector/data.pyloadr   %   s     ==r	   c                  J    t                      } t          j        | d          S )r      )	endog_idx)	_get_dataduprocess_pandasdatas    r
   r   r   1   s#     ;;DTQ////r	   c                      t          j        t          dd          } t          j        |           } | j        d d g df         } |                     t                    S )Nzspector.csvz\s)sep)      r      )r   load_csv__file__strip_column_namesilocastypefloatr   s    r
   r   r   >   sR    ;xE:::D &&D9QQQ_%D;;ur	   N)__doc__statsmodels.datasetsr   r   __docformat__	COPYRIGHTTITLESOURCE
DESCRSHORT	DESCRLONGNOTEr   r   r   r   r	   r
   <module>r(      s    < < , , , , , ,"	2'
 	 	 	 	
0 
0 
0    r	   