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
Name confusion: Heckman or HeckitHello everyone, Regarding the Heckman two-step selection model for sample selection problem, Wooldri…
Announcing power tworates_zhu: Stata module to calculate sample size or power for a two-sample test of rates (negative binomial regression)Dear Statalisters, I have just posted my program -power tworates_zhu- on SSC. It implements the equ…
Loops cannot capture words with spaceGood day Statalists, I have a panel data for hundreds countries in dozens years. Now I want to extr…
correct to use*svy brr syntax with bootstrap weights and svy bootstrap syntax with brr weights?*Dear Statalisters, Is it correct to use the svy brr syntax with bootstrap weights and svy bootstrap…
Calculating Daily Population of FacilitiesHello experts, I have a dataset with 10,181 observations where each observation represents an indiv…
Subscribe to:
Post Comments (Atom)
0 Response to loop
Post a Comment