nmsurv3

Calculates maximum likelihood estimates using Nelder Mead's simplex method for trivariate data

Contents

Syntax

[q, info] = nmsurv3(func, p, t, x, y, Z)

Description

Calculates maximum likelihood estimates using Nelder Mead's simplex method for trivariate data

Input

   f = func (p, t, x, 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

Set options with nmsurv_options. Similar to scsurv3, but slower and a larger basin of attraction. See scsurv3 for the definition of the user-defined function, and scsurv and nmsurv for univariate data. It is usually a good idea to run scsurv3 on the result of nmsurv3.