Description Usage Arguments Value
View source: R/labeling_abnormal_returns.R
Define labels based on abnormal returns extracted from firm returns and events.
1 2 3 4 5 6 7 | labeling_abnormal_returns(
events,
firm_returns,
market_returns,
event_horizon = 30,
model_type = c("marketModel", "excessReturn", "None")
)
|
events |
a data.frame of two columns with event dates (colname: “when”) and column names of the ‘response’ series from ‘firm.returns’ (colname “name”). |
firm_returns |
zoo matrix of ‘outcome’ or ‘response’ series |
market_returns |
Returns of SPY or some similiar asset. |
event_horizon |
an ‘integer’ of length 1 that specifies a symmetric event window around the event time as specified in the index of “firm.returns”. |
model_type |
Model type. See eventstudy function. |
Two data frames. First contains labels and abnormal returns and second contains whole returns path.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.