通过SAS,哪些分数在范围内?
我下面有一个示例数据集,该数据集显示了分数及其所产生的通过/失败。自从我不得不进行任何统计分析以来已经很长时间了,但是有人可以通过SAS帮助我找出我的数据中的百分比属于通过Pass变量分组的一系列分数?
预期输出可能是:1%的通过= 1分在504-560的得分范围之间。或仅显示每个范围内观察的百分比。
得分 | PASS_FAIL_RESULT |
---|---|
405 | 0 |
410 | 0 |
430 | 0 |
520 | 1 |
550 | 0 |
630 | 0 |
710 | 1 |
720 | 1 |
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.
Score | Pass_Fail_Result |
---|---|
405 | 0 |
410 | 0 |
430 | 0 |
520 | 1 |
550 | 0 |
630 | 0 |
710 | 1 |
720 | 1 |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您想以某种方式储备分数,则首先需要定义这些垃圾箱。您可以为此使用Proc格式。然后计算成功百分比的Pass_Fail_Result的平均值。
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.