nrsurv

Calculates maximum likelihood estimates using Newton Raphson method

Contents

Sybtax

[q, info] = nrsurv (func, p, varargin)

Description

Calculates maximum likelihood estimates using Newton Raphson method

Input

   f = func (p, tn) with
     p: k-vector with parameters; tn: (n,c)-matrix; f: n-vector
   [f1, f2, ...] = func (p, tn1, tn2, ...) with  p: k-vector  and
    tni: (ni,k)-matrix; fi: ni-vector with model predictions
   The dependent variable in the output f; For tn see below.
   p(:,1) initial guesses for parameter values
   p(:,2) binaries with yes or no iteration (optional)
   tni(:,1) time: must be increasing with rows
   tni(:,2) number of survivors: must be non-increasing with rows
   tni(:,3, 4, ... ) data-pont specific information data (optional)
   The number of data matrices tn1, tn2, ... is optional but >0

Output

Remarks

Calls nrdsurv, and user-defined function 'func' Set options with nrregr_options

Example of use

See mydata_surv