parammod: Parameter Model

Description Usage Arguments Details Value See Also

View source: R/parammod.R

Description

create a parammod object

Usage

1
parammod(logd, r, t, invt, loggradt, ...)

Arguments

logd

function(params) - log-density function for parameters

r

function(kappa) - random function to draw parameters

t

mapping parameter space to real line

invt

mapping real line to parameter space

loggradt

log of the gradient of mapping t

...

additional arguments to store in the parammod object

Details

A parameter model is a probability model for a params object. This class creates a closure with five functions: - a random method for sampling a params object - a log-density method for computing the log-density of a given params object - a transformation function t that maps a parameter value to the real line - the inverse of t - the log-gradient of t

Value

a parammod object

See Also

param_beta param_gamma param_nbin param_norm


SBMSplitMerge documentation built on July 1, 2020, 5:23 p.m.