An objective function of the structural parameter computes the measure of fit.
outterobj_lkh(ode.parameter, basis.initial, derivative.model, likelihood.fun, inner.input)
Structural parameters of the ODE model.
Initial values of the basis coefficients for nonlinear least square optimization.
The function defines the ODE model and is the same as the ode.model in 'pcode'
The likelihood or loglikelihood function of the errors.
Input that will be passed to the inner objective function. Contains dependencies for the optimization, including observations, penalty parameter lambda, and etc..
neglik The negative of the likelihood or the loglikelihood function that will be passed further to the 'optim' function.