| ARCApplicationInput | R Documentation |
This R6 class defines the parameters for the Return Event Study. We recommend
to use the set functionality to setup your Event Study, as we check
input parameters.
For more details see the help vignette:
vignette("parameters_eventstudy", package = "EventStudy")
a ESTParameters R6 object
$new()Constructor for ARCApplicationInput.
$setEMail(eMail)Set the e-Mail address for reporting. This functionality is currently not working.
$setBenchmarkModel(model = 'mm')Setter for the benchmark model.s
$setReturnType(returnType)Setter for the return type (log or simple)
$setTestStatistics(testStatistics)Setter for the test statistics.
An ARCApplicationInput object
An E-Mail address in String format
A benchmark model in String format
A return type in String format
A String vector with test statistics.
EventStudy::ApplicationInputInterface -> EventStudy::EventStudyApplicationInput -> ARCApplicationInput
taskTask description
keyKey
benchmark_modelBenchmark model
return_typeReturn type
non_trading_daysHow to handle non-trading days
test_statisticsTest statistics
request_fileRequest file
firm_dataFirm data
market_dataMarket data
setEMail()set email
ARCApplicationInput$setEMail(eMail)
eMailYour E-mail address
setBenchmarkModel()set benchmark model
ARCApplicationInput$setBenchmarkModel(model)
modelbenchmark model
setReturnType()Set return type
ARCApplicationInput$setReturnType(returnType)
returnTypereturn type
setNonTradingDays()Set non trading days
ARCApplicationInput$setNonTradingDays(nonTradingDays = "later")
nonTradingDayshow to handle non traing days
setTestStatistics()Set test statistics
ARCApplicationInput$setTestStatistics(testStatistics = NULL)
testStatisticsTest statistic
setDataFiles()Set reques, firm, and market data file
ARCApplicationInput$setDataFiles(
dataFiles = c(request_file = "01_RequestFile.csv", firm_data = "02_firmData.csv",
market_data = "03_MarketData.csv")
)dataFilesNamed vector of data files.
clone()The objects of this class are cloneable with this method.
ARCApplicationInput$clone(deep = FALSE)
deepWhether to make a deep clone.
## Not run:
# get files for our S&P500 example; 3 files are written in the current
# working directory
getSP500ExampleFiles()
# Generate a new parameter object
arcParams <- ARCApplicationInput$new()
# set test statistics
arcParams$setBenchmarkModel("garch")
# Setup API object
apiKey <- "{Your API key}"
estSetup <- EventStudyAPI$new()
estSetup$authentication(apiKey)
# Perform Event Study
estSetup$performEventStudy(estParams = arcParams,
dataFiles = c("request_file" = "01_RequestFile.csv",
"firm_data" = "02_firmData.csv",
"market_data" = "03_marketData.csv"))
# Download task results and save them in the actiual working directory
estSetup$getTaskResults()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.