R/createPrior.R

Defines functions createPrior

Documented in createPrior

#' Create prior generic
#' 
#' @param x a vector of x values at which the prior is to be specified (the support of the prior).
#' @param \dots optional exta arguments. Not currently used.
#' @return a linear interpolation function where the weights have been scaled so
#'   the function (numerically) integrates to 1.
#' @export
createPrior = function(x, ...){
  UseMethod("createPrior")
}

Try the Bolstad package in your browser

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

Bolstad documentation built on Jan. 8, 2021, 2:03 a.m.