Learn R Programming

eventstudies (version 1.0)

inference.Ecar: Bootstrap inference for the event study.

Description

This function does bootstrap inference to generate distribution of average of all the cumulative returns time-series.

Usage

inference.Ecar(z.e,to.plot=FALSE)

Arguments

Value

A data frame with 3 columns, the lower confidence interval (CI), the mean and the upper CI which are the result of bootstrap inference.

See Also

phys2eventtime

Examples

Run this code
data(StockPriceReturns)
data(SplitDates)
es.results <- phys2eventtime(z=StockPriceReturns, events=SplitDates,width=5)
es.w <- window(es.results$z.e, start=-5, end=+5)
eventtime <- remap.cumsum(es.w, is.pc=FALSE, base=0)
inference.Ecar(z.e=eventtime, to.plot=FALSE)

Run the code above in your browser using DataLab