psurv3

Calculates covariance matrix and standard deviations for trivariate data.

Contents

Syntax

[cov, cor, sd, dev] = psurv3(func, p, t, x, y, N)

Description

Calculates covariance matrix and standard deviations of parameters in survivor models 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)

Ouput

Remarks

Calls scdsurv3, and user-defined function 'func', The elements in the covariance and correlation matrices equal zero for parameters that have code 0 in the second row of the parameter input matrix. The values are the maximum likelihood estimates, therefore, no corrections for bias are made.

Example of use

assuming that function_name, pars, tvalues, xvalues, yvalues, numbers are defined properly:
[cov, cor, sd, ss] = pregr2('function_name', pars, tvalues, xvalues, yvalues, numbers).