Hi, I developed a nonlinear mixed-effects model using nlmixed procedure. But, I do not know how to apply this model to test data (unseen data in modeling). I tried OUTmodel and INmodel options, but I failed to run the model. Could you help me please? data capboy; input boy dbh N G hmak dmak plot; datalines; 10.1 35 725 23.50 11.2 35 1 10.6 21 725 23.50 11.2 35 1 ... more lines ; data testdata; input boy dbh N G hmak dmak plot; datalines; 19 28 450 24.25 20 53 5 16.3 32 450 24.25 20 53 5 ... more lines ; proc nlmixed data=capboy ; parms b1=54.021 b2=-12.521 b3=5.445 b4=1.911 b5=0.0699 s2u=0 s2e=1; mdl=1.3 + (((b1 + b2*(dbh/hmak)))/(1 + (((b3 + b4*dmak/hmak))*exp( - (b5+u)*dbh)))); model boy ~ normal(mdl,s2e) OUTmodel=deneme; random u ~ normal(0,s2u) subject=plot out=rp; predict mdl out=tahmin; run; proc nlmixed INmodel=deneme; score data=testdata fitstat; run;
... View more