I told people I was good at EViews, but now I need help.
Posted: Sun Mar 26, 2017 11:18 am
i have a quite tricky problem for you which really needs some experience. Has anybody an approach how to code this? Or general thoughts how this could be solved?
In a Workfile I have the following data:
(the series for the daily returns the cumulative returns and the marketvalues have for example the names DR_APPLE CR_APPLE MV_APPLE so the names are for every stock identical). There are the following restrictions
if in a specific month the cumulative 6-month return of a stock is in the top 10% quantile -> copy the value of the daily returns of this stock in month t+1 multiplied with its marketvalue in time t+1 into portfolio 10
else if in this specific year the cumulative 6-month return is in the next decile (10%-band) -> copy the value of the daily return of this stock in t+1 multiplied with its marketvalue in t+1 into portfolio 9
...
else if the cumulative 6-month return is in the worst 10% of the month copy the value of the daily return of this stock in t+1 multiplied with its marketvalue in t+1 in into portfolio 1
I really really need to get this solved. Thank you so much in advance!
Sam
In a Workfile I have the following data:
- 10 Groups Portfolio1 to Portfolio10 (with no values in it)
- a group with daily returns of 200 stocks
- a group with the cumulative 6-month returns of these 200 stocks (frequency: monthly)
- a group with the daily marketvalues of the 200 stocks
(the series for the daily returns the cumulative returns and the marketvalues have for example the names DR_APPLE CR_APPLE MV_APPLE so the names are for every stock identical). There are the following restrictions
if in a specific month the cumulative 6-month return of a stock is in the top 10% quantile -> copy the value of the daily returns of this stock in month t+1 multiplied with its marketvalue in time t+1 into portfolio 10
else if in this specific year the cumulative 6-month return is in the next decile (10%-band) -> copy the value of the daily return of this stock in t+1 multiplied with its marketvalue in t+1 into portfolio 9
...
else if the cumulative 6-month return is in the worst 10% of the month copy the value of the daily return of this stock in t+1 multiplied with its marketvalue in t+1 in into portfolio 1
I really really need to get this solved. Thank you so much in advance!
Sam