Dear all,
I recently started using Stata since I need to conduct some calculations for my Bachelorthesis.
I now wanted to calculate the excess return of certain stocks by performing a regression with several variables. Each regression should be estimated by using a 36 month rolling window.
My data is all in one excelsheet and looks like this:
The data ranges from 29.1.1965 to 29.12.2006
The command I used for stata is the following:
1. "tsset Date"
2. "rolling, window(36) clear: reg EXCOMP VWRF SMB HML MOM"
The command is then executed but the only result I got is the following Error:
"x: Error occurred when rolling executed regress."
Since I am relatively new to Stata so I could not figure it out on my own.
It would be of great help if someone in this Forum could help me. If I have to provide more information just let me know.
Thank you all very much in advance!
Sincerely
Dennis Küchle
I recently started using Stata since I need to conduct some calculations for my Bachelorthesis.
I now wanted to calculate the excess return of certain stocks by performing a regression with several variables. Each regression should be estimated by using a 36 month rolling window.
My data is all in one excelsheet and looks like this:
The data ranges from 29.1.1965 to 29.12.2006
The command I used for stata is the following:
1. "tsset Date"
2. "rolling, window(36) clear: reg EXCOMP VWRF SMB HML MOM"
The command is then executed but the only result I got is the following Error:
"x: Error occurred when rolling executed regress."
Since I am relatively new to Stata so I could not figure it out on my own.
It would be of great help if someone in this Forum could help me. If I have to provide more information just let me know.
Thank you all very much in advance!
Sincerely
Dennis Küchle
Comment