linearreg_ht_slo(A)
Performs a linear regression analysis using samples X and Y and then performs a hypothesis test for the slope of the regression line using significance level alpha.
See also linearreg linearreg_ht_nor linearreg_ci_slo
Example
X=(3, 4, 6, 6, 7, 8)
( 3 4 6 6 7 8 )
Y=(4, 5, 6, 6, 7, 8)
( 4 5 6 6 7 8 )
linearreg_ht_slo(X, Y, .05)
Linear Regression
Hypothesis test for slope of regression line (utility of regression).
Ho : beta1==0
Ha : beta1!=0.
Significance level : 0.05 (5.0%)
Results:
Test statistics T : 12.48999599679666
Critical left value : -2.776445105196957
Critical right value : 2.776445105196956
P value : 2.363560570928724E-4
Reject the null hypothesis.