eesDates: Get event list for extreme event study analysis

Description Usage Arguments Details Value Author(s) References Examples

View source: R/eesInference.R

Description

This function creates event list (clustered and unclustered events) for extreme event study analysis.

Usage

1
   eesDates(input)

Arguments

input

object returned by ‘get.clusters.formatted’

Details

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.

Value

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.

Author(s)

Vikram Bahure, Chirag Anand

References

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

Examples

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)

Example output

Loading required package: zoo

Attaching package:zooThe following objects are masked frompackage: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" ...

eventstudies documentation built on July 1, 2020, 10:26 p.m.