Re: How to Calculate Interpolated Median (IM) Using Syntax
Posted by
Art Kendall on
URL: http://spssx-discussion.165.s1.nabble.com/How-to-Calculate-Interpolated-Median-IM-Using-Syntax-tp5740421p5740423.html
Is this what you are looking for?
GET
FILE='C:\Users\Art\AppData\Local\Temp\SampleData.sav'.
DATASEt NAME ExampleData.
DISPLAY DICTIONARY.
VARIABLE LEVEL Q1 Q2 (ORDINAL).
*Perhaps even interval.
NUMERIC MyScore (f3.1).
*using MEAN to get a summative score with the same meaning as the response
scale.
COMPUTE MYScore=Mean.2(Q1 to Q2).
FREQUENCIES VARIABLES = Q1 Q2 MyScore /STATISTICS =ALL.
NUMERIC NewVar (F2).
RECODE MyScore(Missing=Copy)(4.0 THRU HI =2)(1 THRU 3.9999 =1)(ELSE = -1)
INTO NewVar.
VALUE LABELS NewVar
-1 'Oops weird result'
1 'Below Median'
2 'At or above Median'.
MISSING VALUES NewVar (LO THRU -1).
CROSSTABS TABLES = MyScore BY NewVar.
-----
Art Kendall
Social Research Consultants
--
Sent from:
http://spssx-discussion.1045642.n5.nabble.com/=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Art Kendall
Social Research Consultants