calcPB {MCE} | R Documentation |
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".
calcPB(data, index, truth)
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. |
The percent bias estimated from the replicates.
Sebastien Haneuse
test <- matrix(rnorm(10000, mean=1)) calcPB(test, seq(from=1, to=10000, by=1), truth=1)