[Returnanalytics-commits] r3711 - in pkg/Dowd: R man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Jun 22 17:13:37 CEST 2015


Author: dacharya
Date: 2015-06-22 17:13:37 +0200 (Mon, 22 Jun 2015)
New Revision: 3711

Modified:
   pkg/Dowd/R/GParetoES.R
   pkg/Dowd/man/GParetoES.Rd
Log:
"randn" in Example corrected to "rnorm".

Modified: pkg/Dowd/R/GParetoES.R
===================================================================
--- pkg/Dowd/R/GParetoES.R	2015-06-22 15:09:36 UTC (rev 3710)
+++ pkg/Dowd/R/GParetoES.R	2015-06-22 15:13:37 UTC (rev 3711)
@@ -18,7 +18,7 @@
 #' @examples
 #' 
 #'    # Computes ES assuming generalised Pareto for following parameters
-#'    Ra <- 5 * randn(100)
+#'    Ra <- 5 * rnorm(100)
 #'    beta <- 1.2
 #'    zeta <- 1.6
 #'    threshold.prob <- .85
@@ -45,4 +45,4 @@
                           - 1))/(1 - zeta)+(beta - zeta * u) / (1 - zeta);
   return(y)
   
-}
\ No newline at end of file
+}

Modified: pkg/Dowd/man/GParetoES.Rd
===================================================================
--- pkg/Dowd/man/GParetoES.Rd	2015-06-22 15:09:36 UTC (rev 3710)
+++ pkg/Dowd/man/GParetoES.Rd	2015-06-22 15:13:37 UTC (rev 3711)
@@ -25,7 +25,7 @@
 }
 \examples{
 # Computes ES assuming generalised Pareto for following parameters
-   Ra <- 5 * randn(100)
+   Ra <- 5 * rnorm(100)
    beta <- 1.2
    zeta <- 1.6
    threshold.prob <- .85



More information about the Returnanalytics-commits mailing list