R/prep_cost-eff_constructors.R

Defines functions test branch_unif_params

#' test constructor
#'
#' @param sens
#' @param spec
#'
#' @return
#' @export
#'
#' @examples
#'
test <- function(sens,
                 spec) {
  res <-
    list(sens = sens,
         spec = spec)

  class(res) <- c("test", class(res))

  return(res)
}

#' branch_unif_params constructor
#'
#' @param pmin
#' @param pmax
#' @param name
#'
#' @return
#' @export
#'
#' @examples
#'
branch_unif_params <- function(pmin,
                               pmax,
                               name) {
  res <-
    list(pmin = pmin,
         pmax = pmax,
         name = name)

  class(res) <- c("branch_unif_params", class(res))

  return(res)
}
n8thangreen/LTBIscreeningproject documentation built on May 23, 2019, 12:01 p.m.