movttest {climatol}R Documentation

t-test applied to a running window

Description

A t-test of mean sample differences is successively applied to a window of N terms that runs along a series.

Usage

  movttest(x, indme, nterm=10, pval=.05, verb=TRUE)

Arguments

x Time series to be tested
indme Label to identify the station and month (or sub-series)
nterm Number of terms of the running window
pval Significance threshold under which, provided that verb=TRUE, a line indicating the p-value and its position in the series will be shown.
verb If TRUE, p-values under the threshold pval will be shown.

Details

movttest is an internal function used by depudm, not intended to be called directly by the user. It is applied to a running window of N terms; therefore, the t-test is performed on the difference of the means of the first and last N/2 terms of the window.

Value

An object pv is created, holding the p-values of all the t-test applied to the studied series.

See Also

depudm, grafanom


[Package climatol version 1.0.3.1 Index]