Description Usage Arguments Details Value References Examples
View source: R/event2car_range.R
The function calculates cumulative abnormal returns for a specific time-range before and after the event(s).
1 2 3 4 5 6 7 8 9 10 11 12 13 14  | event2car_range(
  returns = NULL,
  regressor = NULL,
  event_date = NULL,
  method = c("mean_adj", "mrkt_adj_within", "mrkt_adj_out"),
  imputation_returns = c("approx", "mean", "drop", "pmm"),
  imputation_regressor = c("approx", "mean"),
  car_lag = 1,
  car_lead = 5,
  estimation_period = 150,
  range_before = 30,
  range_after = 30,
  output_format = c("zoo", "data.frame")
)
 | 
returns | 
 an object of class   | 
regressor | 
 an object of the same class as   | 
event_date | 
 a character object or an object of class   | 
method | 
 a character indicating the method used to calculate abnormal returns and cumulative abnormal returns. Choose among
  | 
imputation_returns | 
 a character indicating the way of dealing with missing values in returns data:
  | 
imputation_regressor | 
 a character indicating the way of dealing with missing values in regressor data:
  | 
car_lag | 
 an object of class   | 
car_lead | 
 an object of class   | 
estimation_period | 
 an object of class   | 
range_before | 
 a numeric value indicating the time range to be included before the first event.  | 
range_after | 
 a numeric value indicating the time range to be included after the last event.  | 
output_format | 
 a character value signaling whether the cumulative abnormal returns
time series should be returned as   | 
The package covers three models for the calculation of the cumulative abnormal returns:
- Mean-adjusted model (mean_adj)
- Market-adjusted model using out-of-sample estimation (mrkt_adj_out)
- Market-adjusted model using within-sample estimation (mrkt_adj_within)
This is the logic suggested by multiple scholars. See references below.
The generic function is dispatched for such classes as
zoo. (future versions of the package allow for classes of data.frame.)
If method is mrkt_adj_out or mrkt_adj_within
and regressor has the length greater than one, the first element of
regressor will be applied for each security in returns.
an object of class event2car_range which contains the
cumulative abnormal returns time series (car_timeseries),
information on event_dates,
information on firms,
and information on method, imputation_returns, and imputation_regressor.
MacKinlay, A.C. Event Studies in Economics and Finance. Journal of Economic Literature, 35(1):13-39, 1997.
Brown S.J., Warner J.B. Using Daily Stock Returns, The Case of Event Studies. Journal of Financial Economics, 14:3-31, 1985.
Davies, R., Studnicka, Z. The heterogeneous impact of Brexit: Early indications from the FTSE. European Economic Review, 110:1-17, 2018.
1 2 3 4 5 6  | trumpelection <- as.Date("2016-11-08")
returns_firms <- tech_returns[,2:19]
return_indx <- tech_returns[,1]
effect_trump <- event2car_range(returns=returns_firms,regressor=return_indx,
                                imputation_returns="mean",
                                event_date=trumpelection,method="mean_adj")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.