R/check_distribution.R

Defines functions check_distribution

Documented in check_distribution

#' Simple check if distribution provided in defineUM() belongs
#' to a list of supported distributions.
#'
#' @param object Any R object. In defineUM() it is used to
#' examine if selected distribution is in supported list of ditributions.
#'
#' @return TRUE or FALSE.
#' 
#' @author Kasia Sawicka
#' 
#'
check_distribution <- function(object) {
  object %in% c(beta,
  # Supported_ditributions <- c("beta",        
                              "cauchy",      
                              "chisq",
                              "contuni",
                              "exp",
                              "gamma",
                              "logis",
                              "lnorm",
                              "norm",
                              "weib",
                              "bern",
                              "bin",
                              # "discrpmf",
                              "discruni",
                              "geom",
                              "poiss")
  # object %in% Supported_distributions
}

Try the spup package in your browser

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

spup documentation built on May 1, 2020, 1:07 a.m.