innerobj_multi {pCODE}R Documentation

Inner objective function (multiple dimension version)

Description

An objective function combines the sum of squared error of basis expansion estimates and the penalty controls how those estimates fail to satisfies the ODE model

Usage

innerobj_multi(basis_coef, ode.par, input, derive.model,NLS)

Arguments

basis_coef

Basis coefficients for interpolating observations given a basis object.

ode.par

Structural parameters of the ODE model.

input

Contains dependencies for the optimization, including observations, penalty parameter lambda, and etc..

derive.model

The function defines the ODE model and is the same as the ode.model in pcode.

NLS

Default is TRUE so the function returns vector of residuals, and otherwise returns sum of squared errors.

Value

residual.vec

Vector of residuals and evaluation of penalty function on quadrature points for approximating the integral.


[Package pCODE version 0.9.4 Index]