作者Jeremy101 (Yes Man)
看板Statistics
标题[程式] 该如何两条方程式求解相同参数
时间Fri Apr 29 12:39:04 2016
[程式] sas
[问题]
问题如连结
https://drive.google.com/file/d/0B4ZnW9zxaCloM2l4VGU3TEo3MnM/view?usp=sharing
我学习sas的nlmixed:
/*eq1*/
proc nlmixed data=combine maxiter=1000;
parms b0=0 b1=0 b2=0 s2u=0;
xb=b0+b1*tc1+b2*inc
mu = exp (xb);
model times ~ normal(mu, s2u);
RUN;
/*eq2*/
proc nlmixed data=combine maxiter=1000;
parms b0=0 b1=0 b2=0 b3=0 s2e=0;
xb2 = (log (exp(b0+b1*tc1+b3*inc)+((1+exp(b0+b1*tc1+b2*qa+b3*inc))*(exp(qa)))));
model q26_1 ~ normal(xb2,s2e);
RUN;
一直失败,
该如何让两条方程式求解相同参数?
--
Sent from my Windows
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 120.126.139.107
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Statistics/M.1461904748.A.2D5.html