#' function to Residualize the returns via regressions
residualizeReturns(specObj, benchmark, rfRate, isBenchExcess = FALSE)the ffmSpec object with resturns residualized
specObj is a ffmSpec object,
we might need market returns
risk free rate
toggle to select whether to calculate excess returns
this function operates on the data inside the specObj and residualizes the returns to create residual return using regressions of returns on a benchmark.
specFfm for information on the definition of the specFfm object.