View source: R/621.Poster_Predictive.R
probPRE | R Documentation |
The Predicted probability - Bayesian approach
probPRE(n, m, a1, a2)
n |
- Number of trials from data |
m |
- Future :Number of trials |
a1 |
- Beta Prior Parameters for Bayesian estimation |
a2 |
- Beta Prior Parameters for Bayesian estimation |
Computes posterior predictive probabilities for the required size of number of
trials m
from the given number of trials n
for the given parameters for Beta prior
distribution
A matrix of probability values between [0,1]
predicted_probability |
- The predicted probability |
0:n |
The number of columns based on the value of n |
[1] 2002 Gelman A, Carlin JB, Stern HS and Dunson DB Bayesian Data Analysis, Chapman & Hall/CRC
Other Miscellaneous functions for Bayesian method:
empericalBAx()
,
empericalBA()
,
probPOSx()
,
probPOS()
,
probPREx()
n=10; m=5; a1=0.5; a2=0.5 probPRE(n,m,a1,a2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.