margLogLikeSto.RdCompute 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)a fitmodel object
named numeric vector. Values of the parameters. Names should
match fitmodel$thetaNames.
named numeric vector. Initial values of the state
variables. Names should match fitmodel$stateNames.
data frame. Observation times and observed data. The time column
must be named "time" and the observation column must be named
"obs".
number of particles
Monte-Carlo estimate of the marginal log-likelihood of theta
particleFilter