fishmethods (version 1.12-1)

zt: Z-transform or center a time series

Description

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

Usage

zt(x = NULL, ctype = 1)

Value

vector containing the transformed time series.

Arguments

x

vector of observations. Missing values are allowed.

ctype

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

Author

Gary A. Nelson, Massachusetts Division of Marine Fisheries gary.nelson@mass.gov

Details

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

Examples

Run this code
data(wolffish)
zt(wolffish$index) 

Run the code above in your browser using DataLab