原程序如下
data dat1;
input x1 x2;
cards;
9.9 7.9
11.2 8.9
9.4 8.5
8.4 9.4
14.8 12
12.4 11.5
13.1 14.5
13.4 12.3
11.2 9.2
9.5 11
10.7 8.3
9.2 8.5
;
proc reg;
model x2=x1/p;
output out=r r=res;
proc univariate normal;
var x1 res;
RUN;
去掉"/p"后程序如下
data dat1;
input x1 x2;
cards;
9.9 7.9
11.2 8.9
9.4 8.5
8.4 9.4
14.8 12
12.4 11.5
13.1 14.5
13.4 12.3
11.2 9.2
9.5 11
10.7 8.3
9.2 8.5
;
proc reg;
model x2=x1;
output out=r r=res;
proc univariate normal;
var x1 res;
RUN;
运行后两程序之间貌似结果一样,所以就对“model x2=x1/p” 中的 “/p”的作用很疑惑。另外“/” 具体代表什么意思,望解答。谢谢!



雷达卡




京公网安备 11010802022788号







