aar_results | R Documentation |
An R6 object that contains AAR results.
An R6 object that contains AAR results.
An R6 object that contains AAR results.
An R6 object that contains AAR results.
An R6 object that contains AAR results.
An R6 object that contains AAR results.
R6Class
object.
R6Class
object.
R6Class
object.
plot
This method plots aar results.
plot
This method plots aar results.
plot
This method plots aar results.
aar_tbl
AAR results.
statistics_tbl
AAR test statistic results.
new()
Class initialization
AARResults$new(aar_tbl, statistics_tbl)
aar_tbl
AAR result table.
statistics_tbl
Table with statistics.
print()
Print key characteristics.
AARResults$print()
plot()
Plots AAR results for each analysis group.
AARResults$plot( group = NULL, ci_statistics = NULL, p = 0.95, ci_type = "two-sided", xlab = "Event Window", ylab = "Averaged Abnormal Returns", facet = T, ncol = 4 )
group
Subset to your analysed groups, else all groups will be plotted.
ci_statistics
Statistic used for confidence intervals
p
The desired p-value
ci_type
type of CI band for ggplot2, available are band or ribbon.
xlab
x-axis label
ylab
y-axis label
facet
should each group get its own plot (default = T)
ncol
number of facet columns
plot_cumulative()
Plot Cumulative Abnormal Return. No test statistic is available.
AARResults$plot_cumulative( xlab = "Event Window", ylab = "Cumulative Averaged Abnormal Returns", facet = T, ncol = 4 )
xlab
x axis lab
ylab
y axis lab
facet
Shall the plot faceted by Group
ncol
Number of cols when faceting.
confidence_interval()
Calculates Confidence band for given test statistic.
AARResults$confidence_interval( statistic = "Patell Z", p = 0.95, ci_type = "two-sided" )
statistic
Chosen test statistics for calculation.
p
Chosen p value.
ci_type
Type of confidence interval.
plot_test_statistics()
Plots a heatmap with test statistics on y axis and Day Relative to Event on x axis. Colorization is done according to significance according to given p.
AARResults$plot_test_statistics(p = 0.95, ci_type = "two-sided")
p
Chosen p value.
ci_type
CI type.
clone()
The objects of this class are cloneable with this method.
AARResults$clone(deep = FALSE)
deep
Whether to make a deep clone.
ar_tbl
AR result table. Class initialization
new()
ARResults$new(ar_tbl)
ar_tbl
AR result table.
print()
Print key characteristics.
ARResults$print()
plot()
Plot abnormal returns in the event window of single or multiple firms.
ARResults$plot(firm = NULL, xlab = "", ylab = "Abnormal Returns", addAAR = F)
firm
set this parameter if just a subset of firms should be plotted
xlab
x-axis label of the plot
ylab
y-axis label
addAAR
add aar line
a ggplot2 object
clone()
The objects of this class are cloneable with this method.
ARResults$clone(deep = FALSE)
deep
Whether to make a deep clone.
car_tbl
Car result table Class initialization
new()
CAResults$new(car_tbl)
car_tbl
CAR result table.
print()
Print key characteristics.
CAResults$print()
clone()
The objects of this class are cloneable with this method.
CAResults$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.