createPrior.default function

Create prior default method

Create prior default method

## Default S3 method: createPrior(x, wt, ...)

Arguments

  • x: a vector of x values at which the prior is to be specified (the support of the prior). This should contain unique values in ascending order. The function will sort values if x is unsorted with a warning, and will halt if x contains any duplicates or negative lag 1 differences.
  • wt: a vector of weights corresponding to the weight of the prior at the given x values.
  • ...: optional exta arguments. Not currently used.

Returns

a linear interpolation function where the weights have been scaled so the function (numerically) integrates to 1.

  • Maintainer: James Curran
  • License: GPL (>= 2)
  • Last published: 2024-11-12

Useful links