通过SAS,哪些分数在范围内?

发布于 2025-02-08 14:38:53 字数 578 浏览 1 评论 0原文

我下面有一个示例数据集,该数据集显示了分数及其所产生的通过/失败。自从我不得不进行任何统计分析以来已经很长时间了,但是有人可以通过SAS帮助我找出我的数据中的百分比属于通过Pass变量分组的一系列分数?

预期输出可能是:1%的通过= 1分在504-560的得分范围之间。或仅显示每个范围内观察的百分比。

得分PASS_FAIL_RESULT
4050
4100
4300
5201
5500
6300
7101
7201

I have a sample dataset below that shows scores and their resulting pass/fail. It's been quite a long time since i've had to do any statistical analysis, but can someone help me figure out via SAS what percent of my data falls into a range of scores grouped by the pass variable?

Expected output could be something like: 1% of pass=1 scores are between the score ranges of 504-560. Or something to just show the percent of observations in each range.

ScorePass_Fail_Result
4050
4100
4300
5201
5500
6300
7101
7201

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

末骤雨初歇 2025-02-15 14:38:53

假设您想以某种方式储备分数,则首先需要定义这些垃圾箱。您可以为此使用Proc格式。然后计算成功百分比的Pass_Fail_Result的平均值。

proc format;
value score_fmt
low - 500 = 'Less than 500'
500 - 600 = '500 to 600'
600 - high = '600+';
run;

proc means data=have noprint nway;
class score;
format score score_fmt.;
var pass_fail_result;
output out=want mean=pct_success;
run;

proc print data=want;
var score pct_success;
format pct_success percent12.1;
run;

Assuming you want to bin your scores in some way, you first need to define those bins. You can use PROC FORMAT for that. Then calculate the average of the pass_fail_result which is the percent of success.

proc format;
value score_fmt
low - 500 = 'Less than 500'
500 - 600 = '500 to 600'
600 - high = '600+';
run;

proc means data=have noprint nway;
class score;
format score score_fmt.;
var pass_fail_result;
output out=want mean=pct_success;
run;

proc print data=want;
var score pct_success;
format pct_success percent12.1;
run;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文