dev2
Calculates deviance for bivariate data
Contents
Syntax
d = dev2(func, p, t, y, N)
Description
Calculates deviance for bivariate data
Input
% func: string with name of user-defined function
f = func (p, t, y) with p: np-vector; t: nt-vector; y: ny-vector f: (nt,ny)-matrix with model-predictions for surviving numbers
- p: (np,2) matrix with
p(:,1) initial guesses for parameter values p(:,2) binaries with yes or no iteration (optional)
- t: (nt,1)-vector with first independent variable (time)
- y: (ny,1)-vector with second independent variable
- N: (nt,ny)-matrix with surviving numbers
Output
- d: scalar with deviance
Remarks
See dev. Calls user-defined function 'func'