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
Changing the order of bars in a box plotHi! I want to make a box plot of distribution of 6 different scores (score 1-6) by a grouping varia…
Mediation Bootstrap resultsDear all, I am running a mediation in Stata and I am getting significant effects of the mediator an…
Make a new group variable of a variableHi! I probably got a simple problem. Let us say I got a variable, called States, with numbers from …
egen command not workingMy egen and count command is not working although I tried it with ssc install egen but it's still no…
Find old ROE for EXECID commandsHello, Thank you in advance for helping. I am new to Stata. I am replicating a study and therefore…
Subscribe to:
Post Comments (Atom)
0 Response to market participations
Post a Comment