Announcement

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

  • #16
    Your groups are defined by fundid, smallcap and year. So you want:

    Code:
    egen tag= tag(fundid smallcap year)
    If you want to count only small cap firms, then

    Code:
    preserve
    egen tag= tag(fundid smallcap year)
    collapse (count) fundid if tag & smallcap, by(year)
    sum fundid
    restore
    Last edited by Andrew Musau; 30 Mar 2022, 17:45.

    Comment

    Working...
    X