Differences between revisions 1 and 2
Revision 1 as of 2024-11-16 21:17:58
Size: 778
Comment: Initial commit
Revision 2 as of 2024-11-16 21:54:08
Size: 804
Comment: Data section
Deletions are marked like this. Additions are marked like this.
Line 37: Line 37:
----



== Data ==

ANES Time Series

ANES time series studies are administered around each presidential election. They are all two-wave studies, corresponding to a pre-election interview and a post-election interview.


Weights

Declare the complex survey design like:

proc surveyfreq;
  stratum STRATUM;
  cluster CLUSTER;
  weight WEIGHT;
  table VOTE PARTY VOTE*PARTY ;
run;

Or:

svyset CLUSTER [pweight=WGT], strata(STRATUM) vce(linearize) singleunit(centered)

Until the 2006 pilot, clusters and strata were published as a single variable. This could be broken apart like:

compute STRATUM = trunc(v040103/10).
compute CLUSTER = v040103 ‐ (10*STRATUM)


Data


CategoryRicottone

AmericanNationalElectionStudies/TimeSeries (last edited 2025-04-09 01:10:03 by DominicRicottone)