A) Open IBM SPSS Statistics-application through Desktop or Start-menu
Open the previously used data.
Variable gender is defined as String, where value 1 will be a boy and value 2 a girl.
Descriptives can be calculated for only the boys :
Select Data->Select Cases...
Select If condition is satisfied and click If-button.
Input the variable and it's value, which is placed between " ", when the variable is a String-variable. Numeric variables does not require apostrophes.
Click Continue.
Click OK.
Thus, you will see the following data. filter_$ is the filtering variable.
Select Analyze-> Descriptive Statistics->Descriptives
Select variables and click OK.
Thus, you will get means, standard deviations, min and max values for the boys :
filter_$-variable is removed by clicking the variable with the right-mouse-button and by selecting Clear.
2. alternative : If-condition can be removed by selecting: Data->Select Cases... -> All cases.
Close the output-window by clicking X.
Close SPSS by selecting File->Exit or by clicking X.