Hello!
I want to know how to create the sum of smallcaps ( If smallcap = 1 ) in EACH year, while having to look out for multilple fundnrs.
Basically:
fundnr month year smallcap
573 1 1990 1
719 10 1990 0
381 4 1990 0
718 10 1990 0
310 4 1990 0
573 4 1990 1
983 3 1990 1
At the end I should get: 2 smallcap firms, because fundnr 573 identifies as one firm, even if we have multiple observations in the year 1990.
So the conditions are: Smallcaps of each year (dataset goes up to 2018) while observations of the same fundnr within a year should be counted as only one
I want to know how to create the sum of smallcaps ( If smallcap = 1 ) in EACH year, while having to look out for multilple fundnrs.
Basically:
fundnr month year smallcap
573 1 1990 1
719 10 1990 0
381 4 1990 0
718 10 1990 0
310 4 1990 0
573 4 1990 1
983 3 1990 1
At the end I should get: 2 smallcap firms, because fundnr 573 identifies as one firm, even if we have multiple observations in the year 1990.
So the conditions are: Smallcaps of each year (dataset goes up to 2018) while observations of the same fundnr within a year should be counted as only one
Comment