Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pbetap

Predictive distribution for a binomial sample with a beta prior


Description

Computes predictive distribution for number of successes of future binomial experiment with a beta prior distribution for the proportion.

Usage

pbetap(ab, n, s)

Arguments

ab

vector of parameters of the beta prior

n

size of future binomial sample

s

vector of number of successes for future binomial experiment

Value

vector of predictive probabilities for the values in the vector s

Author(s)

Jim Albert

Examples

ab=c(3,12)
n=10
s=0:10
pbetap(ab,n,s)

LearnBayes

Functions for Learning Bayesian Inference

v2.15.1
GPL (>= 2)
Authors
Jim Albert
Initial release
2018-03-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.