Calculate the derivative of the log-likelihood function with respect to model parameters using sensitivity equations and chain rule
logLik.sensitivity(
parms,
model,
data,
solver.opts = list(method = "rk4"),
solver = ode,
return.NLL = TRUE,
return.traj = FALSE
)a vector of nll and derivative of nll with respect to model parameters (or a list containing (1) the estimated traejctory and (2) a vector of nll and its derivatives)
named vector of parameter values
odemodel object
data
options for the ode solver (see ode)
ode solver
(logical) return negative log-likelihood
(logical) return estimated trajectory