as.commensurateEB: Convert RBesT mix object into a commensurateEB object

Description Usage Arguments Value Author(s) References See Also Examples

Description

Convert RBesT mix object into commensurateEB object allowing the computation of empirical Bayes commensurate priors.

Usage

1

Arguments

prior

An RBesT betaMix or normMix mixture object with a single mixture component

Value

A commensurateEB object which can be used in ecss. Note that for the normal-normal model, the empirical Bayes power and commensurate prior coincide (see Wiesenfarth and Calderazzo, 2019).

Author(s)

Manuel Wiesenfarth

References

Hobbs, B. P., Sargent, D. J., and Carlin, B. P. (2012). Commensurate priors for incorporating historical information in clinical trials using general and generalized linear models. Bayesian analysis (Online) 7, 639.

Wiesenfarth, M., Calderazzo, S. (2019). Quantification of Prior Impact in Terms of Effective Current Sample Size. Submitted.

See Also

as.powerprior

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
#############
# binary outcome
  unif  <- mixbeta(               c(1.0, 1, 1))
  beta  <- mixbeta(c(1.0, 4, 16)              )

  r=7
  n=20
  ecss(as.commensurateEB(beta),r=r,n=n,
         n.target=40,min.ecss = 0,prior.base = unif,by=1)

## End(Not run)

wiesenfa/ESS documentation built on June 19, 2019, 4:19 p.m.