Differences between revisions 3 and 4
Revision 3 as of 2024-11-16 21:54:28
Size: 810
Comment: Styling
Revision 4 as of 2025-04-09 00:42:03
Size: 784
Comment: Remove extra 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)


CategoryRicottone

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