Skip to content

Commit

Permalink
removed excess contingency table code/help
Browse files Browse the repository at this point in the history
  • Loading branch information
richarddmorey committed Aug 28, 2014
1 parent 6396ec9 commit 6828da9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
10 changes: 6 additions & 4 deletions pkg/BayesFactor/R/contingency.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
##' This function computes Bayes factors for contingency tables.
##'
##' The Bayes factor provided by \code{contingencyTableBF}...
##' The Bayes factor provided by \code{contingencyTableBF} tests the independence assumption in
##' contingency tables under various sampling plans.
##'
##' @title Function for Bayesian analysis of one- and two-sample designs
##' @param x an m by n matrix of counts (integers m,n > 1)
Expand All @@ -16,20 +17,21 @@
##' If \code{posterior} is \code{TRUE}, an object of class \code{BFmcmc},
##' containing MCMC samples from the posterior is returned.
##' @export
##' @keywords htest
##' @keywords internal htest
##' @author Richard D. Morey (\email{richarddmorey@@gmail.com})
##' @author Tahira Jamil (\email{tahjamil@@gmail.com})
##' @references Gunel, E. and Dickey, J., (1974)
##' Bayes Factors for Independence in Contingency Tables. Biometrika, 61, 545-557
##'
##' @note This is a note.
##' @note This will be implemented in a future version.
##' @examples
##' ## What example?
##' \dontrun{
##'
##' data<-matrix(c(10,3,2,15),c(2,2))
##'
##' ## Assume poisson sampling scheme
##' contingencyTableBF(data, "poisson")
##' }

contingencyTableBF <- function(x, sampleType, priorConcentration = 1, posterior = FALSE, ...)
{
Expand Down
10 changes: 7 additions & 3 deletions pkg/BayesFactor/man/contingencyTableBF.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,22 @@ This function computes Bayes factors for contingency
tables.
}
\details{
The Bayes factor provided by \code{contingencyTableBF}...
The Bayes factor provided by \code{contingencyTableBF}
tests the independence assumption in contingency tables
under various sampling plans.
}
\note{
This is a note.
This will be implemented in a future version.
}
\examples{
## What example?
\dontrun{

data<-matrix(c(10,3,2,15),c(2,2))

## Assume poisson sampling scheme
contingencyTableBF(data, "poisson")
}
}
\author{
Richard D. Morey (\email{richarddmorey@gmail.com})

Expand All @@ -56,4 +59,5 @@ Gunel, E. and Dickey, J., (1974) Bayes Factors for
Independence in Contingency Tables. Biometrika, 61, 545-557
}
\keyword{htest}
\keyword{internal}

0 comments on commit 6828da9

Please sign in to comment.