楼主: iamlele
1786 8

新手请教大家个问题 [推广有奖]

  • 0关注
  • 0粉丝

学前班

70%

还不是VIP/贵宾

-

威望
0
论坛币
12 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
84 点
帖子
3
精华
0
在线时间
1 小时
注册时间
2009-1-13
最后登录
2014-5-6

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
data two;
input x y @@;
cards;
13 3.54 11 3.01 9 3.09 6 2.48 8 2.56 10 3.36 12 3.18 7 2.65
;
proc reg;
model y=x / stb p cli clm;
run;

哪有问题啊?
总是出不来结果。

提示我
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
NOTE: The data set WORK.TWO has 8 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

291  ;
292  proc reg;
293  model y=x / stb p cli clm;
294  run;
ERROR: =
二维码

扫码加我 拉你入群

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

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

关键词:observations observation statement Variables Statemen

沙发
虾皮 发表于 2010-3-22 20:19:19 |只看作者 |坛友微信交流群
什陌东东?程序/

使用道具

藤椅
rose214 发表于 2010-3-22 20:25:37 |只看作者 |坛友微信交流群
26   data two;
27   input x y @@;
28   cards;
NOTE: INPUT 语句到达一行的末尾,SAS 已转到新的一行。
NOTE: 数据集 WORK.TWO 有 8 个观测和 2 个变量。
NOTE: “DATA 语句”所用时间(总处理时间):
      实际时间         0.01 秒
      CPU 时间         0.01 秒

30   ;
31   proc reg;
32   model y=x / stb p cli clm;
33   run;
可以正常运行啊,结果见附件

QQ截图未命名.jpg (145.28 KB)

QQ截图未命名.jpg

Reg_2.rar

1009 Bytes

本附件包括:

  • Reg_2.lst

坚持就能胜利

使用道具

板凳
iamlele 发表于 2010-3-22 20:39:36 |只看作者 |坛友微信交流群
3# rose214

谢谢,但是我这运行就是不出结果啊~~真头大。
提示 最后一行是
Error: =
这是什么意思啊??

使用道具

报纸
gzjb 发表于 2010-3-22 21:49:17 |只看作者 |坛友微信交流群
1# iamlele

1. Your code works. Just a warning message " ... A new inputline". I checked data and reg are totally fine
2. If you don't need the warning messages. Using the follows code:
#. My SAS version 9.13

data two;
input x y @@;
cards;
13 3.54 11 3.01 9 3.09 6 2.48 8 2.56 10 3.36 12 3.18
7 2.65
;
run;

proc reg;
model y=x / stb p cli clm;
run;
     
quit;

使用道具

地板
淙淙_1st 发表于 2010-3-22 23:59:33 |只看作者 |坛友微信交流群
我这边运行也是可以的……

使用道具

7
s卷卷s 发表于 2010-3-23 13:29:14 |只看作者 |坛友微信交流群
这个SAS程序在运行之前需要作别的处理吗?
敲进去程序后直接点“运行”就可以出结果?

使用道具

8
Isscaliu 发表于 2010-3-23 14:36:38 |只看作者 |坛友微信交流群
10   data two;
11   input x y @@;
12   cards;

NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
NOTE: The data set WORK.TWO has 8 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds


14   ;
15   run;
16   proc reg;
17   model y=x / stb p cli clm;
18   run;

NOTE: Writing HTML Body file: sashtml1.htm
19   quit;

NOTE: PROCEDURE REG used (Total process time):
      real time           0.20 seconds
      cpu time            0.14 seconds

应该没有问题,试试其他的procedure吧?
如果也是有问题的话,那就是你的SAS安装出问题了,俺朋友也有过这问题!
It was the best of times, it was the worst of times.

使用道具

9
根筋 发表于 2010-3-23 14:37:09 |只看作者 |坛友微信交流群
sas 系统经常开玩笑!这个程序我也运算正常啊

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-28 10:02