recoding

  1. N

    Looking for appropriate loop

    Hi! Hello! I am looking for solution which lead me from yellow to green results like that: As you can see, there are 0-1 coding data with sysmis, always five 1 per line. Thre are 20 variables (p1,p2, ..., p20) and I need to recode them into 5, using number of columns. I have started with...
  2. C

    SPSS Recoding Question

    Thank you for entertaining my question, which I hope is a Recoding question, but since I’ve reached a point of confusion, perhaps it is not. I have tried a several textbooks, this and other forums, YouTube and some trial and error. I inherited a data set of ~16,000 people who had medical...
  3. kiton

    Need help with the code to create a signle data file out of 1,200 txt's

    Hello dear forum members, My data include roughly 1,200 *.txt files, where (a) * is a 3 to 7 digit non-consecutive number representing participant's id, and (b) the contents of the file is participant's response -- text ranging from 5 to 500 words. What will be the code to create a single...
  4. S

    No idea where to begin. Generating new variable & finding means

    I have a qn about data regarding birth weight of babies born to smokers vs babies born to non-smokers. How would I work this out in SPSS? I have a column with smoking status, No = 0 and yes = 1, and then another column with birth weights. How would I use SPSS to find the mean birth weights, std...
  5. M

    Combining value labels without changing actual numeric responses

    I have responses from 1-8 where respondents were asked to rank a set of indicators. I want to combine value labels such that 1,2=High 3,4,5=Medium 6,7,8=Low. However, I do not want to alter individual's responses in the data view. I saw a previous suggestion for using the Transform function to...
  6. O

    Comparing affected sides instead of just left and right.

    Hi. I'm relatively new to statistics and SPSS. I've been testing the shoulder strength of 200 shoulder patients divided into two groups. I've been testing both of their shoulders, so I could have a reference value. I would like to compare the affected shoulder of group 1 to the...