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

Demo - defining variable properties

You have seen that you can Define Variable Properties either in the Variable View or via syntax. Yet another way is to use Define Variable Properties found in the Data menu. An advantage of using Define Variable Properties is that you fill in a dialog box but can use the Paste command to obtain the constructed syntax.

Here, let's consider defining variable properties for MARITAL.

To use Define Variable Properties from the menus, navigate to Data | Define Variable Properties.

This opens the Define Variable Properties dialog box. Move MARITAL to the right-hand side:

Here is a portion of the Define Variable Properties box after you press Continue:

This dialog box is an all-in-one view that shows both the variable properties and the actual data summarized. You can type in this dialog box to add Variable properties for MARITAL.

Here is the dialog box with the fields filled in:

Here is the constructed syntax when you paste:

* Define Variable Properties.
*MARITAL.
VARIABLE LABELS MARITAL 'Marital Status'.
MISSING VALUES MARITAL(9).
VALUE LABELS MARITAL
1 'Married'
2 'Widowed'
3 'Divorced'
4 'Separated'
5 'Never Married'
9 'No Answer'.
EXECUTE.
In addition to running the constructed syntax, you can archive the constructed syntax for future use on a variable with the same or very similar values. You can save the syntax by making the syntax the active window and then specifying FILE | SAVE. SPSS Statistics uses the SPS extension for SPSS syntax files. 
主站蜘蛛池模板: 绩溪县| 呼伦贝尔市| 仁化县| 巩义市| 巴南区| 河东区| 修水县| 沁阳市| 赞皇县| 武乡县| 壶关县| 离岛区| 达日县| 尼玛县| 西充县| 通渭县| 常山县| 昌图县| 和顺县| 吉木乃县| 巴楚县| 西充县| 朔州市| 黄梅县| 万山特区| 安仁县| 剑河县| 鸡东县| 平乐县| 苏尼特左旗| 马边| 察隅县| 浠水县| 南充市| 韩城市| 海淀区| 南昌市| 雷波县| 子洲县| 武乡县| 景东|