*******************************************************************
* Stata "do-file" file with labels and missing data specifications
* Created by ddltox on Nov 15, 2024 (Fri 10:03 AM PST)
* DDL source file: "/var/www/sda/tmpdir/ddl3640268546116940221.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 X
* 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)
dictionary using Y {
*****************************************************************
* Replace 'Y' with the name of the data file.
* The default suffix is '.raw'.
*
* Put this dictionary into a separate file (with the suffix .dct).
* (The first line of the dictionary file must contain the
* 'dictionary' command.)
*
* Then edit the name of that dictionary file into the 'do-file'
* portion of the STATA definitions.
*******************************************************************
* Records per case:
_lines(1)
_line(1)
_column(1) long CASEID %8f "Case ID"
_column(11) str28 VERSION %28s "ANES Version Number"
_column(41) int VCF0004 %4f "Year of Study"
_column(46) int VCF0006 %4f "Study Respondent Number"
_column(51) long VCF0006A %8f "Unique Respondent Number"
_column(60) float VCF0009 %6.4f "Type 0 General Weight Variable"
_column(67) float VCF0009A %6.4f "Type 0 Weight - Post-Stratified Pre"
_column(74) float VCF0010 %6.4f "Type 1 General Weight Variable"
_column(81) float VCF0010A %6.4f "Type 1 Weight - Post-stratified Pre"
_column(88) float VCF0011 %6.4f "Type 2 General Weight Variable"
_column(95) float VCF0011A %6.4f "Type 2 Weight - Post-Stratified Pre"
_column(102) int VCF0140A :VCF0140A %1f "R Education 7-category"
_column(104) int VCF0302 :VCF0302 %1f "Initial Party ID Response"
_column(106) int VCF0702 :VCF0702 %1f "Did R Vote in Election"
_column(108) int VCF0717 :VCF0717 %1f "Did R Try to Influence Others Vote"
_column(110) int VCF0718 :VCF0718 %1f "Did R Attend Political Meetings"
_column(112) int VCF0719 :VCF0719 %1f "Did R Work for Party or Candidate"
_column(114) int VCF0720 :VCF0720 %1f "Did R Display Candidate Button/Stic"
_column(116) int VCF0721 :VCF0721 %1f "Did R Donate Money to Party/Candida"
_column(118) int VCF0803 :VCF0803 %1f "Liberal-Conservative 7pt Scale"
_column(120) int VCF0806 :VCF0806 %1f "R Position 7pt Govt Health Insuranc"
_column(122) int VCF0809 :VCF0809 %1f "R Position 7pt Govt Guaranteed Jobs"
_column(124) int VCF0830 :VCF0830 %1f "R Position 7pt Aid to Blacks Scale"
_column(126) int VCF0838 :VCF0838 %1f "When Should Abortion Be Allowed by"
_column(128) int VCF0839 :VCF0839 %1f "R Position 7pt Govt Services/Spendi"
_column(130) int VCF0843 :VCF0843 %1f "R Position 7pt Defense Spending Sca"
}