calcEX {MCE}R Documentation

Calculate Expectation from Replicates

Description

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

Usage

calcEX(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 mean of the replication results.

Author(s)

Sebastien Haneuse

Examples

test <- as.matrix(cbind(rnorm(10000, mean=1, sd=0.5), rnorm(10000, mean=1, sd=1)))
calcRE(test, seq(1:10000))


[Package MCE version 1.0 Index]