使用proc单变量在SAS中设置x轴范围?
Set x axis range in SAS using proc univariate?
现在我正在使用 proc univariate 在 SAS 中制作直方图。
proc univariate data=myData;
var myVar;
histogram / endpoints = 0 to 75 by 5;
run;
但是,输出没有考虑端点选项。有谁知道是什么问题?谢谢!
文档指出:
The procedure uses the same values for all variables.
The range of endpoints must cover the range of the data.
发生这种情况时,我的日志中也会出现警告:
WARNING: The ENDPOINTS= list was extended to accommodate the data.
如果您想将数据限制为 0 到 75 之间的值,请使用 WHERE
语句。
proc univariate data=myData;
WHERE myVar between 0 and 75;
var myVar;
histogram / endpoints = 0 to 75 by 5;
run;
现在我正在使用 proc univariate 在 SAS 中制作直方图。
proc univariate data=myData;
var myVar;
histogram / endpoints = 0 to 75 by 5;
run;
但是,输出没有考虑端点选项。有谁知道是什么问题?谢谢!
文档指出:
The procedure uses the same values for all variables. The range of endpoints must cover the range of the data.
发生这种情况时,我的日志中也会出现警告:
WARNING: The ENDPOINTS= list was extended to accommodate the data.
如果您想将数据限制为 0 到 75 之间的值,请使用 WHERE
语句。
proc univariate data=myData;
WHERE myVar between 0 and 75;
var myVar;
histogram / endpoints = 0 to 75 by 5;
run;