|
Chapter Contents |
Previous |
Next |
| Language Reference |
The matrix table must conform in size to the contingency table as specified in dim. In particular, if table is n ×m, the product of the entries in dim must equal nm. Furthermore, there must be some integer k such that the product of the first k entries in dim equals m. If you specify initab, then it must be the same size as table.
For example, consider the no-three-factor-effect model for interpreting Bartlett's data as described in Bishop, Fienberg, and Holland (1975):
dim={2 2 2};
table={156 84 84 156,
107 133 31 209};
config={1 1 2,
2 3 3};
call ipf(fit,status,dim,table,config);
The result is
FIT
161.062 78.938 78.907 161.093
101.905 138.095 36.119 203.881
STATUS
0 .166966 4
Equivalent results are obtained by the statement
table={156 84,
84 156,
107 133,
31 209};
or the statement
table={156 84 84 156 107 133 31 209};
In the first specification, TABLE is interpreted as
variable 2: 1 2
_________ _________
variable 3 variable 1: 1 2 1 2
_________________________________________________________________
1 156 84 84 156
2 107 133 31 209
In the second specification, TABLE is interpreted as
variable 3 variable 2 variable 1: 1 2
__________________________________________________________________
1 1 156 84
2 84 156
2 1 107 133
2 31 209
And in the third specification, TABLE is interpreted as
variable 3: 1 2
________________________ _________________________
variable 2: 1 2 1 2
__________ __________ ___________ ___________
variable 1: 1 2 1 2 1 2 1 2
_______________________________________________________
156 84 84 156 107 133 31 209 .
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.