pvcregr

Calculates covariance and correlation matrix of parameters for constant variation coeffients

Contents

Syntax

[cov, cor, sd, ss] = pvcregr (func, p, varargin)

Description

Calculates covariance and correlation matrix of parameters in regression models with sd proportional to mean, using the ML criterion. standard deviation and sum of squared deviations of model predictions with respect to observations

Input

   p(:,1) parameter values
   p(:,2) binaries with yes or no conditional values
   all conditional parameters have zero (co)variance
   xywi(:,1) independent variable
   xywi(:,2) dependent variable
   xywi(:,3) weight coefficients (optional)
   The number of data matrices xyw1, xyw2, ... is optional

Ouput

Remarks

Similar to pregr, but sd propto mean

Example of use

See mydata_nrreg