regression_ttest
              Perform a linear regression t-test.
 h = regression_ttest (y, x) tests the null
 hypothesis that the slope  of a simple linear regression equals
 0.  The result is h = 0 if the null hypothesis cannot be rejected at
 the 5% significance level, or h = 1 if the null hypothesis can be
 rejected at the 5% level.  y and x must be vectors of equal
 length with finite real numbers.
 The p-value of the test is returned in pval.  A 
 confidence interval for  is returned in ci.  stats is
 a structure containing the value of the test statistic (tstat),
 the degrees of freedom (df), the slope coefficient (beta1),
 and the intercept (beta0).  Under the null, the test statistic
 stats.tstat follows a -distribution with
 stats.df degrees of freedom.
 […] = regression_ttest (…, name, value)
 specifies one or more of the following name/value pairs:
| Name | Value | |
|---|---|---|
| "alpha" | the significance level. Default is 0.05. | |
| "tail" | a string specifying the alternative hypothesis | 
| "both" | is not 0 (two-tailed, default) | |
| "left" | is less than 0 (left-tailed) | |
| "right" | is greater than 0 (right-tailed) | 
See also: regression_ftest, regress, regress_gp
Source Code: regression_ttest