Hi all,
I'm new into Stata and I'm struggling with running a multiple of regressions automotically. I need to run a number of following regressions on panel data, that would basically look like:
xtreg spot x1
xtreg spot x2
xtreg spot x3
xtreg spot x4 etc.
My current commands look like following, however its not working...
foreach v of varlist LogIndustriallagged1380-LogIndustriallagged1800 {
xtreg Spot v
}
Or maybe the idea itself is wrong and I should use different command? I would appreciate your help.
Regards,
Agata
I'm new into Stata and I'm struggling with running a multiple of regressions automotically. I need to run a number of following regressions on panel data, that would basically look like:
xtreg spot x1
xtreg spot x2
xtreg spot x3
xtreg spot x4 etc.
My current commands look like following, however its not working...
foreach v of varlist LogIndustriallagged1380-LogIndustriallagged1800 {
xtreg Spot v
}
Or maybe the idea itself is wrong and I should use different command? I would appreciate your help.
Regards,
Agata
Comment