[Eventstudies-commits] r251 - pkg/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Mar 28 14:03:57 CET 2014


Author: chiraganand
Date: 2014-03-28 14:03:55 +0100 (Fri, 28 Mar 2014)
New Revision: 251

Modified:
   pkg/R/eventstudy.R
Log:
Removed NULL as the default value for firm.returns, its a mandatory argument.

Modified: pkg/R/eventstudy.R
===================================================================
--- pkg/R/eventstudy.R	2014-03-28 12:15:31 UTC (rev 250)
+++ pkg/R/eventstudy.R	2014-03-28 13:03:55 UTC (rev 251)
@@ -1,4 +1,4 @@
-eventstudy <- function(firm.returns = NULL,
+eventstudy <- function(firm.returns,
                        eventList,
                        width = 10,
                        is.levels =  FALSE,
@@ -9,6 +9,7 @@
                        inference.strategy = "bootstrap",
                        ...) {
                                         # type = "marketResidual", "excessReturn", "AMM", "None"
+  ## arguments to the model
   extra.var <- list(...)
 
   if (type == "None" && !is.null(firm.returns)) {



More information about the Eventstudies-commits mailing list