apaOLS.Betas.Evaluation(X, Y, ConfidenceLevel)
=apaOLS.Betas.Evaluation(X, Y, ConfidenceLevel)Result
Returns the standard errors, t-values, two-sided critical t-values and two-sided p-values of the OLS regression coefficients. A coefficient is significant if its p-value < 1 - ConfidenceLevel. If there is more than one Y variable, returns the results for all Y_i with the same X.
Syntax
X: nRows x nCols matrix of X variables. Each column contains one variable.
Y: nRows x nCols matrix of the Y variables. If there is more than one Y variable, gives results for all Y_i with the same X.
ConfidenceLevel: confidence level between 0 and 1 for the two-sided test, e.g. 0.95.
Algorithm
The significance test is based on the t-statistic of each regression coefficient…
…with being the standard error of
each regression coefficient.
The critical value is calculated from the t distribution.
The p-value is the smallest significance level at which the coefficient is considered statistically different from zero.
Remarks
The null hypothesis is bi = 0. A coefficient is statistically different from zero if |t-value| > critical t-value, or equivalently if p-value < 1 - ConfidenceLevel.
Residual variance is SSE/(n − k), i.e. degrees-of-freedom corrected.
