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
New Variable for Average Value of First Half of ObservationsGood morning, I would like to generate a newvar that returns the average of the 'rating' variable, …
Using joinby to combine monthly and yearly panel datasetsHi everybody I have a quick (maby redundant) question about joinby. I have many different panel dat…
KMATCH Matching Diagnostics Tests AvailabilityI started to work with the KMATCH command for propensity score matching and I am a bit struggling wi…
collect: Manipulate rows and columns?I am trying to learn Stata's -collect- and to manipulate tables. I find the manipulating part hard. …
Inconsistency between odds ratios and marginals in growth curve modelHi all, I am attempting to study the gender gap in the life-course evolution of political interest u…
Subscribe to:
Post Comments (Atom)
0 Response to Create a table with sectoral share values
Post a Comment