Mercurial > hg > octave-lyh
comparison scripts/signal/arch_test.m @ 10635:d1978e7364ad
Print name of function in error() string messages.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 16 May 2010 22:26:54 -0700 |
parents | a1dbe9d80eee |
children | e00de2d5263c |
comparison
equal
deleted
inserted
replaced
10634:60542efcfa2c | 10635:d1978e7364ad |
---|---|
67 ## Description: Test for conditional heteroscedascity | 67 ## Description: Test for conditional heteroscedascity |
68 | 68 |
69 function [pval, lm] = arch_test (y, X, p) | 69 function [pval, lm] = arch_test (y, X, p) |
70 | 70 |
71 if (nargin != 3) | 71 if (nargin != 3) |
72 error ("arch_test needs 3 input arguments"); | 72 error ("arch_test: 3 input arguments required"); |
73 endif | 73 endif |
74 | 74 |
75 if (! (isvector (y))) | 75 if (! (isvector (y))) |
76 error ("arch_test: y must be a vector"); | 76 error ("arch_test: y must be a vector"); |
77 endif | 77 endif |