gen_prior: Generate a log prior function

Description Usage Arguments Details Value

View source: R/prior.R

Description

This function returns a a function that given an input set of parameters evaluates the log-prior probability density for the parameters. Eventually this function will be able to take hyperparameter arguments that influence the details of the priors, but for now they're fixed.

Usage

1
gen_prior(hparms, verbose = FALSE)

Arguments

hparms

Named vector of hyperparameters, described in gen_post

verbose

If TRUE, print out additional diagnostic information.

Details

The parameters currently recognized are described in gen_likelihood. If there are any parameters not in that list present, an error will be raised.

Value

A function that takes a named vector of parameters and returns the log-prior probability density


rplzzz/CovMitigation documentation built on June 7, 2021, 8:48 a.m.