comparison scripts/statistics/tests/t_test_regression.m @ 3499:3e3e14ad5149

[project @ 2000-01-31 05:18:07 by jwe]
author jwe
date Mon, 31 Jan 2000 05:18:13 +0000
parents e031284eea27
children 38c61cbf086c
comparison
equal deleted inserted replaced
3498:e391aeef2b3c 3499:3e3e14ad5149
13 ## You should have received a copy of the GNU General Public License 13 ## 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, 14 ## along with this file. If not, write to the Free Software Foundation,
15 ## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 15 ## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 16
17 ## -*- texinfo -*- 17 ## -*- texinfo -*-
18 ## @deftypefn {Function File} {[@var{pval}, @var{t}, @var{df}] =} t_test_regression (@var{y}, @var{x}, @var{R}, @var{r}, @var{alt}) 18 ## @deftypefn {Function File} {[@var{pval}, @var{t}, @var{df}] =} t_test_regression (@var{y}, @var{x}, @var{rr}, @var{r}, @var{alt})
19 ## Perform an t test for the null hypothesis @code{@var{R} * @var{b} = 19 ## Perform an t test for the null hypothesis @code{@var{rr} * @var{b} =
20 ## @var{r}} in a classical normal regression model @code{@var{y} = 20 ## @var{r}} in a classical normal regression model @code{@var{y} =
21 ## @var{X} * @var{b} + @var{e}}. Under the null, the test statistic @var{t} 21 ## @var{x} * @var{b} + @var{e}}. Under the null, the test statistic @var{t}
22 ## follows a @var{t} distribution with @var{df} degrees of freedom. 22 ## follows a @var{t} distribution with @var{df} degrees of freedom.
23 ## 23 ##
24 ## If @var{r} is omitted, a value of 0 is assumed. 24 ## If @var{r} is omitted, a value of 0 is assumed.
25 ## 25 ##
26 ## With the optional argument string @var{alt}, the alternative of 26 ## With the optional argument string @var{alt}, the alternative of
27 ## interest can be selected. If @var{alt} is @code{"!="} or 27 ## interest can be selected. If @var{alt} is @code{"!="} or
28 ## @code{"<>"}, the null is tested against the two-sided alternative 28 ## @code{"<>"}, the null is tested against the two-sided alternative
29 ## @code{@var{R} * @var{b} != @var{r}}. If @var{alt} is @code{">"}, the 29 ## @code{@var{rr} * @var{b} != @var{r}}. If @var{alt} is @code{">"}, the
30 ## one-sided alternative @code{@var{R} * @var{b} > @var{r}} is used. 30 ## one-sided alternative @code{@var{rr} * @var{b} > @var{r}} is used.
31 ## Similarly for @var{"<"}, the one-sided alternative @code{@var{R} * 31 ## Similarly for @var{"<"}, the one-sided alternative @code{@var{rr} *
32 ## @var{b} < @var{r}} is used. The default is the two-sided case. 32 ## @var{b} < @var{r}} is used. The default is the two-sided case.
33 ## 33 ##
34 ## The p-value of the test is returned in @var{pval}. 34 ## The p-value of the test is returned in @var{pval}.
35 ## 35 ##
36 ## If no output argument is given, the p-value of the test is displayed. 36 ## If no output argument is given, the p-value of the test is displayed.