Hello,
I´m a totally newbie in Stata and last time many people from this forum supported me and provided me the perfect code I required for my analysis. Therefore I would ask for help again.
I have daily stock data for different firms (pannel data). Now want to run each day a regression for all companies (permno) returns (ret) against the variable VRP for the last 12 month or for the last 252 trading days. Afterwards I want to sort all stocks into five portfolios according to their sensitivities to the variable VRP (ßVRP or b_VRP). Finally I want to calculate the equally weighted return of each portfolio. The whole process shuld be rolling: So each day first run the time series regression based on the last 12 Months), than rank the stocks accoriding to their risk sensitivity to VRP into 5 portfolios and finally calculate the average daily return for each portfolio.
My variables are labled as follows:
daily stock return : ret
copany identifier: permno
time series defined by date
Variance Risk: VRP
I would be very happy if someone could provide me the code for my problem. I appreciate your effort in the first place.
Kind regards
Steven
I´m a totally newbie in Stata and last time many people from this forum supported me and provided me the perfect code I required for my analysis. Therefore I would ask for help again.
I have daily stock data for different firms (pannel data). Now want to run each day a regression for all companies (permno) returns (ret) against the variable VRP for the last 12 month or for the last 252 trading days. Afterwards I want to sort all stocks into five portfolios according to their sensitivities to the variable VRP (ßVRP or b_VRP). Finally I want to calculate the equally weighted return of each portfolio. The whole process shuld be rolling: So each day first run the time series regression based on the last 12 Months), than rank the stocks accoriding to their risk sensitivity to VRP into 5 portfolios and finally calculate the average daily return for each portfolio.
My variables are labled as follows:
daily stock return : ret
copany identifier: permno
time series defined by date
Variance Risk: VRP
I would be very happy if someone could provide me the code for my problem. I appreciate your effort in the first place.
Kind regards
Steven
Comment