楼主: 猴子456
4018 5

sas语句spec为什么一直显示红色 [推广有奖]

  • 0关注
  • 0粉丝

等待验证会员

小学生

35%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
56 点
帖子
5
精华
0
在线时间
1 小时
注册时间
2015-8-14
最后登录
2015-8-21

楼主
猴子456 发表于 2015-8-14 21:40:10 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
data ball;
input x @@;
cards;
15.0 15.8 15.2 15.1 15.9 14.7 14.8 15.5 15.6 15.3 15.1 15.3 15.0
15.6 15.7 15.8 14.5 14.2 14.9 14.9 15.2 15.0 15.3 15.6 15.1 14.9
14.2 14.6 15.8 15.2 15.9 15.2 15.0 14.9 14.8 14.5 15.1 15.5 15.5
15.1 15.1 15.0 15.3 14.7 14.5 15.5 15.0 14.7 14.6 14.2
;
proc capability data=ball vardef=n;
spec ls1=14.35 cleft=yellow llsl=2 target=15.1 pleft=11 ltarget=1
usl=15.85 cright=black lusl=3 wusl=2 pright=rl;
histogram x/ normal(mu=est sigma=est color=black) outfit=outfit
endpoints=14.05 to 16.15 by 0.3 barlabel=count cfill=white;
cdfplot x/ normal(mu=est sigma=est);
run;
proc print data=outfit; run;
希望大家可以帮帮忙哦。

二维码

扫码加我 拉你入群

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

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

关键词:PEC SPE Capability Endpoints histogram yellow normal target sigma black

沙发
苹果叶 在职认证  发表于 2015-8-14 22:54:14
红色不是问题,个人估计应该是sas 有定义spec 是特殊颜色吧。你这段程序是因为 lsl 打成 ls1 了, pleft 后面应该是类似颜色的单词,参考pright。就可以跑出来了
已有 1 人评分论坛币 收起 理由
admin_kefu + 20 热心帮助其他会员

总评分: 论坛币 + 20   查看全部评分

藤椅
猴子456 发表于 2015-8-15 15:21:52
苹果叶 发表于 2015-8-14 22:54
红色不是问题,个人估计应该是sas 有定义spec 是特殊颜色吧。你这段程序是因为 lsl 打成 ls1 了, pleft 后 ...
似乎应该是蓝色,不知道为啥成了红色,并且显示
88 ! ltarget=1 */
ERROR 22-322: 期望: 名称.
ERROR 200-322: 该符号不可识别,将被忽略。

板凳
苹果叶 在职认证  发表于 2015-8-15 17:41:29
猴子456 发表于 2015-8-15 15:21
似乎应该是蓝色,不知道为啥成了红色,并且显示
88 ! ltarget=1 */
ERROR 22-322: 期望: 名称.
我这边跑出来没有问题
  1. data ball;
  2. input x @@;
  3. cards;
  4. 15.0 15.8 15.2 15.1 15.9 14.7 14.8 15.5 15.6 15.3 15.1 15.3 15.0
  5. 15.6 15.7 15.8 14.5 14.2 14.9 14.9 15.2 15.0 15.3 15.6 15.1 14.9
  6. 14.2 14.6 15.8 15.2 15.9 15.2 15.0 14.9 14.8 14.5 15.1 15.5 15.5
  7. 15.1 15.1 15.0 15.3 14.7 14.5 15.5 15.0 14.7 14.6 14.2
  8. ;

  9. proc capability data=ball vardef=n;
  10.         spec lsl=14.35 cleft=yellow llsl=2 target=15.1 pleft=red ltarget=1 usl=15.85 cright=black lusl=3 wusl=2 pright=rl;
  11.         histogram x/ normal(mu=est sigma=est color=black) outfit=outfit endpoints=14.05 to 16.15 by 0.3 barlabel=count cfill=white;
  12.         cdfplot x/ normal(mu=est sigma=est);
  13. run;

  14. proc print data=outfit;run;
复制代码
  1. 1    data ball;
  2. 2    input x @@;
  3. 3    cards;

  4. NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
  5. NOTE: The data set WORK.BALL has 50 observations and 1 variables.
  6. NOTE: DATA statement used (Total process time):
  7.       real time           0.14 seconds
  8.       cpu time            0.03 seconds


  9. 8    ;
  10. 9    proc capability data=ball vardef=n;
  11. 10   spec lsl=14.35 cleft=yellow llsl=2 target=15.1 pleft=red ltarget=1
  12. 11   usl=15.85 cright=black lusl=3 wusl=2 pright=rl;
  13. 12   histogram x/ normal(mu=est sigma=est color=black) outfit=outfit
  14. 13   endpoints=14.05 to 16.15 by 0.3 barlabel=count cfill=white;
  15. 14   cdfplot x/ normal(mu=est sigma=est);
  16. 15   run;

  17. WARNING: Confidence intervals for capability indices are not computed when the value of VARDEF= is
  18.          not DF.
  19. NOTE: Processing beginning for variable x.
  20. NOTE: Processing HISTOGRAM statement number 1.
  21. NOTE: Foreground color WHITE same as background. Part of your graph might not be visible.
  22. NOTE: Processing CDFPLOT statement number 1.
  23. NOTE: There were 50 observations read from the data set WORK.BALL.
  24. NOTE: The data set WORK.OUTFIT has 1 observations and 27 variables.
  25. NOTE: PROCEDURE CAPABILITY used (Total process time):
  26.       real time           1.25 seconds
  27.       cpu time            0.50 seconds


  28. 16   proc print data=outfit; run;

  29. NOTE: There were 1 observations read from the data set WORK.OUTFIT.
  30. NOTE: PROCEDURE PRINT used (Total process time):
  31.       real time           0.01 seconds
  32.       cpu time            0.01 seconds



  33. NOTE: Foreground color WHITE same as background. Part of your graph might not be visible.
复制代码

报纸
猴子456 发表于 2015-8-15 19:55:49
真的哎,谢谢帮助

地板
1101390 发表于 2015-8-16 03:57:33
顶一发

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

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