hypotestBAF6x: Bayesain Hypothesis testing given x: Hypothesis 6: Theta <...

Description Usage Arguments Details Value References See Also Examples

View source: R/632.BayesFactors_x.R

Description

Bayesain Hypothesis testing given x: Hypothesis 6: Theta < Theta1 Vs Theta > Theta2

Usage

1
hypotestBAF6x(x, n, th1, a1, b1, th2, a2, b2)

Arguments

x

- Number of success

n

- Number of trials from data

th1

- Hypothetical parameter for H1

a1

- Priors for hypothesis H1

b1

- Priors for hypothesis H1

th2

- Hypothetical parameter for H2

a2

- Priors for hypothesis H2

b2

- Priors for hypothesis H2

Details

Computes Bayes factor under Beta-Binomial model for the model: p < p1 Vs p > p2 from the given number of trials n and and for given 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, hypotestBAF2, hypotestBAF3x, hypotestBAF3, hypotestBAF4x, hypotestBAF4, hypotestBAF5x, hypotestBAF5, hypotestBAF6

Examples

1
2
x=682; n=925; th1=0.5; a1=1; b1=1; th2=0.9; a2=0.5; b2=0.5
hypotestBAF6x(x,n,th1,a1,b1,th2,a2,b2)

proportion documentation built on May 1, 2019, 7:54 p.m.