Hello everybody,
I am a beginner in stata programming. However, I am looking for help in programming a loop.
I would like to replicate a number of regressions by simply changing some options and saving the regression results in a table where each column represents the results of a regression.
For example, I want to replicate a number of times:
xtdpdgmm y x, gmm (y, l (i j) c m (l)) iv (i.Year, l (p q) m (l)) twostep overid nocons
underid
underid, overid
changing i, j, p and q (where i <j and p <q) according to some predefined ranges. And saving the results of each regression in a column of a table, if they pass the underidentification and overidentification tests indicated below.
Can someone help me to compose a program that does this routine?
Related Posts with loop
just tallying my results Survey: Probit regression Number of strata = 3 Number of obs = 527 Number of PSUs = 19 Popula…
Esttab : combining regressorsI am trying to create an esttab output similar to this: Array my code is as follows: Code: eststo…
Looping simple linear regression and storing beta coefficientHello everyone, i have a dataset in long format, it contains information of 3,167 school's perfomanc…
Combine String ObservationsHello Stata-Users, I'm very new to stata and I've looked for this problem but seem to find only the…
How to setup ONE STEP SYSTEM GMMHello, can someone explain how to set up the ONE STEP SYSTEM GMM in the Dynamic Panel choice in STAT…
Subscribe to:
Post Comments (Atom)
0 Response to loop
Post a Comment