postFUN: Construct a posterior function for optimisation

View source: R/probability_model_functions.r

postFUNR Documentation

Construct a posterior function for optimisation

Description

Returns a function of a single parameter vector

Usage

postFUN(FUNS, master, args)

Arguments

FUNS

list of functions (log-likelihoods and log-priors)

master

logical matrix giving indices of par vector for each function

args

List of arguments to each function

Value

a function that accepts a single parameter vector and evaluates the log prior. The data supplied in 'args' is "baked in" to the function environment and does not need to be resupplied.


matweldon/RMWutils documentation built on May 16, 2022, 12:24 a.m.