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

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.
主站蜘蛛池模板: 丹江口市| 鄱阳县| 鄂尔多斯市| 高台县| 文山县| 商水县| 卓资县| 湟源县| 蚌埠市| 绥化市| 阿勒泰市| 盐城市| 青神县| 集安市| 百色市| 涿鹿县| 基隆市| 海伦市| 垫江县| 盘锦市| 淅川县| 桑日县| 土默特左旗| 丹江口市| 全州县| 陇南市| 花莲县| 绥中县| 马鞍山市| 越西县| 白朗县| 获嘉县| 洪雅县| 凤凰县| 竹溪县| 汉川市| 福清市| 锡林郭勒盟| 肇源县| 高邑县| 秀山|