Skip to content
Prev 22339 / 398502 Next

Means of Monte Carlo simulated lists

Hello,

I am doing simulations, and I generate a list at each iteration (with
three component matrices in the example below), saving the results in
a list. For example, after two iterations, I have something like
List of 2
 $ :List of 3
  ..$ : num [1:6, 1:4]  -3.67  -1.07  -2.99 -18.38  -3.26 ...
  ..$ : num [1:6, 1:6] -7.56 -3.14 -4.99  1.03  2.79 ...
  ..$ : num [1:6, 1:4]  -0.506   2.802   1.879 -13.457  -3.172 ...
 $ :List of 3
  ..$ : num [1:6, 1:4]  9.664 17.242 13.555 -0.368 16.426 ...
  ..$ : num [1:6, 1:6] 10.54  8.97 10.89 10.76  8.81 ...
  ..$ : num [1:6, 1:4]  4.40 10.58 12.00  1.00  7.71 ...

Could anybody tell me what is an efficient way of computing the
averages of the simulated values?

Thank you in advance,
Giovanni