R/checkCredMass.R

Defines functions checkCredMass

# Function to check that credMass is sane
checkCredMass <- function(x)  {
  if(length(x) != 1)
    stop("credMass must be a single value")
  if(is.na(x) || x <= 0 || x >= 1)
    stop("credMass must be between 0 and 1")
}
mikemeredith/HDInterval documentation built on Dec. 5, 2022, 1:09 p.m.