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)
assigning a group average based on certain condition to observation based on multiple conditions.Hello, I spend too many hours trying to figure it out - and I know it should be an easy fix but I c…
Compare quantile ranges between STATA and QgisI have what I assume is a fairly simple problem to solve. I am using Qgis to create maps using quant…
simple linear regression with changehello, I would like to investigate whether sectors that invest relatively more in computer capital …
Help with Bar graph of three categorical variables and ratesDear Stata Community, I am working with a dataset which has three categorical variables, whether pr…
Easier and faster way to get casewise statistics using tabstat?In my data set, I compare analytes analyzed in a test analyzer (X) to those analyzed in a reference …
Subscribe to:
Post Comments (Atom)
0 Response to Storing results with a large loop (>11000)
Post a Comment