标题: 请教CORRESP过程中的报错 [打印本页] 作者: shiyiming 时间: 2008-10-29 09:02 标题: 请教CORRESP过程中的报错 program like this:
data a;/*第三十章5*/
input row$ col$ freq;
cards;
A Q 1
A P 3
B Q 2
B P 1
A Q 4
A P 5
;
RUN;
proc corresp freqout;
tables row, col;
weight freq;
run;
ERROR like this;
ERROR: DIMENS=2 is too large for a 3 by 2 contingency table.
What can I do when this error happen?作者: shiyiming 时间: 2008-10-29 15:11 标题: Re: 请教CORRESP过程中的报错 DIMENS=n
DIM=n
specifies the number of dimensions or axes to use. The default is DIMENS=2. The maximum value of the DIMENS= option in an (nr ×nc) table is nr-1 or nc-1, whichever is smaller. For example, in a table with 4 rows and 5 columns, the maximum specification is DIMENS=3. If your table has 2 rows or 2 columns, specify DIMENS=1.
so:
proc corresp data=a dimens=1;
tables row,col;
weight freq;
run;作者: shiyiming 时间: 2008-10-29 15:22 标题: Re: 请教CORRESP过程中的报错 else :
data a;/*第三十章5*/
input row$ col$ freq;
cards;
A Q 1
A P 3
B Q 2
B P 1
A Q 4
[size=150:ctlhbi3g][b:ctlhbi3g]c m 5[/b:ctlhbi3g][/size:ctlhbi3g];
RUN;
proc corresp data=a ;
tables row,col;
weight freq;
run;作者: shiyiming 时间: 2008-10-30 08:44 标题: Re: 请教CORRESP过程中的报错 Thinks for all of you.