楼主: appleqiuqiu
4706 5

[问答] 请教proc univariate中histogram一个问题 [推广有奖]

  • 0关注
  • 1粉丝

已卖:773份资源

副教授

41%

还不是VIP/贵宾

-

威望
0
论坛币
3666 个
通用积分
2.9200
学术水平
2 点
热心指数
2 点
信用等级
2 点
经验
4191 点
帖子
133
精华
0
在线时间
1514 小时
注册时间
2010-4-27
最后登录
2022-6-22

楼主
appleqiuqiu 发表于 2013-12-7 15:27:09 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
如题,我画出的图形是这样的

飞信截图20131207152336.jpg
我这里是1-7打分,怎么把中间的那些空白去掉?变成类似下面这样的图形

飞信截图20131207152644.jpg
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Univariate histogram Variate gram hist

沙发
appleqiuqiu 发表于 2013-12-7 19:15:08
自己顶,求解答

藤椅
zhengbo8 发表于 2013-12-7 22:49:32
请提供原始数据。

板凳
zhengbo8 发表于 2013-12-7 23:47:12
  1. data a;
  2.          input b c;
  3. cards;
  4. 1 10
  5. 2 15
  6. 3 20
  7. 4 25
  8. 5 30
  9. 6 25
  10. 7 20
  11. ;


  12. proc univariate data=a noprint;

  13.         title 'Your Result';
  14.         freq c;
  15.         histogram / cfill = grayCC midpoints = 1 to 7 by 1;
  16.         label b = 'X';

  17. run;
复制代码

报纸
jingju11 发表于 2013-12-8 00:27:17
Histogram is created on the 'best' setup for bins and width based on a certain algorithm. I don't think it is good for you to tailor it into your 'own' histogram. if you really need some specific forms, you can use bar chart to represent your data. JingJu

地板
appleqiuqiu 发表于 2013-12-9 14:04:36
zhengbo8 发表于 2013-12-7 23:47
该方法可行!再次感谢我的大牛好友O(∩_∩)O~

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-30 18:58