bern.test: Bayesian Binomial & Negative Binomial Test

Description Usage Arguments Examples

View source: R/functions.R

Description

Estimate a probability that has a bernoulli likelihood

Usage

1
2
bern.test(z, N, a.prior = 1, b.prior = 1, cred.level = 0.975,
  return.samples = FALSE, console = TRUE)

Arguments

z

number of successes

N

number of trials

a.prior

Prior for first shape parameter

b.prior

Prior for second shape parameter

cred.level

Credibility level. Defaults to .975

return.samples

Should it return samples of the prior and posterior? Defaults to FALSE

console

Should it print to console? Defaults to TRUE

Examples

1

abnormally-distributed/abdisttools documentation built on May 5, 2019, 7:07 a.m.