innerobj_lkh_1d: Inner objective function (Likelihood and Single dimension...

View source: R/PCODE.R

innerobj_lkh_1dR Documentation

Inner objective function (Likelihood and Single dimension version)

Description

An objective function combines the likelihood or loglikelihood of errors from each dimension of state variables and the penalty controls how the state estimates fail to satisfy the ODE model.

Usage

innerobj_lkh_1d(basis_coef, ode.par, input, derive.model, likelihood.fun)

Arguments

basis_coef

Basis coefficients for interpolating observations given a basis boject.

ode.par

Structural parameters of the ODD model.

input

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

derive.model

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

likelihood.fun

The likelihood or loglikelihood function of the errors.

Value

obj.eval The evaluation of the inner objective function.


Aleks1123/PCODE documentation built on Sept. 11, 2022, 1:08 p.m.