Hello, I would appreciate any help on the following problem:
fundid fundnr isin cusip calmt quarter month year esb
fs00008l08 1 US74316J7303 74316J730 622 207 11 2011 Large Blend
fs00008l0w 2 US00766Y4897 00766Y489 620 206 9 2011 Large Growth
fs00008l33 3 US34984T4360 34984T436 623 207 12 2011 Large Blend
fs00008l6e 4 US75281Y2063 75281Y206 622 207 11 2011 Small Growth
fs00008l7x 5 US56064V1061 56064V106 623 207 12 2011 Small Growth
I have to summarize the numbers on small caps which i tried by creating a new variable with: 'gen smallcap = 1 if substr(esb,1, 5) == "Small"' and then 'sum smallcap' to get the total numbers of small caps of funds.
But now i have a problem in finding out the average number of smallcaps since 'summarize smallcap, detail' gives out mean = 1
Does anyone know how to avoid this problem?
fundid fundnr isin cusip calmt quarter month year esb
fs00008l08 1 US74316J7303 74316J730 622 207 11 2011 Large Blend
fs00008l0w 2 US00766Y4897 00766Y489 620 206 9 2011 Large Growth
fs00008l33 3 US34984T4360 34984T436 623 207 12 2011 Large Blend
fs00008l6e 4 US75281Y2063 75281Y206 622 207 11 2011 Small Growth
fs00008l7x 5 US56064V1061 56064V106 623 207 12 2011 Small Growth
I have to summarize the numbers on small caps which i tried by creating a new variable with: 'gen smallcap = 1 if substr(esb,1, 5) == "Small"' and then 'sum smallcap' to get the total numbers of small caps of funds.
But now i have a problem in finding out the average number of smallcaps since 'summarize smallcap, detail' gives out mean = 1
Does anyone know how to avoid this problem?
Comment