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
Finding Most Common String Values Across VariablesHi all: I am trying to find the most common string values across variables. While I work in crimina…
Iterations in logistic regressionIs there any work on what affects the number of iterations required to achieve convergence in logist…
Interpretation of sdtestHi everyone, I am using the sdtest command to evaluate variances in two groupes. But in Stata's out…
Importing oddly formatted txt data into stataHi statalist, I am dealing with precinct by precinct voting results from counties in Texas. My goal …
How to save a Kaplan-Meier survival point estimate to a local macro?Hello STATA Community, I am currently using version 15.1 of STATA. I have some straightforward sur…
Subscribe to:
Post Comments (Atom)
0 Response to loop
Post a Comment