calcPB {MCE}R Documentation

Calculate Percent Bias from Replicates

Description

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

Usage

calcPB(data, index, truth)

Arguments

data vector. Results from R replicates of a simulation.
index vector. Indexes of data that the percent bias is taken over.
truth numeric. The true value.

Value

The percent bias estimated from the replicates.

Author(s)

Sebastien Haneuse

Examples

test <- matrix(rnorm(10000, mean=1))
calcPB(test, seq(from=1, to=10000, by=1), truth=1)

[Package MCE version 1.0 Index]