calcSE {MCE}R Documentation

Calculate Standard Error from Replicates

Description

This function is used to calculate the standard error of simulation results. It is used by several of the functions in MCE, and is called by specifying type="SE".

Usage

calcSE(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 standard error of the replication results.

Author(s)

Sebastien Haneuse

Examples

test <- rnorm(10000, mean=1, sd=0.5)
calcSE(test, seq(from=1, to =10000, by=1))

[Package MCE version 1.0 Index]