Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • market participations

    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!!


  • #2
    You will increase your chances of useful answer by following the FAQ on asking questions-provide Stata code in code delimiters, readable Stata output, and sample data using dataex. Without knowing your data structure, we can't help you specifically.

    Basically, you calculate all your sums, then do the arithmetic. Here is something posted today that would help you with those sums
    https://www.statalist.org/forums/for...ther-variables

    Comment

    Working...
    X