~dricottone/replications

ref: da6b7478a8a7062ac7fd75977abc3d9c9c6c8fc7 replications/AS04/Table 1.sas -rw-r--r-- 738 bytes
da6b7478Dominic Ricottone Incomplete work on AS04 5 days ago
                                                                                
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;