SPSS String Variable
In this section, we are going to learn about String variables. String variables are the type of variables that are used when we want to record any qualitative data or qualitative variables. For example, name of the subject, or roll no of the subject.
Now we will take the example of the current study in which we study the effect of Hardwork or Performance. Suppose at the end of the study, we want to record the feedback of the subject, which might come in the format of statements. So for that, we can define a String variable. Remember, SPSS software is not doing qualitative data analysis, but we can definitely store the qualitative data, and later, we can do some analysis by using other software. So in our case, let's define a new variable called Name of subject and Feedback. So we will create Feedback as the first variable.
By default, it's Numeric, so we will convert it into the String variable because it is going to be in the statement of format.
Then we will create Name as the second variable and convert it into a String variable.
Now the variables have been created. Since we have restricted Width to 8 so, we need to increase it. Let's keep it more than a thousand. So we can write a full story if we want about the feeling of their subject. We will also increase the Width of Name variable so that we can accommodate the longer name. If we don't increase the width, the text will be truncated. Suppose we are writing I felt very good, but because of lower width it will be truncated as "I felt v" like this:
Now we increase the width of Income as 1008, and click on the Data View option and enter a dummy Feedback. Suppose the first subject says, "I felt very good. Thanks".
Now we will write the Name as "John Smith".