EventStudy
:exclamation: This is a read-only mirror of the CRAN R package repository. EventStudy — Event Study Analysis. Homepage: https:://data-zoo.de Report bugs for this package: https://github.com/EventStudyTools/api-wrapper.r/issues
Install / Use
/learn @cran/EventStudyREADME
EventStudyTools (EST) API R Wrapper
Get Started
<p align="center"> <img src='vignettes/landing_page.png ' width='350' style="display: block; margin: 0 auto"> </p>Purpose of this Package
-
Prepare data for an Event Study in R.
- Some pre-tests on the data are applied such that you do not get some strange errors from the API.
-
Perform an Event Study using the https://www.eventstudytools.com API.
-
Parse results to R and do additional analysis and plotting with results.
Further Information & Help
-
The description of test statistics and available models can be found on Significance Tests and Expected Return Models.
-
If another consultancy on event study or panel data analysis is necessary, you may contact me, Dr. Simon Müller (sm@data-zoo.de).
-
Don't hesitate to contact Dr. Simon Müller if you want to perform Event Studies On-Premise, with low latency or large scale.
-
If you like the package: Buy us a Coffee
Installation
Developer Version
library(devtools)
install_github("EventStudyTools/api-wrapper.r")
CRAN Version
install.packages("EventStudy")
Simple Example of an Abnormal Returns Calculator (ARC) launch
apiKey <- "Insert API key"
# Generate Example Data
EventStudy::getSP500ExampleFiles()
library(EventStudy)
# Setup API Connection
estSetup <- EventStudyAPI$new()
estSetup$authentication(apiKey)
# Type of Analysis
estType <- "arc"
# CSV files
dataFiles <- c("request_file" = "01_RequestFile.csv",
"firm_data" = "02_FirmData.csv",
"market_data" = "03_MarketData.csv")
# Path of result files
resultPath <- "results"
# Perform standard Event Study
estSetup$performDefaultEventStudy(estType = estType,
dataFiles = dataFiles,
destDir = resultPath)
# Parse Results
estParser <- ResultParser$new()
request_data = estParser$get_request_file("01_RequestFile.csv")
analysis_report = estParser$get_analysis_report("results/analysis_report.csv")
ar_result = estParser$get_ar("results/ar_results.csv", analysis_report, request_data)
ar_result$plot()
aar_result = estParser$get_aar("results/aar_results.csv", analysis_report)
aar_result$plot(ci_statistics = "Generalized Sign Z")
aar_result$plot_cumulative()
aar_result$plot_test_statistics(p=.99)
car_result = estParser$get_car("results/car_results.csv", analysis_report)
car_result$car_tbl
caar_result = estParser$get_caar("results/caar_results.csv")
caar_result$caar_tbl
caar_result$statistics_tbl
Visit Our App on ShinyApp

Details can be found in our vignettes
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
