Dear All,
please, consider the following example:.
which produces:
please, consider the following example:.
Code:
clear all version 15 input x y s 1 1 100 1 2 120 1 3 140 2 1 50 2 3 100 3 2 100 3 3 170 4 1 50 6 2 70 6 3 100 end table x y, c(sum s) row col missing
Code:
--------------------------------------
| y
x | 1 2 3 Total
----------+---------------------------
1 | 100 120 140 360
2 | 50 . 100 150
3 | . 100 170 270
4 | 50 . . 50
6 | . 70 100 170
|
Total | 200 290 510 1000
--------------------------------------
- Due to the nature of the table I'd much rather see zeroes instead of dots in the output, for example for (x=6;y=1) and other pairs not mentioned in the input. Is there any way to convince standard table command to produce such an output?
- It is also desirable to have table understand that line for x=5 is all missing, and have it will all zeroes, including the total. Is there any way to again convince table to maintain continuity? or adding zeroes into the data to fill in the gaps is the only way?

Comment