apaSingleIndexModel.Res(PortfolioReturns, BenchmarkReturns, IsDualAlpha, IsDualBeta, IsNonLinear, Threshold, ForceZeroAlpha)
=apaSingleIndexModel.Res(PortfolioReturns, BenchmarkReturns, IsDualAlpha, IsDualBeta, IsNonLinear, Threshold, ForceZeroAlpha)Result
Returns the vector of residuals of a particular single index model specification.
Syntax
PortfolioReturns: r x 1 vector of portfolio returns
BenchmarkReturns: r x 1 vector of benchmark returns
IsDualAlpha: TRUE for separate alphas for benchmark returns below and above the threshold
IsDualBeta: TRUE for separate betas for benchmark returns below and above the threshold
IsNonLinear: TRUE to include a squared benchmark return term
Threshold: benchmark return threshold separating down and up markets
ForceZeroAlpha: optional; TRUE to force alpha to zero (no intercept); default: FALSE
Algorithm
Residuals are calculated as the difference between the actual portfolio returns and fitted portfolio returns.
The specification of the index model with all flags except ForceZeroAlpha set to TRUE looks like this…
