I am trying to store results across a large loop. I have previously done as follows but am limited to the matrix size (11000).
matrix z=J[1,6,.]
matrix Catch=J[`n',1]
forval i =1/`n' {
quietly reg y x`i'
quietly estat ic
matrix z=r(S)
matrix Catch(`i',1)=z[1,5]
}
Where `n' is a number significantly greater than >11000.
Is there a way to store these values elsewhere or output them quickly? I know I can use the "putexcel" command but it is slow having to call the command in each loop. Are there other options?
Related Posts with Storing results with a large loop (>11000)
Interpretation of regression results of capital flowsDear statalisters, I have run three similar regressions of this model: lnGCFGDPit= ß0+ ß1newdealit…
Stata states varlist not allowed with Coefplot CommandI am a new user to Stata. I am working on a dataset from an experiment that looked at how male and f…
ordinal regression with interaction term (ordinal and binary variable)How can I interpret this outcome and especially the interaction term? repression (0= minamal, 1= mo…
Adding customized rows to existing observationsHi everyone, I have two clubs (Kibila & GAF 2) in my dataset each having 73 and 75 observations…
Export to excelHello!! I am trying to export summary statistics like n mean sd median iqr min max for a series of …
Subscribe to:
Post Comments (Atom)
0 Response to Storing results with a large loop (>11000)
Post a Comment