Description Usage Arguments Value Author(s) Examples
View source: R/constantMeanReturn.R
This function computes constant mean return during the estimation period prior to the defined event window. If the firm return is “firm.returns”, then output will be “firm.returns” during the event period less the constant mean return computed over the estimation period.
1 | constantMeanReturn(firm.returns, residuals = TRUE)
|
firm.returns |
a zoo timeseries of firm returns from which constant mean return is computed over the estimation period. |
residuals |
a ‘logical’ indicating whether to return residuals or ‘constant mean’. When argument to the function includes the entire time series, returns are estimated using the entire data set and not just estimation period, value of residuals should be TRUE in such a case. |
Residual returns unexplained by constant mean returns
Sargam Jain
1 2 3 4 5 6 7 8 9 10 |
data(StockPriceReturns)
data(SplitDates)
cmr.result <- constantMeanReturn(firm.returns = StockPriceReturns,
residuals = TRUE)
Comparison <- merge(meanAdjustedReturns = cmr.result$Infosys,
Infosys = StockPriceReturns$Infosys,
all = FALSE)
plot(Comparison)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.