![spss code dependent cat spss code dependent cat](https://s2.studylib.net/store/data/018565621_1-9c4143c352cbe729c42ea76584e7273b-768x994.png)
This parameter relates to the number of digits or characters that are displayed for a particular variable within its column in the Data View. Select the variable type you require and click OK. If you need to change the type, click inside the cell you want to change (within the Type column, click again on the ellipsis if it appears), and a list of variable types will be displayed (as below). In our example, SPSS has correctly identified Age as a numeric type. Type specifies the type of a variable, such as numeric, string, data, date, and so on. Here are the other parameters that can be specified and changed within the Variable View.
Spss code dependent cat how to#
You now know how to change the Name and Decimals parameters. If you click back to the Data View, you’ll see that things already look much better. You can also change the number of decimal places that are displayed in the Data View by clicking in the first cell of the Decimals column, and changing 2 to 0. To change the name of our variable to something meaningful, just click where it currently says VAR00001, and replace it with “Age”. At the moment, we only have one variable, so there’s only one row. And each row corresponds to a variable in the Data View. If you click on the Variable View tab, you’ll get a screen that looks like this.Įach column (Name, Type, Width, etc) represents a parameter of the variable. It’s possible to sort out both of these problems by switching to the Variable View (click the tab, as per the screenshot above), and specifying some of the parameters associated with the age variable. The variable name is not informative (VAR00001) and the ages have decimal points. You can immediately see there’s a problem. Let’s set up a variable for age by typing in five different ages (see screenshot below).
![spss code dependent cat spss code dependent cat](https://i.ytimg.com/vi/a4x_ShWHhks/maxresdefault.jpg)
Select the Data View – click on the tab at the bottom of the program window – start in the first cell of an empty column, and work downwards. In order to define a variable and set its parameters you need to get some data into SPSS. This tutorial will introduce you to the Variable View tab in SPSS, and teach you how to define variables – that is, specify their various parameters – within this view.