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
ivreg2h: generated instrumentsDear All, I am using the ivreg2h user-written routine, which implements the procedure in Lewbel (20…
Putpdf text printing unrounded numbers from a rounded variableHello, I am using FRED data to create a pdf report of unemployment information. The goal is to have…
Delete-one-node jackknife variance estimatorDear colleagues, using a dataset on bilateral trade (i.e. country g exports to h leading to the nod…
dependent variable "a percentage" and independent variables are in millions !hi, i have panel data "micro panel" i used "gmm method" without unifying variables, the dependent…
Replacing a data variable if data falls within a date rangeI have some data that was misclassified for a certain date range and would like to change using Stat…
Subscribe to:
Post Comments (Atom)
0 Response to Create a table with sectoral share values
Post a Comment