View source: R/logLikelihood.r
computeDic | R Documentation |
This function computes the Deviance Information Criterion (DIC) of a
fitmodel
from a MCMC sample.
computeDic(trace, fitmodel, initState, data, margLogLike = dTrajObs, ...)
trace |
either a |
fitmodel |
a |
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 5 elements:
DIC
value of the DIC
thetaBar
mean posterior of theta
logLikeThetaBar
log-likelihood of thetaBar
DThetaBar
deviance of thetaBar
pD
effective number of parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.