calcEX {MCE} | R Documentation |
This function is used to calculate the expectation of simulation results. It is used by several of the functions in MCE, and is called by specifying type="mean".
calcEX(data, index)
data |
vector. Results from R replicates of a simulation. |
index |
vector. Indexes of data that the expectation is taken over. |
the mean of the replication results.
Sebastien Haneuse
test <- as.matrix(cbind(rnorm(10000, mean=1, sd=0.5), rnorm(10000, mean=1, sd=1))) calcRE(test, seq(1:10000))