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")
}

Try the HDInterval package in your browser

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

HDInterval documentation built on Nov. 18, 2022, 1:06 a.m.