R/tacks.R

#' @name tacks
#'
#' @title Beckett & Diaconis tack rolling example.
#'
#' @docType data
#' 
#' @description This data set contains the likelihood matrix and
#' weights for the Beckett-Diaconis tacks example, in which the data
#' are modeled using a binomial mixture. These data were generated by
#' running the "Bmix1" demo from the REBayes package, and saving the
#' arguments passed to \code{\link[REBayes]{KWDual}}, as well as the
#' (normalized) solution returned by the \code{KWDual} call.
#' 
#' @format \code{tacks} is a list with the following elements:
#' 
#' \describe{
#'   \item{L}{9 x 299 likelihood matrix.}
#' 
#'   \item{w}{Numeric vector of length 9 specifying the weights
#'     associated with the rows of \code{L}.}
#' 
#'   \item{x}{Solution provided by the \code{\link[REBayes]{KWDual}}
#'     solver.}
#' }
#' 
#' @keywords data
#'
#' @examples
#'
#' # The optimal solution for the tack example is extremely sparse.
#' data(tacks)
#' plot(tacks$x,type = "l",col = "royalblue")
#' 
NULL

Try the mixsqp package in your browser

Any scripts or data that you put into this service are public.

mixsqp documentation built on Nov. 17, 2022, 1:09 a.m.