BMDE: Multinomial - Dirichlet (MD) model - Equal Prior - Bayes...

Description Usage Arguments Value Author(s) References See Also Examples

Description

This method provides 95 percent simultaneous confidence interval for multinomial proportions based on Bayesian Multinomial Dirichlet model. This method assumes equal values for the Dirichlet prior parameters

Usage

1
BMDE(x, p)

Arguments

x

x refers to the cell counts of given contingency table corresponding to a categorical data - non negative integers

p

the equal value for the Dirichlet prior parameter - positive real number

Value

lower, upper limits of multinomial proportions together with product of length of k intervals as volume of simultaneous confidence intervals

Author(s)

Dr M Subbiah

References

Gelman, A., Carlin, J.B., Stern, H.S., and Rubin, D.B. (2002). Bayesian Data Analysis. Chapman & Hall, London.

See Also

BMDU,FS,QH

Examples

1
2
3
y=c(44,55,43,32,67,78)
z=1
BMDE(y,z)

Example output

Loading required package: MCMCpack
Loading required package: coda
Loading required package: MASS
##
## Markov Chain Monte Carlo Package (MCMCpack)
## Copyright (C) 2003-2019 Andrew D. Martin, Kevin M. Quinn, and Jong Hee Park
##
## Support provided by the U.S. National Science Foundation
## (Grants SES-0350646 and SES-0350613)
##
Mean
[1] 0.1387 0.1721 0.1355 0.1014 0.2094 0.2429
Lower Limit
[1] 0.1036 0.1335 0.1008 0.0708 0.1675 0.1982
Upper Limit
[1] 0.1787 0.2145 0.1750 0.1370 0.2561 0.2909
Volume 
[1] 2.454145e-07

CoinMinD documentation built on May 1, 2019, 10:32 p.m.