[Eventstudies-commits] r290 - pkg/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Apr 17 13:04:41 CEST 2014


Author: vikram
Date: 2014-04-17 13:04:40 +0200 (Thu, 17 Apr 2014)
New Revision: 290

Modified:
   pkg/man/remap.cumsum.Rd
Log:
Modified manual example for remapping

Modified: pkg/man/remap.cumsum.Rd
===================================================================
--- pkg/man/remap.cumsum.Rd	2014-04-17 10:52:25 UTC (rev 289)
+++ pkg/man/remap.cumsum.Rd	2014-04-17 11:04:40 UTC (rev 290)
@@ -21,6 +21,11 @@
   \item{base}{an integer specifying the base for cumulative sum.}
 }
 
+\details{This function remaps a time series into ints cumulative summation.
+	 Function assigns first value as zero in the event window (-width) before cumulating the values.     
+	    
+}
+
 \value{A \pkg{zoo} object with the cumulative summation for each series.
 }
 
@@ -37,5 +42,8 @@
                              width = 5)
 es.w <- window(es.results$z.e, start = -5, end = +5)
 eventtime <- remap.cumsum(es.w, is.pc = FALSE, base = 0)
+check.output <- cbind(es.w[,1],eventtime[,1])
+colnames(check.output) <- c("abnormal.returns","cumulative.abnormal.returns")
+check.output
 head(eventtime[,1:5])
 }



More information about the Eventstudies-commits mailing list