经管之家送您一份
应届毕业生专属福利!
求职就业群
感谢您参与论坛问题回答
经管之家送您两个论坛币!
+2 论坛币
<p>最近正在学proc nlmixed 处理panel data,遇到下述例子,请问高手:parms的设置有什么依据,或者说怎样设置?</p><p>1.</p><p>options ls=80 ps=60;data one; infile 'isjall.dat';<br/>input country gender bigvtlim jp average unemrate westeur<br/>postcom centeur easteur medvoc seceduc thdeduc;</p><p>proc nlmixed;<br/>parms gamma00=2.5 gamma01=0.5 gamma10=0.5 gamma11=0.1<br/>su02=1 su12=1 cu12=0.5 beta3=0.5 beta4=0.5;<br/>beta0=gamma00+gamma01*unemrate+u0;<br/>beta1=gamma10+gamma11*unemrate+u1;<br/>eta=beta0+beta1*gender+beta2*medvoc+beta3*seceduc+beta4*thdeduc;<br/>expeta=exp(eta);<br/>p=expeta/(1+expeta);<br/>model bigvtlim ~ binary(p);<br/>random u0 u1 ~ normal([0,0],[su02,cu12,su12]) subject=country;<br/>run;</p><p>2</p><p>proc nlmixed data=foxngeese1 maxiter=1000;<br/> title2 'Model A: Unconditional logistic growth trajectory';<br/> parms G00=12 G10=.1 s2e=20 s2u0=.3 cu10=0 s2u1=.01;<br/> num = 19;<br/> den = 1 + G00*(exp(-(G10*GAME +u0 +u1*GAME)));<br/> model NMOVES ~ normal(1+num/den,s2e);<br/> random u0 u1 ~ normal([0,0],[s2u0,cu10,s2u1]) subject=id;<br/>run;</p><p>3</p><p>proc nlmixed data=foxngeese1 maxiter=1000;<br/> title2 'Model B: Effect of READing scores on 'intercept' and 'slope'';<br/> parms G00=12 G10=.12 G01=-.4 G11=.04 s2e=14 s2u0=.5 cu10=0 s2u1=.01;<br/> num = 19;<br/> den = 1 + G00*(exp(-(G01*READ + G10*GAME +G11*READGAME +u0 +u1*GAME)));<br/> model NMOVES ~ normal(1+num/den,s2e);<br/> random u0 u1 ~ normal([0,0],[s2u0,cu10,s2u1]) subject=id;<br/>run;</p><p>多谢救危!!!!!</p><p></p><p></p>
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
|