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
Label variables ascending orderHi,
I am using Stata 17.
I have 61 variables in my dataset (q1-q61). I would like to label them as…
How to get p values in -mi estimate- commands like in RHi,
Is there a way to get precise p values in Stata using multiple imputed data like its provided in…
Saving margins results in a program to use it in simulateDear all,
I have written the following program
Code:
program define myprog1
replace pseudoclass …
Substantially different estimates for variance of random effects for different estimation techniquesDear Statalisters,
I currently analyze an unbalanced panel with about 200 different firms and aprxi…
merging two variables with different values into oneHello all, I am new to Stata, and have a midterm exam. I am hoping someone can help with a newbie qu…
Subscribe to:
Post Comments (Atom)
0 Response to Panel ARDL Optimal Lag Selectin Loop
Post a Comment