R/is_marg_liks.R

Defines functions is_marg_liks

Documented in is_marg_liks

#' Determine if the \code{marg_liks} is valid
#' @inheritParams default_params_doc
#' @return TRUE if the argument is a valid \code{marg_liks},
#'   FALSE otherwise
is_marg_liks <- function(marg_liks, verbose = FALSE) {
 is <- FALSE
  tryCatch({
      mcbette::check_marg_liks(marg_liks)
      is <- TRUE
    },
    error = function(e) {
      if (isTRUE(verbose)) {
        message("Error: ", e)
      }
    }
  )
  is
}

Try the mcbette package in your browser

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

mcbette documentation built on Sept. 27, 2023, 9:08 a.m.