Analyse time series data with the so called gamma method
uwerr(f, data, nrep, S = 1.5, pl = FALSE, ...)
function computing the derived quantity. If not given it is assumed that a primary quantity is analysed.
f must have the data vector of length Nalpha as the first argument. Further
arguments to f can be passed to uwerr via the ...
argument.
f may return a vector object of numeric type.
array of data to be analysed. It must be of dimension (N x Nalpha) (i.e. N rows and Nalpha columns), where N is the total number of measurements and Nalpha is the number of primary observables
the vector (N1, N2, ...) of replica length N1, N2
initial guess for the ratio tau/tauint, with tau the exponetial autocorrelation length.
logical: if TRUE, the autocorrelation function, the integrated autocorrelation time as function of the integration cut-off and (for primary quantities) the time history of the observable are plotted with plot.uwerr
arguments passed to function f
.
In case of a primary observable (uwerrprimary
), an object of
class uwerr
with basis class list
containing the
following objects
the expectation value of the obsevable
the error estimate
estimate of the error on the error
estimate of the integrated autocorrelation time for that quantity
error of tauint
the p-value of the weighted average in case of several replicas
uwerrprimary returns in addition
input data
(vector of) mean(s) of the (vector of) data
the estimated gradient of
f
the input statistics
In both cases the return object containes
value of optimal cut-off for the Gamma function integration
maximal value of the cut-off for the Gamma function integration
integrated autocorrelation time as a function of the cut-off W
error of the integrated autocorrelation time as a function of the cut-off W
input parameter S
total number of observations
number of replicas
vector of observations per replicum
normalised autocorrelation function
set to 1 for uwerrprimary
and 0 for
uwerrderived
``Monte Carlo errors with less errors'', Ulli Wolff, Comput.Phys.Commun. 156 (2004) 143-153, Comput.Phys.Commun. 176 (2007) 383 (erratum), hep-lat/0306017
# NOT RUN {
data(plaq.sample)
plaq.res <- uwerrprimary(plaq.sample)
summary(plaq.res)
plot(plaq.res)
# }
Run the code above in your browser using DataLab