| EventStudyTask | R Documentation |
Event Study Task
The Event Study task contains all necessary data for performing an event study. Furthermore, all calculations are saved in the internal dataframe named data_tbl.
data_tblAll calculations are saved in this dataframe. The dataframe is a nested object with each row is one event, identified by the event id, the group, and the firm symbol.
aar_caar_tblPlaceholder for AAR and CAAR test statistics.
.keysevent identifier. Do not change.
.indexThe time column name
.targetThe price column name.
.request_file_columnsThe necessary
column names of the request dataframe.
estimation_window_length here is an
input count (number of trading days before
the event window); it is distinct from the
derived 0/1 estimation_window flag
column that prepare_event_study()
later adds to each event's nested data.
factor_tblOptional factor data for multi-factor models
(Fama-French, Carhart). Must contain a date column.
symbolsRead-only field to get the firm symbols.
symbol_dataRead-only field to get the firm symbol data.
group_level_dataRead-only field to get the group data.
EventStudyTask$new()Create a new EventStudyTask from stock data, reference market data, and an event request specification.
EventStudyTask$new( firm_stock_data_tbl, reference_tbl, request_tbl, factor_tbl = NULL )
firm_stock_data_tblDataframe with firm stock data. This dataframe must contain the stock (col: symbol) the date (col: date) and the price (col: adjusted) column.
reference_tblDataframe with firm reference data.
request_tblThe request dataframe for each event.
factor_tblOptional dataframe with factor data
(e.g., Fama-French factors). Must contain a date
column plus factor columns.
EventStudyTask$print()Print a summary of the EventStudyTask.
EventStudyTask$print(...)
EventStudyTask$summary()Summarize the event study results.
EventStudyTask$summary()
A list with summary information about the event study results.
EventStudyTask$get_ar()Extract abnormal returns for a single event.
EventStudyTask$get_ar(event_id = NULL)
event_idThe event identifier.
A tibble with abnormal returns for the event window.
EventStudyTask$get_car()Extract cumulative abnormal returns for a single event.
EventStudyTask$get_car(event_id = NULL)
event_idThe event identifier.
A tibble with cumulative abnormal returns for the event window.
EventStudyTask$get_aar()Extract average abnormal returns across events.
EventStudyTask$get_aar(group = NULL, stat_name = "CSectT")
groupOptional group name to filter by.
stat_nameName of the multi-event test statistic to extract. Defaults to "CSectT".
A tibble with AAR/CAAR results.
EventStudyTask$get_model_stats()Extract model statistics for a single event.
EventStudyTask$get_model_stats(event_id = NULL)
event_idThe event identifier.
A list with model statistics.
EventStudyTask$clone()The objects of this class are cloneable with this method.
EventStudyTask$clone(deep = FALSE)
deepWhether to make a deep clone.
Other eventstudy-pipeline:
ParameterSet,
calculate_statistics(),
fit_model(),
prepare_event_study(),
run_event_study()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.