官术网_书友最值得收藏!

Getting the sample data

The examples in this section will use a subset of the General Social Survey from 2016 with only 28 fields out of the original 896. After downloading and opening the General Social Survey file for 2016 in the SPSS Statistics format, you can run the following code to create a file that will produce the same results shown in this chapter. Remember to change the directory reference on the second line of the SPSS code to reflect the directory on your machine where you want to have this new file saved:

* create GSS2014small with 28 fields.
* change the directory reference below as needed.
SAVE OUTFILE='C:GSS DataGSS2014sm28.sav'
/keep = happy marital hapmar age
VOTE12 PRES12 educ speduc natpark natroad NATENRGY cappun natmass natchld natsci
partyid degree incom16 satfin size spdeg polviews
rincom16 res16 childs wrkstat sex region /COMPRESSED.
主站蜘蛛池模板: 新和县| 台山市| 安新县| 大洼县| 宁乡县| 荣昌县| 舞阳县| 田阳县| 荣昌县| 新沂市| 鄂托克旗| 海城市| 土默特左旗| 南靖县| 二连浩特市| 万全县| 疏附县| 临桂县| 楚雄市| 青田县| 孟津县| 平度市| 读书| 理塘县| 新竹市| 邵武市| 光泽县| 剑阁县| 达日县| 错那县| 凤山市| 专栏| 阿鲁科尔沁旗| 新密市| 喜德县| 钟山县| 清新县| 鲁甸县| 施甸县| 台江县| 北海市|