Description Usage Arguments Value Author(s) See Also Examples
View source: R/inference.bootstrap.R
This function obtains a boostrapped confidence interval for estimates of magnitude over the event horizon.
1 2 3 4 5 6 | inference.bootstrap(es.w,
to.plot = TRUE,
boot.run = 1000,
xlab = "Event time",
ylab = "Cumulative returns of response series",
main = "Event study plot")
|
es.w |
a zoo object indexed by event time: the “z.e”
component of the list returned by the |
boot.run |
A ‘numeric’, controlling the number of simulations required for the bootstrap. |
to.plot |
a ‘logical’ indicating whether to generate an event study plot of the inference estimated. Defaults to ‘TRUE’. |
xlab |
the x-axis label of the generated plot. Used if “to.plot” is ‘TRUE’. |
ylab |
the y-axis label of the generated plot. Used if “to.plot” is ‘TRUE’. |
main |
main title of the plot. Used if “to.plot” is ‘TRUE’. |
A ‘matrix’ with 3 columns, the lower confidence interval (CI), the mean, and the upper CI which are the result of bootstrap inference.
Vikram Bahure, Vimal Balasubramaniam
boot
phys2eventtime
inference.wilcox
inference.classic
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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.bootstrap(es.w = eventtime,
to.plot = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.