Dear Statalists, I am again in need of you.
I have a series of observations for some variables for four categories. The following is a sample of my data
I am trying to summarize the mean values of these variables (in the data example I show only assets_s liabilities_s networth_s), and I use the following code, that does what I need:
I now need to export the outcome of the following table into latex, any suggestion?
Many thanks,
Alessandro
I have a series of observations for some variables for four categories. The following is a sample of my data
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long category float(date assets_s liabilities_s networth_s) 1 176 6.8 30.3 2.4 1 177 6.9 30 2.5 1 178 6.9 30 2.5 1 179 6.9 30.4 2.4 1 180 6.9 31.1 2.3 1 181 6.9 31.5 2.2 1 182 7 32.1 2.2 1 183 7.1 32.5 2.3 1 184 7.1 32.7 2.2 1 185 7.3 33.2 2.2 1 186 7.4 33.7 2.1 1 187 7.4 34 2.2 1 188 7.5 34.2 2.2 1 189 7.5 34.5 2.1 1 190 7.5 35.1 1.9 1 191 7.5 35.3 1.7 1 192 7.7 35.4 1.7 2 176 36.6 46.7 34.8 2 177 36.6 46.7 34.6 2 178 36.2 46.9 34.2 2 179 36.1 46.3 34.2 2 180 35.9 45.9 34 2 181 35.7 45.4 33.8 2 182 35.5 44.9 33.7 2 183 35.4 44.5 33.7 2 184 34.5 44 32.7 2 185 34.4 43.5 32.6 2 186 34.3 43 32.5 2 187 34.1 42.6 32.4 2 188 33.3 42.3 31.5 2 189 32.9 41.9 31.1 2 190 32.8 41.5 31 2 191 32.9 41.3 31.2 2 192 32.7 41 30.9 3 176 32.6 16.9 35.5 3 177 32.7 17.1 35.7 3 178 32.8 17.1 35.8 3 179 32.7 17.5 35.6 3 180 32.7 17.4 35.6 3 181 32.7 17.5 35.6 3 182 32.7 17.6 35.5 3 183 32.6 17.8 35.5 3 184 33 18.2 35.8 3 185 33.2 18.3 36.2 3 186 33.3 18.4 36.3 3 187 33.3 18.6 36.3 3 188 33.8 18.8 36.8 3 189 34.2 19.1 37.3 3 190 34.5 19 37.6 3 191 34.6 19 37.9 3 192 34.9 19.1 38.4 4 176 24 6.1 27.3 4 177 23.9 6.1 27.2 4 178 24.1 6.1 27.5 4 179 24.3 5.8 27.9 4 180 24.5 5.7 28 4 181 24.7 5.5 28.3 4 182 24.8 5.4 28.5 4 183 24.8 5.3 28.6 4 184 25.3 5.1 29.2 4 185 25.1 5.1 29 4 186 25 4.9 29 4 187 25.2 4.8 29.2 4 188 25.4 4.7 29.5 4 189 25.3 4.5 29.5 4 190 25.3 4.4 29.5 4 191 24.9 4.4 29.2 4 192 24.7 4.4 29.1 end format %tq date label values category category_temporary label def category_temporary 1 "Bottom50", modify label def category_temporary 2 "Next40", modify label def category_temporary 3 "Next9", modify label def category_temporary 4 "Top1", modify
I am trying to summarize the mean values of these variables (in the data example I show only assets_s liabilities_s networth_s), and I use the following code, that does what I need:
Code:
estpost tabstat assets_s liabilities_s networth_s, by(category) stat(mean) nototal Summary statistics: Mean for variables: assets_s liabilities_s networth_s by categories of: category category | e(asset~) e(liabi~) e(netwo~) -------------+--------------------------------- Bottom50 | 7.194118 32.70588 2.182353 Next40 | 34.7 44.02353 32.87647 Next9 | 33.31176 18.08235 36.31765 Top1 | 24.78235 5.194118 28.61765
Many thanks,
Alessandro
Comment