Description Usage Arguments Value Examples
This functions implements the event study methodology and abnormal returns in particular. The event study methodology is a common way to study the effects of certain events on stock prices. It thus calculates a so-called abnormal return that measures the impact without confounding influences. As part of this method, one first has to predict a normal return in the absence of the event under study. Afterwards, one calculates the difference between the actual return and the previously predicted normal return, i.e. the abnormal return.
1 2 3 |
prices_stock, prices_market |
Data frames, minimally containing a column
|
from, to |
Character or Date objects. Defining the data range. |
model |
A character object.
All other types give an error. |
estimationWindowLength |
Positive integer. Defines number of observations considered to estimate model(s). |
c |
Positive integer. Cumulative Abnormal Returns, defines the number of abnormal returns to cumulate. |
attributeOfInterest |
A character object. Defines the attribute of interest. |
showPlot |
A boolean value. Should a plot of the prices_stock performance be shown? |
abnormalReturn
returns a data frame, comprising following columns:
Date
POSIXct.
abnormalReturn
Numerical.
cumulativeAbnormalReturn
Numerical. The first c-1
rows will be
cumulativeAbnormalReturn=NA
.
stockReturn
Numerical. Actual return of prices_stock.
The number of rows returned depends on the length of prices_stock
/prices_market
,
as well as estimationWindowLength
and eventIndex
.
1 2 3 4 5 6 7 8 9 | x <- abnormalReturn(prices_stock=d.VW, prices_market=d.DAX, model="marketmodel",
estimationWindowLength=10, c=10, attributeOfInterest="Close", showPlot=TRUE)
head(x)
summary(x$abnormalReturn)
x <- abnormalReturn(prices_stock="VOW3.DE", prices_market="%5EGDAXI", from="2015-03-01",
to="2015-11-30", model="marketmodel", estimationWindowLength=20, c=3,
attributeOfInterest="Close", showPlot=TRUE)
head(x)
summary(x$abnormalReturn)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.