如何防止中点延伸 [英] how to prevent midpoints from extending
本文介绍了如何防止中点延伸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下代码
proc univariate data=work.dataset noprint;
histogram value / barwidth=.05 midpoints=(-2.45 to 2.45 by .05) outhist=data_bin nochart;
运行;我在日志中收到此警告消息警告:MIDPOINTS= 列表已扩展以容纳数据.
run; I get this warning message in the log WARNING: The MIDPOINTS= list was extended to accommodate the data.
我基本上想防止中点延伸我希望它们从 -2.5 开始并在 2.5 结束.
I basically want to prevent the midpoints from extending I want them to start from -2.5 and end at 2.5.
已解决
只需要在proc步骤之前对数据进行bin
Just need to bin the data before the proc step
推荐答案
已解决
基本上在数据创建点,我将变量 value 的值限制在 -2.5 和 2.5 之间.
Basically at data creation point I cap the values of variable value in between the range of -2.5 and 2.5.
代码仍然保持不变,只是在数据中添加了一个 if 语句以将数据从 -2.5 剔除到 2.5
The code still remains the same just added a if statement in data to cull the data from -2.5 to 2.5
这篇关于如何防止中点延伸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文