Clyde,
Thanks for this we are on the same page I am after the piece of code you have written to identify the lowest aic of the different regressions. I've got this working but unfortunately my macros are not conveniently named 1-25. They are as follows: - I can't get this working can you please correct this?
Thanks for this we are on the same page I am after the piece of code you have written to identify the lowest aic of the different regressions. I've got this working but unfortunately my macros are not conveniently named 1-25. They are as follows: - I can't get this working can you please correct this?
Code:
local models `idf' `iidf' `iiidf' `ivdf' `vdf' `vidf' `viidf'
foreach x of local models{
xtreg `x', fe
estat ic
matrix S =r(S)
scalar aic = S [1, 5]
if aic <`lowest_aic'{
local result `x'
scalar lowest_aic = aic
}
}

Comment