dev3

Calculates deviance for trivariate data

Contents

Syntax

d = dev3(func, p, t, x, y, N)

Description

Calculates deviance for trivariate data

Input

   f = func (p, t, y) with
   p: np-vector; t: nt-vector; x: nx-vector; y: ny-vector
   f: (nt,nx*ny)-matrix with model-predictions for surviving numbers
   p(:,1) initial guesses for parameter values
   p(:,2) binaries with yes or no iteration (optional)

Output

Remarks

See dev. Calls user-defined function 'func'.

Example of use

Assuming that function_name, pars, tvalues, xvalues, yvalues, numbers are defined properly: dev3('function_name', pars, tvalues, xvalues, yvalues, numbers).