*******************************************************************
* Stata "do-file" file with labels and missing data specifications
* Created by ddltox on Nov 13, 2024 (Wed 07:10 PM PST)
* DDL source file: "/var/www/sda/tmpdir/ddl489112400220024910.txt".
*
* Note that the data dictionary is given at the end of this file.
* Put the dictionary into a separate file (by editing this file).
* Then specify below the name of the dictionary file.
*
* DDL file gives the following dataset description:
* Records per case: 1
* Record length: 130
*******************************************************************
label data "American National Election Study 1948-2004 - Cumulative"
#delimit ;
label define VCF0140A 1 "8 grades or less ('grade school')"
2 "9-12 grades ('high school'), no diploma/equivalency"
3 "12 grades, diploma or equivalency"
4 "12 grades, diploma or equivalency, plus non-academic"
5 "Some college, no degree;junior/community college level"
6 "BA level degree" 7 "Advanced degrees incl. LLB"
8 "DK" 9 "NA;no Pre IW;short-form 'new' Cross Section" ;
label define VCF0302 1 "Republican" 2 "Independent"
3 "No preference;none;neither" 4 "Other" 5 "Democrat"
8 "DK" 9 "NA;refused" ;
label define VCF0702 0 "DK;NA;no Post IW;refused to say if voted;"
1 "No, did not vote" 2 "Yes, voted" ;
label define VCF0717 0 "DK;NA;no Post IW;form III,IV (1972);abbrev." 1 "No"
2 "Yes" ;
label define VCF0718 0 "DK;NA;no Post IW;form III,IV (1972);abbrev." 1 "No"
2 "Yes" ;
label define VCF0719 0 "DK;NA;no Post IW;form III,IV (1972);abbrev." 1 "No"
2 "Yes" ;
label define VCF0720 0 "DK;NA;no Post IW;form III,IV (1972);abbrev." 1 "No"
2 "Yes" ;
label define VCF0721 0 "DK;NA;no Post IW;form III,IV (1972);abbrev."
1 "No (includes 'not asked for money' in 1966,1968)"
2 "Yes (includes 'tax check-off' in 1976)" ;
label define VCF0803
0 "NA;no Post IW;form III,IV (1972);R not administered"
1 "Extremely liberal" 2 "Liberal" 3 "Slightly liberal"
4 "Moderate, middle of the road"
5 "Slightly conservative" 6 "Conservative"
7 "Extremely conservative"
9 "DK;haven't thought much about it" ;
label define VCF0806
0 "NA;form II (1972);no Post IW;telephone IW (1984: see"
1 "Government insurance plan"
7 "Private insurance plan"
9 "DK;haven't thought much about it" ;
label define VCF0809 0 "NA;no Post IW;form A (1986);telephone IW (2000)"
1 "Government see to job and good standard of living"
7 "Government let each person get ahead on his own"
9 "DK;haven't thought much about it" ;
label define VCF0830 0 "NA;telephone IW (2000);no Post IW"
1 "Government should help minority groups/blacks"
7 "Minority groups/blacks should help themselves"
9 "DK;haven't thought much about it" ;
label define VCF0838 0 "NA;no Post IW"
1 "By law, abortion should never be permitted"
2 "The law should permit abortion only in case of rape,"
3 "The law should permit abortion for reasons other than"
4 "By law, a woman should always be able to obtain an"
9 "DK;other" ;
label define VCF0839 0 "NA;telephone IW (2000)"
1 "Government should provide many fewer services: reduce"
7 "Government should provide many more services: increase"
9 "DK;haven't thought much about it" ;
label define VCF0843 0 "NA;telephone IW (2000)"
1 "Greatly decrease defense spending"
7 "Greatly increase defense spending"
9 "DK;haven't thought much about it" ;
#delimit cr
*******************************************************************
infile using "anes 2004 cumulative dictionary.do"
* Replace 'X' with the name of the dictionary file.
*
* The contents of the dictionary are given at the end of this file.
* Put the dictionary into a separate file (by editing this file).
* Then specify here the name of the dictionary file.
*******************************************************************
* The md, min and max specifications were translated
* into the following "REPLACE...IF" statements:
replace VCF0140A = . if (VCF0140A == 0)
replace VCF0140A = . if (VCF0140A >= 8 )
replace VCF0302 = . if (VCF0302 == 8)
replace VCF0302 = . if (VCF0302 >= 9 )
replace VCF0702 = . if (VCF0702 == 0)
replace VCF0717 = . if (VCF0717 == 0)
replace VCF0718 = . if (VCF0718 == 0)
replace VCF0719 = . if (VCF0719 == 0)
replace VCF0720 = . if (VCF0720 == 0)
replace VCF0721 = . if (VCF0721 == 0)
replace VCF0803 = . if (VCF0803 == 0)
replace VCF0806 = . if (VCF0806 == 0)
replace VCF0809 = . if (VCF0809 == 0)
replace VCF0830 = . if (VCF0830 == 0)
replace VCF0838 = . if (VCF0838 == 0)
replace VCF0839 = . if (VCF0839 == 0)
replace VCF0843 = . if (VCF0843 == 0)