Hi,
i want to do a multiple regression on times series of 100 corporates.
The problem is that not just the dependent variable(corporate) changes, rather also one of the independent variables changes when chaning the independent variable.
Hence, the classic foreach approach is not working.
I was trying this approach in the first place:
foreach x of varlist BCD* {
reg `x' SPCH* SMB HML AggLiq
outreg2 using regression_results, append excel dec(3)
}
Array
I used BCD to specify my companies.(dependent)
I used SPCH to specify a set of independent variables.
SPCH is a independent variable, but this variable is not constant, it changes with dependent variable. Hence; i have to match one specific BCD with one specific SPCH.
SMB, HML and AggLiq are constant independent variables.
may you have an idea?
THX&KR
Thermo
Related Posts with Regression with double loop (chaning dependent and independent)
How to determine outliers in accounting data using stata?Hello how can I determine the outliers for this variable? TOTAL DEBT ------------------------------…
Zero Iteration when using nl regression !Dear Stata users, In order to estimate the following logistic equation using nonlinear regression (…
Mixed model coefficient?Hello, Beginner question. How do you interpret the coefficients of a mixed model (Multilevel mixed…
Estimations with XTDPDGMM commandHi there, I have estimated a dynamic linear panel regression with new command "xtdpdgmm" following …
Use of -simulate- command for cost benefit analysisHello, I would like to learn about how to use -simulate- command to estimate impact of different pol…
Subscribe to:
Post Comments (Atom)
0 Response to Regression with double loop (chaning dependent and independent)
Post a Comment