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 秒
运行后提示以上错误,求助大神帮助查找原因。