| ReturnCalculation | R Documentation |
Base (abstract) class for return calculation strategies.
Subclass this to plug a custom return calculation into
prepare_event_study() / EventStudyTask$new() via
ParameterSet$return_calculation.
A subclass must implement calculate_return(tbl, in_column, out_column):
given a tibble of prices in in_column, add a column named
out_column with the calculated return (e.g. simple or log return).
See SimpleReturn and LogReturn for reference implementations.
nameName of the return calculation.
ReturnCalculation$calculate_return()Calculates the return for a single stock.
ReturnCalculation$calculate_return( tbl, in_column = "adjusted", out_column = "adjusted_return" )
tblThe dataframe with the stock price.
in_columnThe column name of the price infromation.
out_columnThe column name were the return will be saved.
ReturnCalculation$clone()The objects of this class are cloneable with this method.
ReturnCalculation$clone(deep = FALSE)
deepWhether to make a deep clone.
Other eventstudy-models:
BHARModel,
Carhart4FactorModel,
ComparisonPeriodMeanAdjustedModel,
DCCGARCHModel,
FamaFrench3FactorModel,
FamaFrench5FactorModel,
GARCHModel,
LinearFactorModel,
LogReturn,
MarketAdjustedModel,
MarketModel,
ModelBase,
RollingWindowModel,
SimpleReturn,
VolatilityModel,
VolumeModel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.