ssq2

Calculates sum of squared deviations for bivariate data

Contents

Syntax

ss = ssq2 (func, p, x, y, Z, W)

Description

Calculates sum of squared deviations of model predictions with respect to observations for bivariate data

Input

  f = func (x, y, p) with x: n-vector; y: m-vector; p: k-vector
  f: (n,m)-matrix with model-predictions for dependent variable

Output

Remarks

See ssq for univariate data.

Example of use

Assuming that function_name, pars, xvalues, yvalues, zdata, and weights are defined properly: ssq2('function_name', pars, xvalues, yvalues, zdata, weights).