View source: R/logLikelihood.r
margLogLikeSto | R Documentation |
Compute a Monte-Carlo estimate of the log-likelihood of theta
for a
stochastic model defined in a fitmodel
object, using
particleFilter
margLogLikeSto(fitmodel, theta, initState, data, nParticles)
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 |
nParticles |
number of particles |
Monte-Carlo estimate of the marginal log-likelihood of theta
particleFilter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.