全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2098 1
2016-12-09
大家好,我想请教一个问题,为什么我以下PROC NILN过程会说找不到初始值呢?

data aa.xt95;
input year t cpi gdp k l;
cards;
1978        1        100        3624.1        1377.9        40125
1979        2        101.9        3962.9        1446.7        41024
1980        3        109.54        4124.2        1451.5        42361
1981        4        112.28        4330.6        1408.1        43725
1982        5        114.53        4623.1        1536.9        45295
1983        6        116.82        5080.2        1716.4        46436
1984        7        119.97        5977.3        2057.7        48197
1985        8        131.13        6836.3        2582.2        49873
1986        9        139.65        7305.4        2754        51282
1987        10        149.85        7983.2        2884.3        52783
1988        11        178.02        8385.9        3086.8        54334
1989        12        210.06        8049.7        2901.5        55329
1990        13        216.57        8564.3        2975.4        64749
1991        14        223.94        9653.5        3356.8        65491
1992        15        238.27        11179.9        4044.2        66152
1993        16        273.29        12673        5487.9        66808
1994        17        339.16        13786.9        5679        67455
1995        18        397.15        14724.3        6012        68065
1996        19        430.12        15782.8        6246.5        68950
1997        20        442.16        16840.6        6436        69820
1998        21        438.62        17861.6        6736.1        70637
1999        22        432.48        18975.9        7098.9        71394
2000        23        434.21        20604.7        7510.5        72085
2001        24        437.25        22256        8567.3        73025
2002        25        433.75        24247        9764.9        73740
;RUN;proc print data=aa.xt95;run;

Proc nlin data=aa.xt95 method=marquardt;
/*method设置的是模型参数近似求解方法,SAS提供五种办法,
内设是GUASS*/
parameters a=0.80094 b=0.40197 c=0.167;/*给出参数名称并赋初值*/
Model y=c*(k**a)*(l**b);
output out=out5 p=p;
proc print data=out5;run;




日志:
362  Proc nlin data=aa.xt95 method=marquardt;
363  /*method设置的是模型参数近似求解方法,SAS提供五种办法,
364  内设是GUASS*/
365  parameters a=0.80094 b=0.40197 c=0.167;/*给出参数名称并赋初值*/
366  bounds 0<=b<=1;
367  bounds 0<=a<=1;bounds 0<=c<=1;
368  Model y=c*(k**a)*(l**b);
369  output out=out5 p=p;

NOTE: DER.a not initialized or missing. It will be computed automatically.
NOTE: DER.b not initialized or missing. It will be computed automatically.
NOTE: DER.c not initialized or missing. It will be computed automatically.
ERROR: dependent variable not on dataset.
NOTE: 由于出错,SAS 系统停止处理该步。
WARNING: 数据集 WORK.OUT5 可能不完整。该步停止时,共有 0 个观测和 0 个变量。
WARNING: 数据集 WORK.OUT5 由于该步已停止,而没有被替换。
NOTE: “PROCEDURE NLIN”所用时间(总处理时间):



求指教,成分感谢!!!谢谢谢谢

二维码

扫码加我 拉你入群

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

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

全部回复
2017-1-7 18:12:06
你数据集没有y变量吧
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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