Skip to content

Commit

Permalink
Update examples in documentation and vignette (Yahoo Finance does not…
Browse files Browse the repository at this point in the history
… provide prices of the tiker ^STOXX50E, which was replaced by ^N100)
  • Loading branch information
irudnyts committed Apr 30, 2020
1 parent 3c2e799 commit 85ca02f
Show file tree
Hide file tree
Showing 84 changed files with 1,810 additions and 1,654 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: estudy2
Type: Package
Title: An Implementation of Parametric and Nonparametric Event Study
Version: 0.9.1
Date: 2019-12-16
Version: 0.9.2
Date: 2020-04-27
Authors@R:
person("Iegor", "Rudnytskyi", , "iegor.rudnytskyi@gmail.com", c("aut", "cre"))
Description: An implementation of a most commonly used event study methodology,
Expand Down Expand Up @@ -39,7 +39,7 @@ Imports:
matrixStats (>= 0.54.0),
Rcpp (>= 1.0.1)
LinkingTo: Rcpp
RoxygenNote: 7.0.2
RoxygenNote: 7.1.0
Suggests: knitr,
rmarkdown,
magrittr
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# estudy2 0.9.2

* Fix a bug in the vignette and examples

# estudy2 0.9.1

* Fix a bug in examples of `returns()`
Expand Down
8 changes: 4 additions & 4 deletions R/apply_market_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#' ## 2. Market-adjusted-returns model
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -100,7 +100,7 @@
#' ## 3. Single-index market model
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -433,7 +433,7 @@ apply_market_model.zoo <- function(rates, regressors, same_regressor_for_all =
#' ## 2. Market-adjusted-returns model
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -467,7 +467,7 @@ apply_market_model.zoo <- function(rates, regressors, same_regressor_for_all =
#' ## 3. Single-index market model
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down
4 changes: 2 additions & 2 deletions R/car_nonparametric_tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -166,7 +166,7 @@ car_nonparametric_tests <- function(list_of_returns, car_start, car_end,
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down
6 changes: 3 additions & 3 deletions R/car_parametric_tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -158,7 +158,7 @@ car_parametric_tests <- function(list_of_returns, car_start, car_end,
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -267,7 +267,7 @@ car_lamb <- function(list_of_returns, car_start, car_end, percentage = 90) {
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down
8 changes: 4 additions & 4 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
#' }
"prices"

#' Prices of of ESTX50 EUR P index from 2000-01-03 to 2001-12-31
#' Prices of of EURONEXT 100 index from 2000-01-03 to 2001-12-31
#'
#' A \code{zoo} object containing daily prices of ESTX50 EUR P index from
#' A \code{zoo} object containing daily prices of EURONEXT 100 index from
#' 2000-01-03 to 2001-12-31. See examples of
#' \code{\link{get_prices_from_tickers}} for the dataset generation.
#'
Expand All @@ -47,9 +47,9 @@
#' }
"rates"

#' Rates of returns of ESTX50 EUR P index from 2000-01-04 to 2001-12-31
#' Rates of returns of EURONEXT 100 index from 2000-01-04 to 2001-12-31
#'
#' A \code{zoo} object containing daily rates of returns of ESTX50 EUR P index
#' A \code{zoo} object containing daily rates of returns of EURONEXT 100 index
#' from 2000-01-04 to 2001-12-31. See examples of
#' \code{\link{get_rates_from_prices}} for the dataset generation.
#'
Expand Down
2 changes: 1 addition & 1 deletion R/get_prices_from_tickers.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#'
#' ## Download historical prices of ESTX50 EUR P index:
#' \dontrun{
#' prices_indx <- get_prices_from_tickers("^STOXX50E",
#' prices_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down
2 changes: 1 addition & 1 deletion R/get_rates_from_prices.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#' ## returns from prices:
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down
14 changes: 7 additions & 7 deletions R/nonparametric_tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -176,7 +176,7 @@ nonparametric_tests <- function(list_of_returns, event_start, event_end,
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -323,7 +323,7 @@ sign_test <- function(list_of_returns, event_start, event_end) {
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -483,7 +483,7 @@ generalized_sign_test <- function(list_of_returns, event_start, event_end) {
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -662,7 +662,7 @@ corrado_sign_test <- function(list_of_returns, event_start, event_end) {
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -850,7 +850,7 @@ rank_test <- function(list_of_returns, event_start, event_end) {
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -1042,7 +1042,7 @@ modified_rank_test <- function(list_of_returns, event_start, event_end) {
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down
14 changes: 7 additions & 7 deletions R/parametric_tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -160,7 +160,7 @@ parametric_tests <- function(list_of_returns, event_start, event_end,
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -316,7 +316,7 @@ brown_warner_1980 <- function(list_of_returns, event_start, event_end) {
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -476,7 +476,7 @@ brown_warner_1985 <- function(list_of_returns, event_start, event_end) {
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -628,7 +628,7 @@ t_test <- function(list_of_returns, event_start, event_end) {
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -814,7 +814,7 @@ patell <- function(list_of_returns, event_start, event_end) {
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down Expand Up @@ -994,7 +994,7 @@ boehmer <- function(list_of_returns, event_start, event_end) {
#' @examples
#' \dontrun{
#' library("magrittr")
#' rates_indx <- get_prices_from_tickers("^STOXX50E",
#' rates_indx <- get_prices_from_tickers("^N100",
#' start = as.Date("2000-01-01"),
#' end = as.Date("2002-01-01"),
#' quote = "Close",
Expand Down
4 changes: 2 additions & 2 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Test environments

* local MacOS 10.15.1, R 3.6.1
* local MacOS 10.15.1, R 4.0.0 (R-devel)
* local MacOS 10.15.1, R 3.6.3
* local MacOS 10.15.1, R 4.0.0
* Ubuntu 16.04 (on Travis-CI), R 3.6.0
* Windows (on AppVayor), R-release
* win-builder (R-release, R-devel)
Expand Down
Binary file modified data/prices_indx.rda
Binary file not shown.
Binary file modified data/rates.rda
Binary file not shown.
Binary file modified data/rates_indx.rda
Binary file not shown.
Binary file modified data/securities_returns.rda
Binary file not shown.
39 changes: 26 additions & 13 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 85ca02f

Please sign in to comment.