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
Importing SAS data into StataI am trying to import SAS data into STATA using import wizard in the menu but few of the columns are…
Want Missing+Nonmissing= MissingHello Stata users, I am using bysort egen total() and want to know if there is any way I can make m…
Compare sum of coefficients across different regression subsamplesDear Statalisters I have looked through previous posts on suest on tests related to two coefficients…
Y-Var shows trend - how to deal with it?Hello dear community, I use the following regression model of an article in JFE, this is the exact …
Command for computing effect size for paired/dependent samples t-testHello, I am trying to run some code for computing as effect size for paired sample t tests. It will…
Subscribe to:
Post Comments (Atom)
0 Response to market participations
Post a Comment