powered by

Z-transforms observations of a time series or centers observations of a time series to the mean.

zt(x = NULL, ctype = 1)

vector of observations. Missing values are allowed.

the type of transformation. 1 = Z transform ((x - mean x)/ sd x); 2 = center (x - mean x). Default = 1

vector containing the transformed time series.

# NOT RUN { data(wolffish) zt(wolffish$index) # }

Run the code above in your browser using DataLab