Hi,
My dataset is on stock returns, I have generated the rankings for each stock based on their Price/Earning ratios, now Im tying to generate the mean returns for each row conditional upon the stock's P/E ratio is in the top 10% in that row (if the stock's P/E ratio is not in the top 10% in a particular row then that stock's return will not be used in the calculation of mean return for that row) , I have some difficulty combining the condition into the -rowmean- command.
Any help is appreciated
Cheers,
Tom
My dataset is on stock returns, I have generated the rankings for each stock based on their Price/Earning ratios, now Im tying to generate the mean returns for each row conditional upon the stock's P/E ratio is in the top 10% in that row (if the stock's P/E ratio is not in the top 10% in a particular row then that stock's return will not be used in the calculation of mean return for that row) , I have some difficulty combining the condition into the -rowmean- command.
Any help is appreciated
Cheers,
Tom