forval i=1/24 {
qui xtreg y x1 x2 x3 x4 x5 ///
l`i'.y l`i'.x1 l`i'.x2 l`i'.x3 l`i'.x4 l`i'.x5, fe
qui estat ic
estimates store model`i'
}
Hello everybody. Before ı choose to use pmg or mg panel estimation model ı need to find the optimal lag. I can find it with long way. Bu ı want to build a loop for that as above. But ı dont know how to add other lags in every turn.
for example as above ı added first lags in first turn of loop but how to add secons lags with first lags in second turn?
how to add thirs lags with second and first lags in third turn of loop?
Related Posts with Panel ARDL Optimal Lag Selectin Loop
DSGE model on STATA or DynareI seek to stimulate an analytical model that links financial inclusion, financial frictions and econ…
Regression using a part of the independent variableDear Statlisters, I am currently writing my thesis and doing research on the effect of changes in t…
Generating integer variable from nonnumeric dataHello All, My panel data set has 5 years of data. The data set includes no. of directors (with titl…
Quadratic Regressioni am doing logit regression with workhours and workhours-square as independent variable and depressi…
Weights in Correspondence AnalysisGood day Stata users, I have constructed an index of categorical variables (0/1) using multiple cor…
Subscribe to:
Post Comments (Atom)
0 Response to Panel ARDL Optimal Lag Selectin Loop
Post a Comment