calcRE {MCE}R Documentation

Calculate the Relative Efficiency

Description

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".

Usage

calcRE(data, index)

Arguments

data vector. Results from R replicates of a simulation.
index vector. Indexes of data that the expectation is taken over.

Value

the relative efficiency of the replication results.

Author(s)

Sebastien Haneuse

See Also

calcEX

Examples

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


[Package MCE version 1.0 Index]