Hello Sir,

I want to write ado files to modify "tab" command so that I can get the desired output pattern.

To illustrate,

for bivariate analysis, I want instead of showing a table for each variable Stata will provide one table for all variables where there will be a column for the variable name, another column will show the category, a column will show frequencies, and a column will present p-value (instead of reporting below). How can I do this? Can anyone help?