View Full Version : How to compute a range in SPSS??


Pieterg
09-18-2006, 11:19 AM
Hi,

Does anybody know how to compute the range between the lowest and highest variable in SPSS?

Say for example, I have consumer ratings on 10 variables.
Consumer 1 ratings
Variable 1 rating = -.999
Variable 2 rating = .999
Variable 3 rating = -.444
Variable 4 rating = .234
etc.

The range between the lowest and highest variable for this consumer is .999-(-.999) = 1.998

But for the second consumer, the highest and lowest rating might be present with variable 2 and 3, get my gist?

In one formula, I should be able to compute the range between the highest and the lowest of the 10 variables for each consumer. I just don't know how to, and it would be of great help if anybody could assist me with this.

Thanks alot!

elnaz
09-18-2006, 12:05 PM
Hello
yes you can via this way :
analyze\descriptive frequency \frequency : then click on :
statistics menu \dispersion then click on range

Pieterg
09-18-2006, 07:42 PM
Thanks Elnaz,

But I think what you get then, is just a range per person per variable. so that if for variable 1 the number is 0,499, the range for this person on this variable will be 0,499.

But what I would really like to know, is how to compute the range (difference) between the highest and the lowest of the 10 variables for every respondent separately. I should be able to do this with one 'compute' command, but simply don't know how...anyone else any suggestions?

Thanks again!

Pieterg
09-19-2006, 07:06 AM
Hey Guys,

I figured out how to do it my-self!

All you have to do is go to Compute in SPSS and type in the following formula:

max(var1,var2,var3...) - min(var1,var2,var3...).

Thanks anyway for trying to help me figure this one out!

elnaz
09-19-2006, 10:19 PM
Hello again
why didnt you do what i said you?
and why did you delete your data ?
please attach them i will do that for you
and you will see their answers are the same

Pieterg
09-21-2006, 08:32 AM
Hey Elnaz,

I'm sorry for having deleted the spss file, here it is again. I appreciate your help! thanks.