Mercurial > hg > octave-lyh
comparison scripts/statistics/base/spearman.m @ 5428:2a16423e4aa0
[project @ 2005-08-23 18:38:27 by jwe]
author | jwe |
---|---|
date | Tue, 23 Aug 2005 18:38:28 +0000 |
parents | 4c8a2e4e0717 |
children | 34f96dd5441b |
comparison
equal
deleted
inserted
replaced
5427:a92afe70fb8d | 5428:2a16423e4aa0 |
---|---|
34 ## If @var{x} and @var{y} are drawn from independent distributions, | 34 ## If @var{x} and @var{y} are drawn from independent distributions, |
35 ## @var{rho} has zero mean and variance @code{1 / (n - 1)}, and is | 35 ## @var{rho} has zero mean and variance @code{1 / (n - 1)}, and is |
36 ## asymptotically normally distributed. | 36 ## asymptotically normally distributed. |
37 ## @end deftypefn | 37 ## @end deftypefn |
38 | 38 |
39 ## Author: KH <Kurt.Hornik@ci.tuwien.ac.at> | 39 ## Author: KH <Kurt.Hornik@wu-wien.ac.at> |
40 ## Description: Spearman's rank correlation rho | 40 ## Description: Spearman's rank correlation rho |
41 | 41 |
42 function rho = spearman (x, y) | 42 function rho = spearman (x, y) |
43 | 43 |
44 if ((nargin < 1) || (nargin > 2)) | 44 if ((nargin < 1) || (nargin > 2)) |