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.Use a subject's height and weight to compute their BMI. Convert the units of a variable from feet to meters.Sometimes you may need to compute a new variable based on existing information (from other variables) in your data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |