R/excessReturn.R

Defines functions excessReturn

Documented in excessReturn

excessReturn <- function(firm.returns, market.returns) {
  stopifnot(NROW(firm.returns) == NROW(market.returns))

  stopifnot("zoo" %in% class(firm.returns) || "xts" %in% class(firm.returns))

  stopifnot("zoo" %in% class(market.returns) || "xts" %in% class(market.returns))
  
   return(firm.returns - market.returns)
}

Try the eventstudies package in your browser

Any scripts or data that you put into this service are public.

eventstudies documentation built on July 1, 2020, 10:26 p.m.