[Returnanalytics-commits] r3804 - pkg/Dowd/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Jul 13 13:37:18 CEST 2015


Author: dacharya
Date: 2015-07-13 13:37:18 +0200 (Mon, 13 Jul 2015)
New Revision: 3804

Modified:
   pkg/Dowd/R/LogtESPlot2DCL.R
Log:
Minor mistakes in documentation.

Modified: pkg/Dowd/R/LogtESPlot2DCL.R
===================================================================
--- pkg/Dowd/R/LogtESPlot2DCL.R	2015-07-13 11:36:45 UTC (rev 3803)
+++ pkg/Dowd/R/LogtESPlot2DCL.R	2015-07-13 11:37:18 UTC (rev 3804)
@@ -31,6 +31,7 @@
 #'
 #' @export
 LogtESPlot2DCL <- function(...){
+  # Determine if there are five or six arguments, and ensure that arguments are read as intended
   if (nargs() < 5) {
     stop("Too few arguments")
   }
@@ -97,7 +98,7 @@
     stop("Confidence level(s) must be greater than 0")
   }
   if (min(hp) <= 0){
-    stop("Confidence level(s) must be greater than 0")
+    stop("Holding period(s) must be greater than 0")
   }
   # VaR estimation  
   cl.row <- dim(cl)[1]



More information about the Returnanalytics-commits mailing list