由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - question about proc format
相关主题
SAS - please help!How to prevent values being trucated when merging two files
问个BASE题目求教proc sql 问题
import csv file 后data有问题请教SAS BASE 11月真题54题-谢谢了
求大侠指点,GEE macro in SAS菜鸟问题:想用R画一个random sequence的图
proc surveymeans output 被truncate如何print比较长的column ‘WARNING: Data too long for column; truncated to 92 characters to fi
[问题]sql into产生宏变量长度的限制SAS problem ask for help!
SAS base questionfind distribution paramters only by data mean and std. dev.
SAS format 的问题model fit的疑难杂症: negative binomial regression 求指点
相关话题的讨论汇总
话题: format话题: score话题: proc话题: unscored话题: length
进入Statistics版参与讨论
1 (共1页)
p***7
发帖数: 535
1
proc format;
value score 370 - 670 = '670-'
671 - 870 = '671+'
other = 'unscored'
;
proc freq data=score;
table score;
format score score.;
run;
in the output window the ‘unscored’ label appears without truncation.
Because when assigning a character label in a
dataset, the length of the first evaluation of the
label will be applied to all labels.
I don't understand it,what does the first evaluation mean here? for me
the length of '670-' is shorter than 'unscored'.
a****g
发帖数: 8131
2
does format have the same length requirement as variable names?

【在 p***7 的大作中提到】
: proc format;
: value score 370 - 670 = '670-'
: 671 - 870 = '671+'
: other = 'unscored'
: ;
: proc freq data=score;
: table score;
: format score score.;
: run;
: in the output window the ‘unscored’ label appears without truncation.

p***7
发帖数: 535
3
No. If you use 'if then' you will get truncated 'unsco' for unscore.
But format will allow the full length 'unscore'.
I don't understand the reason.
p***7
发帖数: 535
4
kk
S******6
发帖数: 752
5
I think you misunderstand the lecture.
It should be "
When assigning a character label in a
dataset, the length of the first evaluation of the
label will be applied to all labels."
However, if you use the proc format, their is no truncation problem now.
1 (共1页)
进入Statistics版参与讨论
相关主题
model fit的疑难杂症: negative binomial regression 求指点proc surveymeans output 被truncate
SAS里关于recode一问[问题]sql into产生宏变量长度的限制
[合集] 抛砖引玉,从statistician的角度来谈谈sas programmerSAS base question
SAS 求助, 一个小问题, 包子答谢SAS format 的问题
SAS - please help!How to prevent values being trucated when merging two files
问个BASE题目求教proc sql 问题
import csv file 后data有问题请教SAS BASE 11月真题54题-谢谢了
求大侠指点,GEE macro in SAS菜鸟问题:想用R画一个random sequence的图
相关话题的讨论汇总
话题: format话题: score话题: proc话题: unscored话题: length