由买买提看人间百态

topics

全部话题 - 话题: wage1
(共0页)
a********a
发帖数: 3176
1
来自主题: Statistics版 - SAS - please help!
I created multiple datasets that looks like:
var min max
wage1 XXX xxx
wage2 xxx xxx
wage3 xxx xxx
wage4 xxx xxx
wage5 . .
or
var min max
wage1 XXX xxx
wage2 xxx xxx
wage3 xxx xxx
wage4 . .
wage5 . .
The problem is that I need to create labels for each category that is min-
max, but for the top cat. it should be 'min or more'. So the final should
be:
var min max label
wage1 xxx xxx xxx - xxx
wage2 xxx xxx x
a********a
发帖数: 3176
2
Thank you. I never used 'range' with proc means before, so this could be
helpful for me in the future.
But a different file may have different variables, i.e no age or age_c*, but added
wage, wage1, wage2. Other files may have age, but may only have 3
categories. That's why I don't want to list the actual names, but want to
use a macro to identify those variables with the two lists in the given
macro variable. Could something like %quote(scan...) work? I tried that
route but haven't got it t
(共0页)