Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 205449

Error: no successful events when doing an eventstudy in R using "eventstudies" package

$
0
0

I am using the eventstudies package in R and I get:

Error: no successful events

I have a data frame of EventDates:

   name         when               
   <chr>        <dttm>             
 1 BMG169621056 2015-05-20 00:00:00
 2 BMG491BT1088 2018-05-10 00:00:00
 3 BMG6359F1032 2014-06-03 00:00:00
 4 BMG6359F1032 2014-06-03 00:00:00
 5 BMG6359F1032 2014-06-03 00:00:00
 6 BMG6359F1032 2014-06-03 00:00:00
 7 BMG6359F1032 2014-06-03 00:00:00
 8 BMG6359F1032 2014-06-03 00:00:00
 9 BMG6359F1032 2015-06-02 00:00:00
10 BMG6359F1032 2015-06-02 00:00:00
# … with 3,772 more rows 

and I have the zoo matrix of StockReturns:

X01.01.2010         2.65       3.7667        82.67      25.8328
            US0028962076 US0038813079 US00508Y1029 US0062121043
X01.01.2010        34.85         9.11        35.64       8.3006
            US00724F1012 US00751Y1064 US00766T1007 US0077371096
X01.01.2010        36.78        40.48         27.5        15.75
            US0080731088 US00130H1059 US00817Y1082 US0012041069
# … with 2,429 more rows and 647 total columns 

I am using the eventstudies package in R and here is my code and the error I get:

es <- eventstudy(event.list = as.data.frame(EventDate), 
firm.returns = read.zoo(Returns, index.column = "dates",
format = "X%d.%m.%Y"), event.window = 1, type= "None", 
to.remap = TRUE, remap = "cumsum", inference = TRUE, 
inference.strategy = "bootstrap")

Error: no successful events

Would be thankful if someone helped me with my problem or gave me at least some tips!


Viewing all articles
Browse latest Browse all 205449

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>