innerobj_multi: Inner objective function (multiple dimension version)

Description Usage Arguments Value

View source: R/PCODE.R

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

1
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.


pCODE documentation built on Jan. 11, 2020, 9:30 a.m.