1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
*Sent 2000/09/09.
* want cumulative % on x axis and values on y axis with origin of both axis being (0,0).
* rlevesque@videotron.ca.

NEW file.
INPUT PROGRAM.
LOOP id=1 TO 250.
COMPUTE sex=TRUNC(UNIFORM(1)+.5).
COMPUTE Selen=TRUNC(UNIFORM(125)).
IF sex=1 selen=MAX(selen-10,0).
IF id>244 selen=TRUNC(150+UNIFORM(150)).
END CASE.
END LOOP.
END FILE.
END INPUT PROGRAM.
EXECUTE.


RANK
  VARIABLES=selen  (A) BY sex  /RANK /NTILES (100) /PRINT=YES
  /TIES=MEAN .
VARIABLE LABEL nselen 'Cumulative Percent'.
GRAPH
  /TITLE='Selenium Concentration in ug/day'
  /LINE(MULTIPLE)MEAN(selen) BY nselen BY sex
  /MISSING=REPORT.