1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* The following lines should match the import routine */
libname library '~/data/anes';
/* Activities */
proc means data=library.as04 mean maxdec=2;
var voter influencer displayer attender worker donor;
class party;
format voter influencer displayer attender worker donor no_yes_f. party party_f.;
run;
/* Overall Activity Scale score */
proc freq data=library.as04;
tables r_activity*party / nofreq nopercent norow;
format r_activity threeplus_f. party party_f.;
run;
/* Active partisans */
proc means data=library.as04 mean maxdec=2;
var partisan;
class party;
format partisan no_yes_f. party party_f.;
run;
/* Party N */
proc freq data=library.as04;
tables party / nocum nopercent;
format party party_f.;
run;