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)
Renaming Variables from string in other variabelHi there, I have a peculiar problem. We are working with panachage voting from Swiss elections. Our…
Pseudo-R^2 after matching with atts.adoDear all, I am currently trying to apply different propensity score matching estimators to my data.…
Visualizing the effect of an interaction term in a log-log model (or poisson model with transformed independent variable)Greetings! I am trying to fit a multilevel regression model for 1,208 households nested in neighbor…
Mapping across 2 datasets Dear All, I am stuck trying to loop through every observation from one dataset and map the results…
Help in Propensity Score MatchingI am at the learning stage of Propensity score matching. My dependent variables are ROA and Tobin q.…
Subscribe to:
Post Comments (Atom)
0 Response to Regression with double loop (chaning dependent and independent)
Post a Comment