| run_event_study | R Documentation |
Convenience wrapper that runs the full event study pipeline: prepare data, fit models, and calculate test statistics in a single call.
run_event_study(
task,
parameter_set = ParameterSet$new(),
report = FALSE,
report_args = list(),
verbose = getOption("eventstudy.verbose", TRUE)
)
task |
An EventStudyTask object. |
parameter_set |
A ParameterSet object defining the event study. Defaults to a new ParameterSet with default settings. |
report |
Logical. When |
report_args |
Named list forwarded to |
verbose |
Logical; if FALSE, suppress informational messages. Default
|
The task object with all results computed. When report = TRUE,
the returned task additionally carries attr(task, "report_path")
with the path(s) of the rendered report file(s). The return type is always
a fitted EventStudyTask in both paths.
prepare_event_study, fit_model,
calculate_statistics, MarketModel,
ARTTest
Other eventstudy-pipeline:
EventStudyTask,
ParameterSet,
calculate_statistics(),
fit_model(),
prepare_event_study()
data(dieselgate)
task <- EventStudyTask$new(dieselgate$firm, dieselgate$index, dieselgate$request)
# Run the pipeline and render a report to a temporary directory
out <- file.path(tempdir(), "event_study_report.html")
task <- run_event_study(task, ParameterSet$new(), report = TRUE,
report_args = list(output_file = out))
attr(task, "report_path") # path to the rendered HTML
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.