Hi Guys,
I am somewhat of a newbie at Stata. I have panel data of around 80 firms with daily data taken over a three year period. In an excel file I have stacked the data such that it is chronologically sorted by Company ID. Hence; the data for three years for Deutsche Bank is on top of the same data for Citi Group.. So on so forth.
I have three columns; CDS spread, Total Return Index, and Implied Volatility.
The first step is to run three regressions; where the dependent variable on the LHS of each equation is the change in the respective market, and dependent variables are the lagged values of the changes in the other markets( ie deltaCDS= alpha + l.CDS + l.IV + l.Return)
The second step is to predict the residuals from each regression.
The third is to conduct an Seemingly unrelated regression with three equations where the dependent variable is the change in the respective market, and the dependent variables are the lagged values of the residuals from the other markets ( ie delta CDS= alpha + l.u(CDS) + l.u(IV) + l.u(Return))
My question to you guys is, is there a way that I am able to do this using the batch excel as opposed to loading the data for each firm and running the process, saving, then repeating 80 times.
I apologize if there is any confusion, please feel free to ask any questions for further clarification.
Thanks!
I am somewhat of a newbie at Stata. I have panel data of around 80 firms with daily data taken over a three year period. In an excel file I have stacked the data such that it is chronologically sorted by Company ID. Hence; the data for three years for Deutsche Bank is on top of the same data for Citi Group.. So on so forth.
I have three columns; CDS spread, Total Return Index, and Implied Volatility.
The first step is to run three regressions; where the dependent variable on the LHS of each equation is the change in the respective market, and dependent variables are the lagged values of the changes in the other markets( ie deltaCDS= alpha + l.CDS + l.IV + l.Return)
The second step is to predict the residuals from each regression.
The third is to conduct an Seemingly unrelated regression with three equations where the dependent variable is the change in the respective market, and the dependent variables are the lagged values of the residuals from the other markets ( ie delta CDS= alpha + l.u(CDS) + l.u(IV) + l.u(Return))
My question to you guys is, is there a way that I am able to do this using the batch excel as opposed to loading the data for each firm and running the process, saving, then repeating 80 times.
I apologize if there is any confusion, please feel free to ask any questions for further clarification.
Thanks!
Comment