outterobj_lkh_1d: Outter objective function (likelihood and single dimension...

Description Usage Arguments Value

View source: R/PCODE.R

Description

An objective function of the structural parameter computes the measure of fit.

Usage

1
2
outterobj_lkh_1d(ode.parameter, basis.initial,
                        derivative.model, likelihood.fun, inner.input)

Arguments

ode.parameter

Structural parameters of the ODE model.

basis.initial

Initial values of the basis coefficients for nonlinear least square optimization.

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

inner.input

Input that will be passed to the inner objective function. Contains dependencies for the optimization, including observations, penalty parameter lambda, and etc..

Value

neglik The negative of the likelihood or the loglikelihood function that will be passed further to the 'optim' function.


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