pdisc: Posterior distribution for a proportion with discrete priors

Description Usage Arguments Value Author(s) Examples

Description

Computes the posterior distribution for a proportion for a discrete prior distribution.

Usage

1
pdisc(p, prior, data)

Arguments

p

vector of proportion values

prior

vector of prior probabilities

data

vector consisting of number of successes and number of failures

Value

vector of posterior probabilities

Author(s)

Jim Albert

Examples

1
2
3
4
p=c(.2,.25,.3,.35)
prior=c(.25,.25,.25,.25)
data=c(5,10)
pdisc(p,prior,data)


LearnBayes documentation built on May 20, 2017, 2:24 a.m.
Search within the LearnBayes package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.