Dear StataListers,
I have used -stset- and then -stsplit- on my (large) datasets:
Stsplit riskintvl, at (0,5,10,15,20,25,30,35)
Using -tab- on the created variable riskintvl gives :
Risk     |
Interval |   Freq
------------------
     0   |   .....
     5   |   .....
    10   |   .....
    15   |   .....
    20   |   .....
    25   |   .....
    30   |   .....
    35   |   .....
Is there any way that I can automatically produce labels for the values
of riskintvl that encompass the range of values within each cell
(value[n] - (1-value[n+1]) i.e
0-4, 5-9, 10-14, 15-19, 20-24, 25-29, 30-34, 35-
I would be useful to do this for any definition of variables produced
using -stsplit-
Best wishes,
Dave
****************************************************
Mr David L. Winter, HNC
I.T. Manager (BCCSS Study)
Department of Public Health & Epidemiology
Room 105, Public Health Building
University of Birmingham
Edgbaston
Birmingham
B15 2TT
UK
tel.: +44 (0)121 414 6766
fax.: +44 (0)121 414 7923
****************************************************
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/