Hi everybody,
I'm computing some poverty measures on different subpopulation.
Before I reinvent the wheel, is there a function to produce a cross tabulation output like this one (including the strings)?

                    Group1    Group2    Group3     Total
Measure1    ...                ....            .....            ....
Measure2    ....                ....            .....            ....
Measure3

I did test the following script but I'm not satisfied with the output:

printf "1. Headcount index  : %g\n, %g\n, %g\n", my_data[1,1],my_data[1,2],my_data[1,3]
printf "2. Poverty-gap : %g\n, %g\n, %g\n", my_data[2,1],my_data[2,2],my_data[2,3]
printf "3. Sq poverty-gap : %g\n, %g\n, %g\n", my_data[3,1],my_data[3,2],my_data[3,3]
printf "4. Mean income : %g\n, %g\n, %g\n", my_data[4,1],my_data[4,2],my_data[4,3]


Best,
Artur