innerobj_multi: Inner objective function (multiple dimension version)

View source: R/PCODE.R

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


pCODE documentation built on Sept. 8, 2022, 9:06 a.m.