
The function group contains many useful, common functions that may be used for calculating values for new variables (e.g., mean, logarithm). There are many kinds of calculations you can specify by selecting a variable (or multiple variables) from the left column, moving them to the center text field, and using the blue buttons to specify values (e.g., “1”) and operations (e.g., +, *, /).Į If: The If option allows you to specify the conditions under which your computation will be applied.į Function group: You can also use the built-in functions in the Function group list on the right-hand side of the window.


#ROTATE ERROR TERM IN SPSS IBM HOW TO#
You can use this menu to add variables into a computation: either double-click on a variable to add it to the Numeric Expression field, or select the variable(s) that will be used in your computation and click the arrow to move them to the Numeric Expression text field (C).Ĭ Numeric Expression: Specify how to compute the new variable by writing a numeric expression. The default type for new variables is numeric.ī The left column lists all of the variables in your dataset. Once a variable is entered here, you can click on “Type & Label” to assign a variable type and give it a label. Simply type a name for the new variable in the text field. The Compute Variable window will open where you will specify how to calculate your new variable.Ī Target Variable: The name of the new variable that will be created during the computation. To compute a new variable, click Transform > Compute Variable. In this tutorial, we'll discuss how to compute variables in SPSS using numeric expressions, built-in functions, and conditional logic. Apply a computation conditionally, so that a new variable is only computed for cases where certain conditions are met.Compute a subscale score from items on a survey.

