Created
July 13, 2017 10:56
-
-
Save rohit-gupta/675e4e3e1fb1ec8ca871fbd268185066 to your computer and use it in GitHub Desktop.
Calculate Topline Voting Intention Figure from CCES-2016
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(survey) | |
load("~/CCES/CCES2016_Common_FirstRelease.RData") | |
survObj <- svydesign(ids = ~1, data = x, weights = x$commonweight_post) | |
prop.table(svytable(~CC16_410a, design = survObj)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment