nrregr2

Calculates least squares estimates using Newton Raphson method for bivariate data

Contents

Syntax

[q, info] = nrregr2(func, p, x, y, Z, W)

Description

Calculates least squares estimates using Newton Raphson method for bivariate data

Input

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

Output

Remarks

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

Example of use

See mydata_regr2