Usage
evReturn(y, firm, event.date, y.date = "date",
index = "sp500", event.win = 3, est.win = 250, digits = 4, ...)
Arguments
y
a data frame object with one column for date, return series by firms, a return series for a stock market index, and a return series for a risk free asset.
firm
a character vector of firm names; this is the name of the return series in y
.
event.date
event dates for each firm as specified in firm
; this should be a numerical vector and can match the values in y$y.date
; if event dates are the same for all the firms, this can be specificed as a single number.
y.date
a character value for the column name of date in y
.
index
a character value for the column name of index in y
.
event.win
the one-side width of event window in days; the default value of 3 corresponds to a 7-day window (i.e., 3 + 1 + 3).
est.win
the width of estimation window in days.
digits
number of digits used to format outputs.
...
additional arguments to be passed.