probPRE: The Predicted probability - Bayesian approach

Description Usage Arguments Details Value References See Also Examples

View source: R/621.Poster_Predictive.R

Description

The Predicted probability - Bayesian approach

Usage

1
probPRE(n, m, a1, a2)

Arguments

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

Details

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

Value

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

References

[1] 2002 Gelman A, Carlin JB, Stern HS and Dunson DB Bayesian Data Analysis, Chapman & Hall/CRC

See Also

Other Miscellaneous functions for Bayesian method: empericalBAx, empericalBA, probPOSx, probPOS, probPREx

Examples

1
2
n=10; m=5; a1=0.5; a2=0.5
probPRE(n,m,a1,a2)

proportion documentation built on May 29, 2017, 10:31 a.m.