全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3150 3
2022-04-29
data gasbath;
input t p1 @@;
y=p1;
cards;
0 0
1 1.17
2 1.95
4 3.90
6 6.28
8 9.84
10 15.60
12 23.35
16 35.80
20 42.45
24 46.54
30 52.64
36 56.36
42 58.74
48 60.88
54 62.18
60 63.73
66 64.93
72 65.15
80 65.33
88 65.50
96 65.65
104 65.70
112 65.75
120 65.75;
proc nlin iter=50 method=dud;
parms B=80 c=0.05 lag=2;
model y=B*(1-exp(-c*(t-lag)));
output out=points predicted=yhat residual=yres parms=B c lag;
proc print data=points;
run;
以上需要运行的程序,
1    data gasbath;
2    input t p1 @@;
3    y=p1;
4    cards;

NOTE: 在第 29 行、第 5-11 列中有对“p1”无效的数据。
RULE:      ----+----1----+----2----+----3----+----4----+----5----+----6
29         120 65.75;
t=120 p1=. y=. _ERROR_=1 _N_=25
NOTE: INPUT 语句到达一行的末尾,SAS 已转到新的一行。
NOTE: 数据集 WORK.GASBATH 有 25 个观测和 3 个变量。
NOTE: “DATA 语句”所用时间(总处理时间):
      实际时间          0.03 秒
      CPU 时间          0.01 秒


NOTE: 正在写入 HTML Body(主体)文件: sashtml.htm
30   proc nlin iter=50 method=dud;
31   parms B=80 c=0.05 lag=2;
32   model y=B*(1-exp(-c*(t-lag)));
33   output out=points predicted=yhat residual=yres parms=B c lag;

NOTE: The DUD method is no longer supported, switching to the GAUSS
      method.
NOTE: DER.B not initialized or missing. It will be computed
      automatically.
NOTE: DER.c not initialized or missing. It will be computed
      automatically.
NOTE: DER.lag not initialized or missing. It will be computed
      automatically.
ERROR: The variable (1 was referenced but not given a value.
ERROR: The variable exp( was referenced but not given a value.
ERROR: The variable (t was referenced but not given a value.
ERROR: The variable lag))) was referenced but not given a value.
WARNING: Model does not depend on parameter lag. It will be dropped
         from the estimation.
NOTE: The parameters were assigned the following names in the output
      data set ( parameter = data set variable ):
B = B
c = c
WARNING: Zero observations could be evaluated.
NOTE: 数据集 WORK.POINTS 有 0 个观测和 7 个变量。
NOTE: “PROCEDURE NLIN”所用时间(总处理时间):
      实际时间          0.64 秒
      CPU 时间          0.43 秒


34   proc print data=points;
35   run;

NOTE: 数据集 WORK.POINTS 中没有观测。
NOTE: “PROCEDURE PRINT”所用时间(总处理时间):
      实际时间          0.00 秒
      CPU 时间          0.00 秒
运行后提示以上错误,求助大神帮助查找原因。


二维码

扫码加我 拉你入群

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

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

全部回复
2022-4-30 21:04:21
qwz166 发表于 2022-4-29 16:18
data gasbath;
input t p1 @@;
y=p1;
在他那里最后那个分号放在新的1号。
二维码

扫码加我 拉你入群

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

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

2022-4-30 21:04:53
qwz166 发表于 2022-4-29 16:18
data gasbath;
input t p1 @@;
y=p1;
datalines 最后面那个封号。,放在新的一行
二维码

扫码加我 拉你入群

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

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

2022-5-1 10:56:53
shxmer 发表于 2022-4-30 21:04
datalines 最后面那个封号。,放在新的一行
谢谢 除了这个错误外 还是一样提示这样的错误ERROR: The variable (1 was referenced but not given a value.
ERROR: The variable exp( was referenced but not given a value.
ERROR: The variable (t was referenced but not given a value.
ERROR: The variable lag))) was referenced but not given a value.
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群