dLogPosteriorWrapper: A wrapper for 'dLogPosterior'

View source: R/logLikelihood.r

dLogPosteriorWrapperR Documentation

A wrapper for dLogPosterior

Description

A wrapper for dLogPosterior that returns a function that can be used as a target for mcmcMh

Usage

dLogPosteriorWrapper(fitmodel, initState, data, margLogLike, ...)

Arguments

fitmodel

a fitmodel object

initState

named numeric vector. Initial values of the state variables. Names should match fitmodel$stateNames.

data

data frame. Observation times and observed data. The time column must be named "time" and the observation column must be named "obs".

margLogLike

R-function to compute the marginal log-likelihood of theta.

...

further arguments to be passed to margLogLike

Value

a R-function with one argument called theta.


sbfnk/fitR documentation built on July 18, 2023, 3:28 p.m.