hypotestBAF2: Bayesain Hypothesis testing : Hypothesis 2: Theta = Theta0 Vs...

Description Usage Arguments Details Value References See Also Examples

View source: R/631.BayesFactors.R

Description

Bayesain Hypothesis testing : Hypothesis 2: Theta = Theta0 Vs Theta > Theta0

Usage

1
hypotestBAF2(n, th0, a1, b1)

Arguments

n

- Number of trials from data

th0

- Hypothetical parameter for H0

a1

- Priors for hypothesis H1

b1

- Priors for hypothesis H1

Details

Computes Bayes factor under Beta-Binomial model for the model: p = p0 Vs p > p0 from the given number of trials n and for all number of successes x = 0, 1, 2......n We use the following guideline for reporting the results:

Value

A dataframe with

x

Number of successes

BaFa01

Bayesian Factor

References

[1] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis: Theory and Methods. Springer, New York

[2] 2014 Sakthivel S, Subbiah M and Ramakrishnan R Default prior approach for Bayesian testing of hypotheses involving single binomial proportion International Journal of Statistics and Analysis, 4 (2), 139 - 153

See Also

Other Hypothesis testing: hypotestBAF1x, hypotestBAF1, hypotestBAF2x, hypotestBAF3x, hypotestBAF3, hypotestBAF4x, hypotestBAF4, hypotestBAF5x, hypotestBAF5, hypotestBAF6x, hypotestBAF6

Examples

1
2
n=10; th0=0.1; a1=1; b1=1
hypotestBAF2(n,th0,a1,b1)

RajeswaranV/proportion documentation built on May 9, 2017, 11:07 p.m.