Learn R Programming

estudy2

Overview

An implementation of a most commonly used event study methodology, including both parametric and nonparametric tests. It contains variety aspects of the rate of return estimation (the core calculation is done in C++), as well as three classical market models: mean adjusted returns, market adjusted returns and single-index market models. There are 6 parametric and 6 nonparametric tests provided, which examine cross-sectional daily abnormal return (see the documentation of the functions for more information). Furthermore, tests for the cumulative abnormal returns are included.

Installation

To install a current stable release from CRAN use:

install.packages("estudy2")

To install the development version of estudy2 use:

# install.packages("devtools")
# library("devtools")
devtools::install_github("irudnyts/estudy2")

Demo

The package is equipped with a demonstration Shiny app that can be run locally with:

library("estudy2")
run_app()

Otherwise, one can explore the deployed version using this link.

Copy Link

Version

Install

install.packages('estudy2')

Monthly Downloads

91

Version

0.10.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Iegor Rudnytskyi

Last Published

November 15th, 2021

Functions in estudy2 (0.10.0)

boehmer

Boehmer's parametric test (1991).
car_parametric_tests

Returns the result of given event study parametric CAR tests.
apply_market_model

Apply a market model and return a list of returns objects.
car_brown_warner_1985

Brown and Warner (1985) CAR test.
car_lamb

Lamb's CAR test (1995).
brown_warner_1980

Brown and Warner parametric test (1980).
car_rank_test

Cowan's CAR test.
brown_warner_1985

Brown and Warner parametric test (1985).
car_nonparametric_tests

Returns the result of given event study nonparametric CAR tests.
corrado_sign_test

Corrado's sign test (1992).
parametric_tests

Returns the result of given event study parametric tests.
patell

Patell's parametric test (1976).
lamb

Lamb's parametric test (1995).
get_rates_from_prices

Calculate rates of return for given prices.
prices_indx

Prices of S&P 500 index from 2019-04-01 to 2020-04-01
run_app

Run Shiny demo app
securities_returns

Returns of seven companies from 2019-04-01 to 2020-04-01
prices

Stock prices of seven companies from 2019-04-01 to 2020-04-01
wilcoxon_test

An event study Wilcoxon signed rank test.
t_test

An event study t-test.
sign_test

An event study simple binomial sign test.
rank_test

An event study rank test.
rates

Rates of returns of seven companies from 2019-04-01 to 2020-04-01
returns

Constructor of an object of S3 class returns.
nonparametric_tests

Returns the result of given event study nonparametric tests.
modified_rank_test

An event study modified rank test.
rates_indx

Rates of returns of S&P 500 index from 2019-04-01 to 2020-04-01
generalized_sign_test

An event study binomial sign test.
get_prices_from_tickers

Get daily prices of securities.