Hi!
I want to create a table for 3 groups (2 dummy variables - highly fractionalised societies and less fractionalised societies and one reference category - neither of the 2) showing the descriptive statistics for about 30 variables, say A1,A2,...A30
I want the table to look something like:

I thought of running:
sum A1 A2 A3 ... A30 if high_frac == 1
return list
est sto tab1_col1
sum A1 A2 A3 ... A30 if low_frac == 1
return list
est sto tab1_col2
sum A1 A2 A3 ... A30 if high_frac == 0 & low_frac == 0
return list
est sto tab1_col3
esttab tab1_col* using Table1.rtf, replace label N(0) b(3) se(3)
But the problem is that return list returns the mean and standard deviation values only for the last 5 variables and not the first 25. In addition:
1. I want to rename rows A1,A2. etc. to some other name
2. I want to include the titles - Highly fractionalised, Low fractionalised and Reference societies in place of columns 1,2 & 3 respectively and include 3 sub-columns - Obs, Mean and Standard deviation under each of the columns.
Could you please help?
Thanks in advance for your time!
I want to create a table for 3 groups (2 dummy variables - highly fractionalised societies and less fractionalised societies and one reference category - neither of the 2) showing the descriptive statistics for about 30 variables, say A1,A2,...A30
I want the table to look something like:
I thought of running:
sum A1 A2 A3 ... A30 if high_frac == 1
return list
est sto tab1_col1
sum A1 A2 A3 ... A30 if low_frac == 1
return list
est sto tab1_col2
sum A1 A2 A3 ... A30 if high_frac == 0 & low_frac == 0
return list
est sto tab1_col3
esttab tab1_col* using Table1.rtf, replace label N(0) b(3) se(3)
But the problem is that return list returns the mean and standard deviation values only for the last 5 variables and not the first 25. In addition:
1. I want to rename rows A1,A2. etc. to some other name
2. I want to include the titles - Highly fractionalised, Low fractionalised and Reference societies in place of columns 1,2 & 3 respectively and include 3 sub-columns - Obs, Mean and Standard deviation under each of the columns.
Could you please help?
Thanks in advance for your time!
Comment