apaOLS.Betas.ConfidenceIntervals(X, Y, ConfidenceLevel, nSamples)
Excel
=apaOLS.Betas.ConfidenceIntervals(X, Y, ConfidenceLevel, nSamples)Result
Returns confidence intervals for the OLS regression coefficients (betas) based on resampling.
Syntax
X: nRows x nCols matrix of X variables. Each column contains one variable.
Y: nRows x 1 matrix of the Y variable
ConfidenceLevel: confidence level, e.g. 95%.
nSamples: number of samples to generate (1000 is a good starting point)
Remarks
Resampling does not make any distributional assumptions, but is based strictly on the input data.
Resampling does not take into account any form of serial dependency in the input data.
