[Eventstudies-commits] r360 - in pkg: inst/tests vignettes

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri May 16 14:37:58 CEST 2014


Author: vikram
Date: 2014-05-16 14:37:58 +0200 (Fri, 16 May 2014)
New Revision: 360

Modified:
   pkg/inst/tests/test_interfaces.R
   pkg/inst/tests/test_lmAMM.R
   pkg/vignettes/eventstudies.Rnw
Log:
Corrected vignette amm commands

Modified: pkg/inst/tests/test_interfaces.R
===================================================================
--- pkg/inst/tests/test_interfaces.R	2014-05-16 10:08:22 UTC (rev 359)
+++ pkg/inst/tests/test_interfaces.R	2014-05-16 12:37:58 UTC (rev 360)
@@ -66,7 +66,7 @@
                           width = 3,
                           type = "lmAMM",
                           market.returns = NiftyIndex[index(USDINR)],
-                          others = test_others)
+                          others = test_others, nlags = 1)
 
     expect_that(expected_mean, equals(test_es$eventstudy.output[, "Mean"]))
     expect_that(expected_outcomes, equals(test_es$outcomes))

Modified: pkg/inst/tests/test_lmAMM.R
===================================================================
--- pkg/inst/tests/test_lmAMM.R	2014-05-16 10:08:22 UTC (rev 359)
+++ pkg/inst/tests/test_lmAMM.R	2014-05-16 12:37:58 UTC (rev 360)
@@ -70,7 +70,7 @@
 ################################################################################
 
 
-  cat("\nDoing Testcases P8")
+  cat("\nDoing Testcases P8\n")
   load("test_y3c3.rda")
 
   NIFTY_INDEX <- y3c3$NIFTY_INDEX

Modified: pkg/vignettes/eventstudies.Rnw
===================================================================
--- pkg/vignettes/eventstudies.Rnw	2014-05-16 10:08:22 UTC (rev 359)
+++ pkg/vignettes/eventstudies.Rnw	2014-05-16 12:37:58 UTC (rev 360)
@@ -238,7 +238,8 @@
                     inference.strategy = "bootstrap",
                     market.returns=OtherReturns$NiftyIndex,
                     others=OtherReturns$USDINR,
-                    market.returns.purge=TRUE
+                    market.returns.purge=TRUE,
+                    nlags = 1
                     )
 @ 
 



More information about the Eventstudies-commits mailing list