Hi,
I have these variables in a database: exporter / importer / productcode / milk
milk is the value of imports of product i from country k to country l
How can I calculate these shares using Stata:
- The market share of country k (exporter) in product i in market l (importer): ailk = milk / sumk (milk)
- The product i share of country l total imports: bil = sumk (milk) / sumi sumk (milk)
- The country l share of world imports: cl = sumk sumi (milk) / sumk suml sumi (milk)
Thanks!!
Related Posts with market participations
Saving file name as local valueDear Stata Professionals I am currently suffering from saving file name as local value The code I …
Interpreting psgraph ftaer psmatch2I am employing propensity score matching using community-contributed psmatch2 command. To check for …
Reshaping data to SUR formDear Everybody I'm trying to run a SUR regression and need to reshape my data accordingly. The data…
Identify All Values in One Variable that Satisfies a ConditionHi Statalist members, I encounter a difficulty in identifying values in one variable that satisfies…
How do I replace a certain value across a dataset that has string as well as numeric variables?Hi everyone, I'm working with a dataset that has hundreds of variables, numeric as well as strings.…
Subscribe to:
Post Comments (Atom)
0 Response to market participations
Post a Comment