这是一个困难的,我有我创建的这种格式。
这是我的自定义格式
data work.myBins;
do start = -2.5 to 2.45 by 0.05;
end=start+0.05;
label=catx(' ',put(start,8.2),'to',put(end,8.2));
output;
end;
run;
proc format cntlin=work.myBins; run;
现在我使用 proc 格式进一步创建了这种格式
proc format;
value customFormat
2.5-high='Higher then 2.5'
low-2.5='Lower then -2.5'
other=bin.;
run;
这会起作用吗
谢谢
您需要在 myBins 数据集中创建 2 条额外的记录,一条用于"低 - <2.5"范围,另一条用于"2.5 - 高"范围。然后使用单一格式覆盖所有值。