Learn R Programming

TSPred (version 4.0)

LT: Logarithmic Transformation

Description

The LT() function returns a natural logarithmic transformation of the provided time series. Analogously, LT10() returns a common (i.e., base 10) logarithmic transformation. LT.rev() and LT10.rev() reverse the transformations, respectively.

Usage

LT(x)
LT.rev(x)
LT10(x)
LT10.rev(x)

Arguments

x

A numeric vector or univariate time series of class ts.

Value

A vector of the same length as x containing the transformed values.

References

R. H. Shumway, D. S. Stoffer, Time Series Analysis and Its Applications: With R Examples, Springer, New York, NY, 4 edition, 2017.

See Also

DIF,detrend, MAS, BCT, PCT

Examples

Run this code
# NOT RUN {
data(NN5.A)
LT(NN5.A[,10])
# }

Run the code above in your browser using DataLab