24小时热门版块排行榜    

查看: 1411  |  回复: 0

arc2360

金虫 (小有名气)

[求助] 求助检查一个简单SAS编程(将两条曲线放一个图形中)

求大师帮忙看下面程序,前面是两条非线性曲线的拟合,后面想把两条曲线放一个图中,但程序运行后没有显示,求助求助,谢谢!!
Data L1; input t y @@; cards;                                                                                                                      0 3.804 24 3.877 48 3.930 72 5.01 96 5.959 120 5.813 144 6.55 168 7.094 192 7.587 216 6.8 240 6.82 264 7.084 288 7.065                                                        
;
Proc nlin method=Marquardt;                                                                  
Parms Y0=3 to 4 by 0.05  Ymax=6.5 to 7.5 by 0.1  u=0.01 to 0.05 by 0.005  M=100 to 150 by 5;                                            
Temp=exp(-u*(t-M));                                                               
model y=Y0+(Ymax-Y0) * exp(-exp(-u * (t-M)));            
der.Y0=1-exp(-temp);                                                                                       
der.Ymax=exp(-temp);                                                                                         
der.u=(Ymax-Y0) * exp(-temp) * (t-M) * temp;                           
der.M=(Ymax-Y0) * exp(-temp) * u * (-temp);                           
output out=expout p=py1;                                                              
run;   
Data L1; input t y @@; cards;                                                                                                                      0 3.804 24 3.877 48 3.930 72 5.01 96 5.959 120 5.813 144 6.55 168 7.094 192 7.587 216 6.8 240 6.82 264 7.084 288 7.065                                    
;                                                                                                                                                                                                                             
Proc nlin method= Marquardt;                                            
Parms Y0=3 to 4 by 0.05  Ymax=6.5 to 7.5 by 0.1  u=0.01 to 0.05 by 0.005  M=55 to 85 by 5;                     
Temp=exp(-u*(t-M));                                             
model y=Y0+(Ymax-Y0)/(1+exp(-u * (t-M)));                        
der.Y0=1-1/(1+temp);                              
der.Ymax=1/(1+temp);                    
der.u=(Ymax-Y0) * temp * (t-M)/((1+temp)*(1+temp));         
der.M=-(Ymax-Y0) * u * temp/((1+temp)*(1+temp));   
output out=expout p=py2;      
run;            
goptions reset=global gunit=pct cback=white border     
htitle=6 htext=3  ftext=swissb colors=(back);                                               
proc gplot data=expout;                                                                    
plot y*t py1*t  py2*t /haxis=axis1 vaxis=axis2  overlay;                  
symbol1 i=none v=plus cv=red h=2.5 w=2;                       
symbol2 i=join v=none l=1 h=2.5 w=2;                                    
axis1 order=0 to 300 by 20;                                                                     
axis2 order=3 to 8 by 0.5;                                                              
title1 'y=Y0+(Ymax-Y0)*exp(-exp(-u*(t-M)))' ;                       
title2 ' y=Y0+(Ymax-Y0)/(1+exp(-u * (t-M)))' ;                                                      
title3 'proc nlin method= Levenberg-Marquardt ';                             
run;

[ Last edited by arc2360 on 2012-3-21 at 21:51 ]
回复此楼
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

相关版块跳转 我要订阅楼主 arc2360 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 综述论文作为代表作会不会影响评审专家的印象分? +11 yufeiwaner 2026-08-09 12/600 2026-08-12 01:27 by 南京中西医
[基金申请] 奇怪,两个人的filecode固定段从头到尾一模一样 +7 布布和一二 2026-08-10 9/450 2026-08-11 22:12 by 医学老男孩
[硕博家园] 读博的好处 +3 lnee 2026-08-11 3/150 2026-08-11 18:10 by 希望我好好的
[基金申请] 什么时候出结果,有咨询渠道??? +3 Tide man 2026-08-11 3/150 2026-08-11 17:54 by kudofaye
[基金申请] FileCode能看出啥? +7 要乐观耀哥 2026-08-10 17/850 2026-08-11 10:50 by 要乐观耀哥
[基金申请] 关于代码变化问题,想知道的进来 +17 且听虎啸 2026-08-07 24/1200 2026-08-10 18:35 by zhangduo2008
[基金申请] 静等基金结果 +5 gjjjzhong 2026-08-10 16/800 2026-08-10 17:19 by Tide man
[基金申请] 关于Filecode分析方法 +3 majunge000 2026-08-10 3/150 2026-08-10 15:46 by lch2012
[基金申请] 国自然结果 +4 Vierhys 2026-08-10 8/400 2026-08-10 15:06 by Vierhys
[基金申请] 据悉今年马上要出结果了 +7 瞬息宇宙 2026-08-10 8/400 2026-08-10 12:42 by Vivilian
[基金申请] 2026国自然放榜时间 +9 布布和一二 2026-08-08 9/450 2026-08-10 11:22 by xxxx2020
[基金申请] 面上项目filecode邪修 +5 西山十月 2026-08-09 7/350 2026-08-10 07:32 by 仁砚薪传
[基金申请] filecode与中标关系的预测 +5 布布和一二 2026-08-07 5/250 2026-08-09 16:15 by 袁向阳007
[基金申请] fileCode有新解读? +10 Tide man 2026-08-08 18/900 2026-08-09 12:55 by 仁砚薪传
[基金申请] 关于filecode,很负责任的告诉大家 +6 爱看书的可乐 2026-08-08 7/350 2026-08-08 22:13 by a_niu
[基金申请] 关于豆爷回答的JTJC与%2F数量 +5 yang182083 2026-08-06 7/350 2026-08-08 18:29 by zhanghaozhu
[基金申请] 国基金的申报应该改成非等额制,评价高的钱多评价低的钱少,但是增加资助率 +7 a089 2026-08-07 7/350 2026-08-08 18:05 by gltch
[基金申请] filecode +14 等待解的谜 2026-08-06 19/950 2026-08-07 12:20 by wlwhappy
[基金申请] 影响面上的因素 +8 布布和一二 2026-08-05 11/550 2026-08-06 10:41 by 宝贝虫子
[基金申请] 好消息?这个有何含义??? +8 Tide man 2026-08-05 10/500 2026-08-05 16:14 by xmuxiaoyu
信息提示
请填处理意见