Thread replies: 10
Thread images: 2
Anonymous
Creating a distance variable in SPSS
2016-06-06 11:38:29 Post No. 135682
[Report]
Image search:
[Google]
Creating a distance variable in SPSS
Anonymous
2016-06-06 11:38:29
Post No. 135682
[Report]
I'm using SPSS to create a variable that is supposed to show the numerical distance between a case and a given value. My mathmatical/programming skills are too limited to figure this out though and I could not find any tutorial pertaining to this online. Does anyone here have an idea on how to compute this?
To be clear, what I need is the distance from a case to a given number where the given number is always the same for instance at a given value of 10:
Case says: 4
Distance is 6
Case says: 15
Distance is 5
I have no clue how to fix this mathmatically or as a function in SPSS. Any help would be greatly appreciated.