The 2014data_recode.R file is the R script for recoding the 2014 data from the Chinese Ideology Survey.
For the complete survey please visit zuobiao.me
For recoding rules please refer to codebook.m
Use 2014data_recode.R and add_geoip_data.py to process the data
The final result can be obtained here: https://dl.dropboxusercontent.com/u/17491620/2014data_clean_geoip.csv
Use basic_mining.ipynb to check the geoip results make sense: http://nbviewer.ipython.org/github/pkuqiuning/Ideology-Survey/blob/master/basic_mining.ipynb