View source: R/logLikelihood.r
| dLogPosterior | R Documentation |
This function evaluates the posterior distribution at theta and
returns the result in a suitable format for mcmcMh.
dLogPosterior(fitmodel, theta, initState, data, margLogLike = dTrajObs, ...)
fitmodel |
a |
theta |
named numeric vector. Values of the parameters. Names should
match |
initState |
named numeric vector. Initial values of the state
variables. Names should match |
data |
data frame. Observation times and observed data. The time column
must be named |
margLogLike |
R-function to compute the marginal log-likelihood of
|
... |
further arguments to be passed to |
a list of two elements
logDensity numeric, logged value of the posterior density
evaluated at theta
trace named vector with trace information (theta,
logPrior, margLogLike, logPosterior)
dTrajObs, margLogLikeSto
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.