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)
resetxt locks on small data setWhen I run: Code: resetxt esg totmktval, id(id) it(date) model(xtbe) I get: Code: ===============…
Fixed effect modelHello everyone, I have a few question about the model. My data panel have n=15 and t=17. 1. I ran t…
putting multiple graphs for quantitative vs categorical variables in one graphHi, I have 7 variables, which are actually for one survey question that asks respondents to rank th…
Panel data: can the model be estimated?I am reading the book Baum, C. F. (2006). An Introduction to Modern Econometrics Using Stata (Stata…
Technical Efficiency values between 1 and 6, is that possibleIf I use the command lines frontier costs labor capital , cost distribution(exponential) 'predict i…
Subscribe to:
Post Comments (Atom)
0 Response to Regression with double loop (chaning dependent and independent)
Post a Comment