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
Estimating latent class models in Stata using both categorical and continuous indicator variablesHi Statalist community, I am trying to run latent class models and I am fairly new to this type of …
GLM binomial logit model gof - DevianceGood day, I'm using Stata 16 and trying to do gof for a glm logit model but the results show a lot …
About Foreach or ForvalueHi! I am trying to create seven summary variables named den_1 to den_7 to simplify the results I hav…
Formatted IQR using CollectHi, I am using the excellent Example 3 in the "Stata Customizable Tables" manual to help me build a…
Help: weights not allowed r(101)Hi! I met a mistake in following command: egen x2 = group(sex re age educ) gen wm = sex == 1 &…
Subscribe to:
Post Comments (Atom)
0 Response to market participations
Post a Comment