Description Usage Arguments Examples
This functions aggregates the AR, CAR, SCAR through time and returns the results for the individual events and the time aggregated.
1 2 | TimeAggregation(return.data, market.data, model, event.list, event.window,
estimation.window)
|
return.data |
should be a data frame containing dates (Date) in the first column and returns in the rest. |
market.data |
should be a data frame containing dates (Date) in the first column and market returns in the second. |
model |
should be a chracter string: "constant-mean-return" or "market" |
event.list |
should be a data frame created by the MakeEvents function. |
event.window |
should be a vector of two elements representing the number of observations prior to and after the event date. |
estimation.window |
is a numeric value representing the number of observations to estimate the normal returns over. |
1 2 3 4 | TimeAggregation(return.data = ReturnData, market.data = MarketData, model = "constant-mean-return",
event.list = EventList, event.window = c(10,10), estimation.window = 90)
TimeAggregation(return.data = ReturnData, market.data = MarketData, model = "market",
event.list = EventList, event.window = c(10,10), estimation.window = 90)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.