Assuming that the period T
is known, procedure persigest
plots and returns the estimated periodic
standard deviation as a function of season. Missing data are permitted. The
confidence intervals for these values, based on the chi-square distribution, are also
computed and plotted. The de-meaned and normalized series
xn
is returned.
First, the periodic mean is computed using the method of permest
. If at time t
there is a missing value in the data, it is ignored
in the computation of periodic standard deviation. For any season (t mod T)
where all the data are missing, the periodic standard
deviation is set to "Missing"
and in the output vector xn
all the values whose times are congruent with (t mod T)
will be set to "Missing"
.
persigest(x, T_t, alpha, missval, datastr,...)
procedure returns:
periodic standard deviations values.
bounds of the confidence intervals.
series after removing periodic mean and divided by standard deviations
p-value for Bartlett's test for the homogeneity of variance.
input time series.
period of the computed standard deviation.
1-alpha
is confidence interval containment probability
using the chi-square distribution.
notation for missing values.
string name of data for printing.
other arguments used in the plot: typeci
, typepstd
, pchci
, pchpstd
, colci
, colpstd
, pp
;
typeci
/ typepstd
, pchci
/ pchpstd
, colci
/ colpstd
set the type, plot character and colors of confidence
intervals / periodic mean values on the plot,
pp
should be positive to print and plot permest
values.
By default parameters are fixed to typeci = "o"
, typepstd = "b"
, pchci = 10
, pchpstd = 15
, colci = "red"
, colpstd = "blue"
, pp = 1
.
Harry Hurd
The series may contain missing values (we suggest using NaN
)
and the length of the series may not be
an integer multiple of the period. The program returns and plots the
periodic standard deviations with 1-alpha
confidence
intervals based on all non-missing values present for each particular
season.
The p-value for Barttlet's test for homogenity of variance \( \sigma(t)
\equiv \sigma\) is also computed.
Rejection of homogeneity
(based on the pspv
value) indicates a properly periodic variance,
but leaves open whether or
not series is simply the result of a stationary process subjected
to amplitude-scale modulation. To
resolve this\( R (t + \tau, t) \) for some \( \tau \neq 0 \)
need to be estimated.
Hurd, H. L., Miamee, A. G., (2007), Periodically Correlated Random Sequences:
Spectral Theory and Practice, Wiley InterScience.
permest
data(arosa)
dev.set(which=1)
persigest(t(arosa),12, 0.05, NaN,'arosa')
Run the code above in your browser using DataLab