[Dplr-commits] r999 - in pkg/dplR: R man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Jul 21 12:16:47 CEST 2015


Author: zang
Date: 2015-07-21 12:16:46 +0200 (Tue, 21 Jul 2015)
New Revision: 999

Modified:
   pkg/dplR/R/sea.R
   pkg/dplR/man/sea.Rd
Log:
fixed ordering of elements in return value of sea(); updated docs

Modified: pkg/dplR/R/sea.R
===================================================================
--- pkg/dplR/R/sea.R	2015-07-20 10:05:56 UTC (rev 998)
+++ pkg/dplR/R/sea.R	2015-07-21 10:16:46 UTC (rev 999)
@@ -76,9 +76,9 @@
         }
     }
     data.frame(lag = c(-lag:lag),
+               se,
                se.unscaled,
                p,
-               se.scaled = se,
                ci.95.lower = ci[1,],
                ci.95.upper = ci[2,],
                ci.99.lower = ci[3,],

Modified: pkg/dplR/man/sea.Rd
===================================================================
--- pkg/dplR/man/sea.Rd	2015-07-20 10:05:56 UTC (rev 998)
+++ pkg/dplR/man/sea.Rd	2015-07-21 10:16:46 UTC (rev 999)
@@ -25,7 +25,7 @@
 }
 
 \details{
-  Superposed epoch analysis is used to test the significance of a mean
+  Superposed epoch analysis (SEA) is used to test the significance of a mean
   tree growth response to certain events (such as droughts).  Departures
   from the mean \acronym{RWI} values for the specified years prior to
   each event year, the event year, and the specified years immediately
@@ -35,17 +35,21 @@
   resampling is used to randomly select sets of \code{\var{lag}+1} years
   from the data set and to estimate significances for the departures
   from the mean \acronym{RWI}.
+  
+  SEA computation is based on scaled \acronym{RWI} values, and
+  95\%-confidence intervals are computed for the scaled values for each
+  year in the superposed epoch.
 }
 
 \value{
   A \code{data.frame} with
   \item{lag}{the lagged years,}
+  \item{se}{the superposed epoch, i.e. the scaled mean \acronym{RWI} for
+    the event years,}
   \item{se.unscaled}{the unscaled superposed epoch, i.e. the mean
     \acronym{RWI} for the event years,}
   \item{p}{significance of the departure from the chrono\enc{’}{'}s mean
     \acronym{RWI},}
-  \item{se.scaled}{the superposed epoch, i.e. the scaled mean \acronym{RWI} for
-    the event years,}
   \item{ci.95.lower}{lower 95\% confidence band,}
   \item{ci.95.upper}{upper 95\% confidence band,}
   \item{ci.99.lower}{lower 99\% confidence band,}



More information about the Dplr-commits mailing list