由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - SAS - please help!
相关主题
SAS format 的问题SAS format file--- when I load the file 急~~~谢谢~~~
Please help me with SAS! Thank you!昨天考了SAS ADVANCED,不难
question about proc format[合集] 用SAS生成表格,怎么弄比较好?
问个效率问题 SQL vs data step,大数据量请教一sas code
SAS菜鸟请教如果使SAS的output的结果放到一个文件内?SAS DATA 求助
SAS help : Proc datasetSAS应用问题
SAS Base 70题 第20题求教SAS memory management
sas base 70 第 20题求教proc sql 问题
相关话题的讨论汇总
话题: xxx话题: sas话题: wage1话题: wage2话题: min
进入Statistics版参与讨论
1 (共1页)
a********a
发帖数: 3176
1
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
q**j
发帖数: 10612
2
read proc format.

【在 a********a 的大作中提到】
: 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

a********a
发帖数: 3176
3
Thanks - but doesn't PROC FORMAT need one to specify the value? Could you
please be specific? I have a lot of files and each file may have different
number of categories, and the categries are defined differently for each file. But I'm writing a macro to process them all. So I may need something like
if MAXCAT=1 then label ='xxx or more'.
How can I get there?
Also, can label from PROC FORMAT be outputted into a dataset?

【在 q**j 的大作中提到】
: read proc format.
I**A
发帖数: 96
4
How do you define 'top category' -- is it the last row before the rows that
have missing values?
q**j
发帖数: 10612
5
sort your data by wage category and the last one is what you need.

file. But I'm writing a macro to process them all. So I may need something
like

【在 a********a 的大作中提到】
: Thanks - but doesn't PROC FORMAT need one to specify the value? Could you
: please be specific? I have a lot of files and each file may have different
: number of categories, and the categries are defined differently for each file. But I'm writing a macro to process them all. So I may need something like
: if MAXCAT=1 then label ='xxx or more'.
: How can I get there?
: Also, can label from PROC FORMAT be outputted into a dataset?

1 (共1页)
进入Statistics版参与讨论
相关主题
求教proc sql 问题SAS菜鸟请教如果使SAS的output的结果放到一个文件内?
What's the wrong with this SAS code?SAS help : Proc dataset
请教一个用SAS作DATA MERGE的问题SAS Base 70题 第20题求教
珍惜生命,远离hsbc。sas base 70 第 20题
SAS format 的问题SAS format file--- when I load the file 急~~~谢谢~~~
Please help me with SAS! Thank you!昨天考了SAS ADVANCED,不难
question about proc format[合集] 用SAS生成表格,怎么弄比较好?
问个效率问题 SQL vs data step,大数据量请教一sas code
相关话题的讨论汇总
话题: xxx话题: sas话题: wage1话题: wage2话题: min