§
    M/Phg  ã                   óP   — d Z ddlm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&American National Election Survey 1996é    )Úlog)ÚutilsÚrestructuredtextzThis is public domain.zJ
http://www.electionstudies.org/

The American National Election Studies.
zHThis data is a subset of the American National Election Studies of 1996.a!
  ::

    Number of observations - 944
    Number of variables - 10

    Variables name definitions::

            popul - Census place population in 1000s
            TVnews - Number of times per week that respondent watches TV news.
            PID - Party identification of respondent.
                0 - Strong Democrat
                1 - Weak Democrat
                2 - Independent-Democrat
                3 - Independent-Indpendent
                4 - Independent-Republican
                5 - Weak Republican
                6 - Strong Republican
            age : Age of respondent.
            educ - Education level of respondent
                1 - 1-8 grades
                2 - Some high school
                3 - High school graduate
                4 - Some college
                5 - College degree
                6 - Master's degree
                7 - PhD
            income - Income of household
                1  - None or less than $2,999
                2  - $3,000-$4,999
                3  - $5,000-$6,999
                4  - $7,000-$8,999
                5  - $9,000-$9,999
                6  - $10,000-$10,999
                7  - $11,000-$11,999
                8  - $12,000-$12,999
                9  - $13,000-$13,999
                10 - $14,000-$14.999
                11 - $15,000-$16,999
                12 - $17,000-$19,999
                13 - $20,000-$21,999
                14 - $22,000-$24,999
                15 - $25,000-$29,999
                16 - $30,000-$34,999
                17 - $35,000-$39,999
                18 - $40,000-$44,999
                19 - $45,000-$49,999
                20 - $50,000-$59,999
                21 - $60,000-$74,999
                22 - $75,000-89,999
                23 - $90,000-$104,999
                24 - $105,000 and over
            vote - Expected vote
                0 - Clinton
                1 - Dole
            The following 3 variables all take the values:
                1 - Extremely liberal
                2 - Liberal
                3 - Slightly liberal
                4 - Moderate
                5 - Slightly conservative
                6 - Conservative
                7 - Extremely Conservative
            selfLR - Respondent's self-reported political leanings from "Left"
                to "Right".
            ClinLR - Respondents impression of Bill Clinton's political
                leanings from "Left" to "Right".
            DoleLR  - Respondents impression of Bob Dole's political leanings
                from "Left" to "Right".
            logpopul - log(popul + .1)
c                  óP   — t          ¦   «         } t          j        | dg d¢¬¦  «        S )ú’Load the anes96 data and returns a Dataset class.

    Returns
    -------
    Dataset
        See DATASET_PROPOSAL.txt for more information.
    é   )é
   é   é   é   é   )Ú	endog_idxÚexog_idx)Ú	_get_dataÚduÚprocess_pandas©Údatas    ú`/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/statsmodels/datasets/anes96/data.pyÚload_pandasr   \   s,   € õ ‰;Œ;€DÝÔ˜T¨QÐ9IÐ9IÐ9IÐJÑJÔJÐJó    c                  ó   — t          ¦   «         S )r   )r   © r   r   Úloadr   h   s   € õ ‰=Œ=Ðr   c                  óÌ   — t          j        t          dd¬¦  «        } t          j        | ¦  «        } t	          | d         dz   ¦  «        | d<   |                      t          ¦  «        S )Nz
anes96.csvz\s)ÚsepÚpopulgš™™™™™¹?Úlogpopul)r   Úload_csvÚ__file__Ústrip_column_namesr   ÚastypeÚfloatr   s    r   r   r   s   sU   € ÝŒ;•x °5Ð9Ñ9Ô9€DÝÔ  Ñ&Ô&€DÝ˜4 œ=¨2Ñ-Ñ.Ô.€DˆÑØ;Š;•uÑÔÐr   N)Ú__doc__Únumpyr   Ústatsmodels.datasetsr   r   Ú__docformat__Ú	COPYRIGHTÚTITLEÚSOURCEÚ
DESCRSHORTÚ	DESCRLONGÚNOTEr   r   r   r   r   r   ú<module>r.      s•   ðØ ,Ð ,Ø Ð Ð Ð Ð Ð à ,Ð ,Ð ,Ð ,Ð ,Ð ,à"€à(€	Ø€ð
€ð \€
à€	ðE€ðP	Kð 	Kð 	Kðð ð ðð ð ð ð r   