comparison scripts/statistics/tests/sign_test.m @ 3922:38c61cbf086c

[project @ 2002-05-01 06:48:35 by jwe]
author jwe
date Wed, 01 May 2002 06:48:36 +0000
parents e031284eea27
children 22bd65326ec1
comparison
equal deleted inserted replaced
3921:fb92c3b1aa3b 3922:38c61cbf086c
1 ## Copyright (C) 1995, 1996, 1997 Kurt Hornik 1 ## Copyright (C) 1995, 1996, 1997 Kurt Hornik
2 ## 2 ##
3 ## This program is free software; you can redistribute it and/or modify 3 ## This file is part of Octave.
4 ## it under the terms of the GNU General Public License as published by 4 ##
5 ## Octave is free software; you can redistribute it and/or modify it
6 ## under the terms of the GNU General Public License as published by
5 ## the Free Software Foundation; either version 2, or (at your option) 7 ## the Free Software Foundation; either version 2, or (at your option)
6 ## any later version. 8 ## any later version.
7 ## 9 ##
8 ## This program is distributed in the hope that it will be useful, but 10 ## Octave is distributed in the hope that it will be useful, but
9 ## WITHOUT ANY WARRANTY; without even the implied warranty of 11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 ## General Public License for more details. 13 ## General Public License for more details.
12 ## 14 ##
13 ## You should have received a copy of the GNU General Public License 15 ## You should have received a copy of the GNU General Public License
14 ## along with this file. If not, write to the Free Software Foundation, 16 ## along with Octave; see the file COPYING. If not, write to the Free
15 ## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA
18 ## 02111-1307, USA.
16 19
17 ## -*- texinfo -*- 20 ## -*- texinfo -*-
18 ## @deftypefn {Function File} {[@var{pval}, @var{b}, @var{n}] =} sign_test (@var{x}, @var{y}, @var{alt}) 21 ## @deftypefn {Function File} {[@var{pval}, @var{b}, @var{n}] =} sign_test (@var{x}, @var{y}, @var{alt})
19 ## For two matched-pair samples @var{x} and @var{y}, perform a sign test 22 ## For two matched-pair samples @var{x} and @var{y}, perform a sign test
20 ## of the null hypothesis PROB (@var{x} > @var{y}) == PROB (@var{x} < 23 ## of the null hypothesis PROB (@var{x} > @var{y}) == PROB (@var{x} <