R interface for performing Event Studies on https://www.eventstudytools.com.
For more details see the help vignette:
vignette("introduction_eventstudy", package = "EventStudy")
R6Class
object
For usage details see Methods, Arguments, and Examples sections.
new(apiServerUrl)
This method is used to create an
object of this class with apiServerUrl
as the url to the
EventStudyTools server
authentication(apiKey)
This method is used to
authenticate at apiServerUrl
. A valid APIkey
is
required. You can download a free key on our website:
https://www.eventstudytools.com
performEventStudy(estParam)
This method starts an Event Study. This method does all the analysis work for you
performDefaultEventStudy()
This method starts a default
Event Study. It is a wrapper around performEventStudy
processTask()
This method starts the Event Study calculation on the server (after files are uploaded.
configureTask(input)
This method configures the
Event Study. input
is an ApplicationInputInterface
R6 object, e.g. ARC configuration class
uploadFile(fileKey, fileName)
This method links to the
file to upload. fileKey
is the key of the file. Valid values
are: request_file
, firm_data
, and market_data
.
fileName
file name to upload.
commitData()
This method commits the data to the server
getTaskStatus()
Check if calculation is finished
getTaskResults(destDir = getwd())
Downloads the
result files of the Event Study to destDir
(Default: current
working directory).
An EventStudyAPI
object
URL to the API endpoint
Key for authentication
An ApplicationInputInterface
object.
Type of input file: request_file
, firm_data
,
and market_data
Data filename
Directory for saving result files
new()
EventStudyAPI$new(apiServerUrl = NULL)
authentication()
EventStudyAPI$authentication(apiKey = NULL)
performEventStudy()
EventStudyAPI$performEventStudy(
estParams = NULL,
dataFiles = c(request_file = "01_RequestFile.csv", firm_data = "02_firmData.csv",
market_data = "03_MarketData.csv"),
destDir = "results",
downloadFiles = T,
checkFiles = F
)
performDefaultEventStudy()
EventStudyAPI$performDefaultEventStudy(
estType = "arc",
dataFiles = c(request_file = "01_RequestFile.csv", firm_data = "02_firmData.csv",
market_data = "03_MarketData.csv"),
destDir = "results",
downloadFiles = T,
checkFiles = F
)
processTask()
EventStudyAPI$processTask()
configureTask()
EventStudyAPI$configureTask(estParams = NULL)
uploadFile()
EventStudyAPI$uploadFile(fileKey, fileName, partNumber = 0)
deleteFileParts()
EventStudyAPI$deleteFileParts(parts)
splitFile()
EventStudyAPI$splitFile(fileName, maxChunkSize)
get_token()
EventStudyAPI$get_token()
commitData()
EventStudyAPI$commitData()
getTaskStatus()
EventStudyAPI$getTaskStatus(exceptionOnError = FALSE)
getTaskResults()
EventStudyAPI$getTaskResults(downloadFiles = T, destDir = getwd())
getApiVersion()
EventStudyAPI$getApiVersion()
clone()
The objects of this class are cloneable with this method.
EventStudyAPI$clone(deep = FALSE)
deep
Whether to make a deep clone.