File: pbetap.Rd

package info (click to toggle)
r-cran-learnbayes 2.15.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,864 kB
  • sloc: sh: 15; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 637 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
\name{pbetap}
\alias{pbetap}
\title{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{
  \item{ab}{vector of parameters of the beta prior}
  \item{n}{size of future binomial sample}
  \item{s}{vector of number of successes for future binomial experiment}
}

\value{
  vector of predictive probabilities for the values in the vector s
}

\author{Jim Albert}

\examples{
ab=c(3,12)
n=10
s=0:10
pbetap(ab,n,s)
}

\keyword{models}