Home   >   User Resources   >   Online Help   >   apaOLS.R2.ConfidenceIntervals
 

 

Function index Version 3.0.0

apaOLS.R2.ConfidenceIntervals(X, Y, ConfidenceLevel, nSamples)

Excel=apaOLS.R2.ConfidenceIntervals(X, Y, ConfidenceLevel, nSamples)

Result

Returns resampled confidence intervals for the R-squared of an OLS regression.

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

There exist different approaches to calculating R-squared. The method chosen here makes R-squared independent of any constant values.