I am continually having problem with the results with asdoc in a table 3 way, example:
Code:
sysuse auto
gen rbi=rbinomial(1,.5)
asdoc table rep78 foreign rbi, c(count mpg) sc col row
------------------------------------------------------------------------
Repair | rbi and Car type
Record | ------------- 0 ------------ ------------- 1 ------------
1978 | Domestic Foreign Total Domestic Foreign Total
----------+-------------------------------------------------------------
1 | . . . 2 . 2
2 | 2 . 2 6 . 6
3 | 9 2 11 18 1 19
4 | 7 4 11 2 5 7
5 | 2 5 7 . 4 4
|
Total | 20 11 31 28 10 38
------------------------------------------------------------------------Array
You can chek that total not agree with stata results.
0 Response to Problem with asdoc table 3 way
Post a Comment