Learn R Programming

proportion (version 1.2.0)

hypotestBAF3x: Bayesain Hypothesis testing given x: Hypothesis 3: Theta = Theta0 Vs Theta < Theta0

Description

Bayesain Hypothesis testing given x: Hypothesis 3: Theta = Theta0 Vs Theta < Theta0

Usage

hypotestBAF3x(x, n, th0, a1, b1)

Arguments

x
- Number of success
n
- Number of trials from data
th0
- Hypothetical parameter for H0
a1
- Priors for hypothesis H1
b1
- Priors for hypothesis H1

Value

A dataframe with
x
Number of successes
BaFa01
Bayesian Factor

Details

Computes Bayes factor under Beta-Binomial model for the model: $p = p0$ Vs $p < p0$ 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:
  • 1/3 <= bafa01="" <="" 1:="" evidence="" against="" h0="" is="" not="" worth="" more="" than="" a="" bare="" mention.="" li="">
  • 1/20 <= 1="" bafa01="" <="" 3:="" evidence="" against="" h0="" is="" positive.="" li="">
  • 1/150 <= 1="" bafa01="" <="" 20:="" evidence="" against="" h0="" is="" strong.="" li="">
  • BaFa10 < 1/150: Evidence against H0 is very strong.
  • 1 <= bafa01="" <="" 3:="" evidence="" against="" h1="" is="" not="" worth="" more="" than="" a="" bare="" mention.="" li="">
  • 3 <= bafa01="" <="" 20:="" evidence="" against="" h1="" is="" positive.="" li="">
  • 20 <= bafa01="" <="" 150:="" evidence="" against="" h1="" is="" strong.="" li="">
  • 150 <= bafa01:="" evidence="" against="" h1="" is="" very="" strong.<="" li="">

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, hypotestBAF3, hypotestBAF4x, hypotestBAF4, hypotestBAF5x, hypotestBAF5, hypotestBAF6x, hypotestBAF6

Examples

Run this code
x=682; n=925; th0=0.75; a1=3; b1=3
hypotestBAF3x(x,n,th0,a1,b1)

Run the code above in your browser using DataLab