Hi Statalisters
I have data which looks as follows
QUARTER STOCK VAR1 MARKETCAP
2010Q1 APL2 0.5 100
2010Q1 AI1G 0.2 50
2010Q1 MS3T 0.1 20
2010Q1 ABCD 0.05 10
... ...... ..... ...
I would like to create quintile portfolios per quarter based on VAR1.
This is easily done with the -xtile- command (user written by UIi Kohler )
Now, it would like to create quintile portfolios per quarter based on VAR1, however, every quintile portfolio based on VAR1 should have an equal amount of market capitalization.
E.g. Portfolio 1 has stocks with the lowest VAR1 values and a fifth of the market capitlization of all stocks in quarter 2010Q1. Portfolio 5 has stocks with the highest values of VAR1 and a fifth of the market capitlization of all stocks in quarter 2010Q1.
much appreciated
I have data which looks as follows
QUARTER STOCK VAR1 MARKETCAP
2010Q1 APL2 0.5 100
2010Q1 AI1G 0.2 50
2010Q1 MS3T 0.1 20
2010Q1 ABCD 0.05 10
... ...... ..... ...
I would like to create quintile portfolios per quarter based on VAR1.
This is easily done with the -xtile- command (user written by UIi Kohler )
Now, it would like to create quintile portfolios per quarter based on VAR1, however, every quintile portfolio based on VAR1 should have an equal amount of market capitalization.
E.g. Portfolio 1 has stocks with the lowest VAR1 values and a fifth of the market capitlization of all stocks in quarter 2010Q1. Portfolio 5 has stocks with the highest values of VAR1 and a fifth of the market capitlization of all stocks in quarter 2010Q1.
much appreciated
Comment