t_test: An event study t-test.

Description Usage Arguments Details Value Warning References See Also Examples

View source: R/parametric_tests.R

Description

A classical t-test that examines each date in the event window.

Usage

1
t_test(list_of_returns, event_start, event_end)

Arguments

list_of_returns

a list of objects of S3 class returns, each element of which is treated as a security.

event_start

an object of Date class giving the first date of the event period.

event_end

an object of Date class giving the last date of the event period.

Details

Performs a t-test for the event study. The procedure of this test is described in Boehmer et al. 1991, sometimes is called a cross-sectional test. Assumes independence of securities, however is stable to event-induced variance. This test examines the equality of the cross-sectional expected value to zero. The standard deviation, which is used in this test, is simply a cross-sectional standard deviation for a given day in the event window. It calculates statistics even if event window and estimation period are overlapped (intersect). The critical values are Student's t-distributed (no approximation in limit). The significance levels of α are 0.1, 0.05, and 0.01 (marked respectively by *, **, and ***).

Value

A data frame of the following columns:

Warning

This test strongly requires cross-sectional independence and sensitive to the size of the sample.

References

Boehmer E., Musumeci J., Poulsen A.B. Event-study methodology under conditions of event-induced variance. Journal of Financial Economics, 30(2):253-272, 1991.

See Also

parametric_tests, brown_warner_1980, brown_warner_1985, patell, boehmer, and lamb.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## Not run: 
library("magrittr")
rates_indx <- get_prices_from_tickers("^GSPC",
                                      start = as.Date("2019-04-01"),
                                      end = as.Date("2020-04-01"),
                                      quote = "Close",
                                      retclass = "zoo") %>%
    get_rates_from_prices(quote = "Close",
                          multi_day = TRUE,
                          compounding = "continuous")
tickers <- c("AMZN", "ZM", "UBER", "NFLX", "SHOP", "FB", "UPWK")
get_prices_from_tickers(tickers,
                        start = as.Date("2019-04-01"),
                        end = as.Date("2020-04-01"),
                        quote = "Close",
                        retclass = "zoo") %>%
    get_rates_from_prices(quote = "Close",
                          multi_day = TRUE,
                          compounding = "continuous") %>%
    apply_market_model(regressor = rates_indx,
                       same_regressor_for_all = TRUE,
                       market_model = "sim",
                       estimation_method = "ols",
                       estimation_start = as.Date("2019-04-01"),
                       estimation_end = as.Date("2020-03-13")) %>%
    t_test(event_start = as.Date("2020-03-16"),
           event_end = as.Date("2020-03-20"))

## End(Not run)
## The result of the code above is equivalent to:
data(securities_returns)
t_test(list_of_returns = securities_returns,
       event_start = as.Date("2020-03-16"),
       event_end = as.Date("2020-03-20"))

estudy2 documentation built on Nov. 15, 2021, 5:09 p.m.