use a 'list';

x <- list()
for (i in 1:3)
  for (j in 0:2) {
     .....your calculations.....
     x[[as.character(i)]][[as.character(j)]] <- yourResults
}



On 4/7/06, Brian Quinif <bquinif@gmail.com> wrote:
>
> Thanks to the help of many on this list, I am now an R user and have
> been able to write some functioning code to do matching estimation.
>
> I have two for loops (i in 1:3, and j in 0:2).  Within the loops, I
> had been creating matrices of relevant estimation coefficents in order
> to make lots of LaTeX tables.
>
> Well, now I want to be able to combine the results of many different
> estimations from within the loops into one larger table outside the
> loops.
>
> How can I save the estimation results from each iteration of the
> estimation within a loop for later use outside the loop?
>
> Thanks,
>
> BQ
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>



--
Jim Holtman
Cincinnati, OH
+1 513 646 9390 (Cell)
+1 513 247 0281 (Home)

What the problem you are trying to solve?

	[[alternative HTML version deleted]]

