# [R] Means of Monte Carlo simulated lists

Giovanni Petris GPetris at uark.edu
Fri Aug 2 19:04:52 CEST 2002

```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

> str(sim.theta)
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?

Giovanni

--

__________________________________________________
[                                                  ]
[ Giovanni Petris                 GPetris at uark.edu ]
[ Department of Mathematical Sciences              ]
[ University of Arkansas - Fayetteville, AR 72701  ]
[ Ph: (479) 575-6324, 575-8630 (fax)               ]
[ http://definetti.uark.edu/~gpetris/              ]
[__________________________________________________]

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

```