Hi all
I Wonder if its possible get name labels variables from tabulate or tabstat to export to matrix.
I did try with below example but lamentably i had half success: tabulate dont show labels variable names and tabstat dont show results like a 2x2 cross tabulation:
Any suggestion I would grateful
I Wonder if its possible get name labels variables from tabulate or tabstat to export to matrix.
I did try with below example but lamentably i had half success: tabulate dont show labels variable names and tabstat dont show results like a 2x2 cross tabulation:
Code:
sysuse auto, clear tab make rep78 in 1/5, matcell(x) | Repair Record 1978 Make and Model | 3 4 | Total -------------------+----------------------+---------- AMC Concord | 1 0 | 1 AMC Pacer | 1 0 | 1 Buick Century | 1 0 | 1 Buick Electra | 0 1 | 1 -------------------+----------------------+---------- Total | 3 1 | 4 mat list x x[4,2] c1 c2 r1 1 0 r2 1 0 r3 1 0 r4 0 1 tabstat rep78 in 1/5, by(make) s(count) save make | N -----------------+---------- AMC Concord | 1 AMC Pacer | 1 AMC Spirit | 0 Buick Century | 1 Buick Electra | 1 -----------------+---------- Total | 4 ---------------------------- tabstatmat mpgstat tabstatmat mpgstat, nototal rep78 AMC Concord:N 1 AMC Pacer:N 1 AMC Spirit:N 0 Buick Century:N 1 Buick Electra:N 1
Comment