calcRE {MCE} | R Documentation |
This function is used to calculate the relative efficiency of simulation results. It is used by several of the functions in MCE, and is called by specifying type="RE".
calcRE(data, index)
data |
vector. Results from R replicates of a simulation. |
index |
vector. Indexes of data that the expectation is taken over. |
the relative efficiency 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(from=1, to=10000, by=1) )