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
Question: how to count occurrence with Regex groupedDear all! I want to count the occourences of a variable based on a regex expression - counted by a …
Interpretation coefficient Latent profile analysis with a mixture of continuous and dummy variablesDear Stata users, I am running a Latent profile analysis using a mixture of continuous and dummy var…
How to replicate this simple (Bayesian) calculation in Stata Dear Forum Members, I came a cross a quite simple example of Bayesian analysis (from the book Thin…
To replicate Gabaix and Landier (2007 OJE)Hi Now I replicate Gabaix and Landier (2007 OJE). What they did is to run the following regression …
replace values: type mismatchDear, I am trying to replace all my "n.a." values into zeroes for my variable c20_28. However, when…
Subscribe to:
Post Comments (Atom)
0 Response to market participations
Post a Comment