graph combine to work with meta forest without having to move everything to the user-written metan suite.
-
Login or Register
- Log in with
sysuse auto, clear collect clear table (foreign), nformat(%3.2f ) stat(percent) stat( mean weight) nototals name(c1) table (rep78), nformat(%3.2f ) stat(percent) stat( mean weight) nototals name(c2) collect combine all= c1 c2 collect levelsof across collect layout (`s(levels)') (var#result)
. collect layout (`s(levels)') (var#result)
(dimension _hide not found)
Collection: all
Rows: _hide foreign rep78
Columns: var#result
Table 1: 9 x 2
---------------------------------------------
| Weight (lbs.) Percent
| Mean
-------------------+-------------------------
Car origin |
Domestic | 3317.12 70.27
Foreign | 2315.91 29.73
Repair record 1978 |
1 | 3100.00 2.90
2 | 3353.75 11.59
3 | 3299.00 43.48
4 | 2870.00 26.09
5 | 2322.73 15.94
---------------------------------------------
collect : table (foreign), nformat(%3.2f ) stat(percent) stat( mean weight) nototals
collect : table (rep78), nformat(%3.2f ) stat(percent) stat( mean weight) nototals append
collect layout (foreign rep78)(result)
Rows: foreign rep78
Columns: result
Table 1: 9 x 2
---------------------------------------
| Percent Mean
-------------------+-------------------
Car origin |
Domestic | 70.27 3317.12
Foreign | 29.73 2315.91
Repair record 1978 |
1 | 2.90 3100.00
2 | 11.59 3353.75
3 | 43.48 3299.00
4 | 26.09 2870.00
5 | 15.94 2322.73
---------------------------------------
Comment