Announcement

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

  • How can I calculate market share of a particular firm in stata,

    How can I calculate market share of a particular firm in stata, I have 15 Industries and each industry has more than 25 firms

  • #2
    Lao:
    too broad questions seldom usually receive few/no replies.
    Please provide the list with more details about your query: help others help yourself! Thanks.
    Kind regards,
    Carlo
    (Stata 18.0 SE)

    Comment


    • #3
      You need to follow Carlo's suggestion and the FAQ on asking questions - provide Stata code in code delimiters, readable Stata output, and sample data using dataex.
      This may be what you want:

      bysort industry: egen totalsales=total(sales),
      g mktshare=sales/totalsales

      Comment

      Working...
      X