Announcement

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

  • Create mean values in paneldata for an firm-overview

    Hey!
    I want to create an overview of my paneldataset and like to show an overview of the included companies.
    Therefore I like to include certain key figures like the mean firm value of the company over the sample period.
    I started by seperating the different industries I have in my data but the next step is missing:

    Code:
    tab companyname if _est_reg1==1 & industry_cl=="Mining"
    I hope I have expressed myself clearly, thanks a lot for your advice!

  • #2
    Let's say the variable you wish to get the mean is called "value", try:

    Code:
    table companyname if _est_reg1==1 & industry_cl=="Mining", stat(mean value)
    To learn more, check out help table.

    And this is not directly related to your answer. You can also get that through collapse, which should save you a lot of code typing:

    Code:
    collapse (mean) value, by(companyname industry_cl _est_reg1)
    list
    * Or browse
    browse
    Last edited by Ken Chui; 15 Jun 2022, 19:11.

    Comment

    Working...
    X