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)
Can't view or drop notes on variables because of "too few quotes" error?I inherited a data set with notes on the variables. Long story short when I try to see notes attache…
RE -xtgee- Equivalence with GLM?Hi! I was looking around for a panel version of GLM to run a log-gamma model on. From what I read i…
What is wrong my code as posted here?There is two region dummy variables mi (mi takes the value 1 if Michigan and 0 otherwise) and 32 mon…
Issue with stored `r(min)' command from a Sum() commandHello Statalisters, I am having an issue with using the stored `r(min)' value from a sum command. I …
Referencing the stored local variables from a Sum Function not workingHello Statalisters, I am having an issue with using the stored `r(min)' value from a sum command. I …
Subscribe to:
Post Comments (Atom)
0 Response to Storing results with a large loop (>11000)
Post a Comment