Description Usage Arguments Details Value Author(s) References Examples
This function creates event list (clustered and unclustered events) for extreme event study analysis.
1 | eesDates(input)
|
input |
object returned by ‘get.clusters.formatted’ |
The function creates a list of interesting events extracted
from the output of get.clusters.formatted
. The event
list can be directly supplied to the eventstudy
function.
It returns extreme right tail and left tail event dates for clustered and unclustered data. The ‘normal’ set consists of event dates for only unclustered events and ‘purged’ set consists of event dates for unclustered and clustered both. Unclustered events consist of clean event window with no event occurring in the event window and clustered events are fused consecutive events which lie in the same tail.
A list
object containing:
events.good.normal |
‘data.frame’ containing right tail event dates of unclustered events. |
events.bad.normal |
‘data.frame’ containing left tail event dates of unclustered events. |
events.good.purged |
‘data.frame’ containing right tail event dates of unclustered events and unclustered events. |
events.bad.purged |
‘data.frame’ containing left tail event dates of unclustered and clustered events. |
Vikram Bahure, Chirag Anand
Ila Patnaik, Nirvikar Singh and Ajay Shah (2013). Foreign Investors under stress: Evidence from India. International Finance, 16(2), 213-244. http://onlinelibrary.wiley.com/doi/10.1111/j.1468-2362.2013.12032.x/abstract http://macrofinance.nipfp.org.in/releases/PatnaikShahSingh2013_Foreign_Investors.html
1 2 3 4 5 6 7 | data(OtherReturns)
input <- get.clusters.formatted(event.series = OtherReturns[, "SP500"],
response.series = OtherReturns[, "NiftyIndex"])
eventlist <- eesDates(input)
str(eventlist, max.level = 2)
|
Loading required package: zoo
Attaching package: ‘zoo’
The following objects are masked from ‘package:base’:
as.Date, as.Date.numeric
Loading required package: xts
Maximum length after removing mixed clusters is2
[1] "Clustering events."
List of 4
$ events.good.normal:'data.frame': 8 obs. of 2 variables:
..$ name: chr [1:8] "response.series" "response.series" "response.series" "response.series" ...
..$ when: Date[1:8], format: "2010-07-08" "2010-08-03" ...
$ events.bad.normal :'data.frame': 10 obs. of 2 variables:
..$ name: chr [1:10] "response.series" "response.series" "response.series" "response.series" ...
..$ when: Date[1:10], format: "2010-07-20" "2010-08-12" ...
$ events.good.purged:'data.frame': 9 obs. of 2 variables:
..$ name: chr [1:9] "response.series" "response.series" "response.series" "response.series" ...
..$ when: Date[1:9], format: "2010-07-08" "2010-07-23" ...
$ events.bad.purged :'data.frame': 10 obs. of 2 variables:
..$ name: chr [1:10] "response.series" "response.series" "response.series" "response.series" ...
..$ when: Date[1:10], format: "2010-07-20" "2010-08-12" ...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.