肉肠 发表于 2013-9-5 11:54 
把你用的code发出来,完整一点,最好把数据也附过来
用不同的package做法也不太一样,而且具体操作也取 ...
谢谢了,麻烦了,下面这数据和我要分析的差不多,就是向要比较一般非线性模型和混合模型的拟合效果,d是自变量,h是因变量
data nlin;
input h d;
cards;
7.8 6
6.4 6
4.2 6
5.5 6
9.5 6
8.8 8
9.5 8
5.6 8
7.8 8
8 8
10.8 10
12 10
10.5 10
11 10
15.8 10
11.2 10
;
run;
proc sort data=nlin;
by d;
run;
proc boxplot data=e.jianyang;
plot h*d;
goptions hsize=4 vsize=4;
run;
data nlmixed;
input h d;
cards;
6.8 6
5.4 6
6.2 6
7.5 6
5.5 6
9.8 8
9.5 8
7.6 8
8.8 8
8.4 8
11.8 10
11.9 10
10.5 10
11 10
15.8 10
11.2 10
;
run;
proc sort data=nlmixed;
by d;
run;
proc boxplot data=nlmixed;
plot h*d;
goptions hsize=4 vsize=4;
run;