Dear all,
I am currently working with a dataset that contains information on quarterly gross value added of different economic sectors for several countries. I calculated the sectoral shares of gross value added for each country. Now I am trying to create a table that displays the the sum of gross value added for each country and the shares of the respective sector. I have no experience with creating tables in Stata. What I tried is the tabulate function with country and sector. It shows me the number of observations, but what I am trying to show is the observation value, as well as the sectoral share of the sum of all values.
Does anyone have an advice what I can do to get my desired outcome?
I would highly appreciate any kind of help. Thank you in advance!
. tabulate country sector
| Sector
Country | AGR CON IND SER | Total
-----------+--------------------------------------------+----------
DEU | 10 10 10 10 | 40
ESP | 10 10 10 10 | 40
FRA | 10 10 10 10 | 40
ITA | 10 10 10 10 | 40
-----------+--------------------------------------------+----------
Total | 40 40 40 40 | 160
Related Posts with Create a table with sectoral share values
Saving pointer matrixes using -mata matsave-I am relatively new to the use of pointers in Mata and have thusfar been impressed with their utilit…
Merge data1 to data2 between certain datesDear Stata Users, I need to merge data1 to data2 such that data1 is merged to data2 between two dat…
Help with a problem setStarted using Stata in my Quantitative Methods course, previous statistics course used R and Rstudio…
How to get Pseudo R2 for Heckman two stage model?Stata does not provide Pseudo R2 when I run hackman two stage model, could anyone help me how to gen…
Finding out the reason for collinearityThis sounds very dumb actually. But I tried to control for treatment type (T1, T2, and T3) in the re…
Subscribe to:
Post Comments (Atom)
0 Response to Create a table with sectoral share values
Post a Comment