Announcement

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

  • required the sampled required the sampled firms to have at least five observations in the data set

    please i required the sampled required the sampled firms to have at least five observations in the data set WHAT The code i need to add to my regression

    reg pensionassetallocationequitywh csopresence firmsizewh ROAwh operationcashflowvolatilitywh leveragewh dividendpayoutwh boardsizewh boardindependencewh contribu
    tionwh pension_sizewh durationwh planreturnswh discountratewh mergersaquisitions i.sic i.year

  • #2
    Create an indicator to count the number of cases from each unique firm. Assuming the variable for firm is called firm_id, generate this indicator by:

    Code:
    bysort firm_id: gen total_case = _N
    Then, use that as an "if" condition in the regression:

    Code:
    reg y x1 x2 if total_case >= 5

    Comment

    Working...
    X