Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

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

Details

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

Value

vector containing the transformed time series.

Author(s)

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

Examples

data(wolffish)
zt(wolffish$index)

fishmethods

Fishery Science Methods and Models

v1.11-1
GPL (>= 2)
Authors
Gary A. Nelson <gary.nelson@mass.gov>
Initial release
2019-12-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.