calc.bias: Calculate bias

Description Usage Arguments Value

Description

Calculate bias

Usage

1
2
calc.bias(prior, prob.range = c(0.5, 1), length = 20, n.binom = 30,
  posterior, mc.cores = 1, type = "mean")

Arguments

prior

Prior to calculate posterior. Specify posterior instead if available.

prob.range

Range of values to calculate MSE over

length

Number of values to calculate MSE for

n.binom

Number of patients in new trial

posterior

Posterior density

mc.cores

Number of cores for parallel

type

Either "mean" or "mode" of the posterior to use as the estimate

Value

A vector of bias values


StudyPrior documentation built on May 2, 2019, 5:54 p.m.