lesasa.blogg.se

Forgot spss code
Forgot spss code






  1. #FORGOT SPSS CODE HOW TO#
  2. #FORGOT SPSS CODE UPDATE#

is there a copy and paste mechanism within the recoding function? But now I need to do industrial amounts of recoding and I’m wondering if there’s a way of saving any time/ work – i.e. I am recoding some of my data into different variables – I’ve done a bit of it already and I’ve no problems with the basics. Want to learn more? If you’re just getting started with data analysis in SPSS, or would like a thorough refresher, please join us in our online workshop Introduction to Data Analysis in SPSS. (And of course, once you recode, you should immediately enter value labels and test your syntax to make sure it worked.

#FORGOT SPSS CODE UPDATE#

If you don’t have many variables to recode, say one or two, it’s not a big deal to use the menus (but at least paste the code, so you have a record of what you did later!).īut if you have more than just one or two, all those mouse-clicks get old, fast.Īnd if you need to go back and change your coding scheme, say to combine two small categories, it’s a quick matter to update the code. VARIABLE LABELS Educ_cat ‘Education in Categories’. Or, you could do all of that in just a few lines of very logical syntax code:

forgot spss code forgot spss code

Output variable Label: Education in Categories In it, I am recoding Educ, Years of Education, into 5 categories: Less than High School, High School Grad, Some College, Bachelor’s degree, More than college. This is from the General Social Survey data set that comes along with SPSS.

#FORGOT SPSS CODE HOW TO#

Here is an example of how to do it in the menus.

forgot spss code

So do not recode over an existing variable unless you are absolutely certain that the lost information will never be needed. So if you notice a mistake after you’ve recoded, you can’t fix it.īut you may not even notice the mistake, because you can’t even test it. Recoding Into Same Variables replaces the values in the existing variable. In almost every situation, you want to use Into Different Variables. The command I nto Same Variable replaces existing data with new values, but the command Into Different Variables adds a new variable to the data set. SPSS offers two choices under the recode command: I nto Same Variable and Into Different Variables.








Forgot spss code