The PCT() function returns a transformation of the provided time series using a Percentage Change transformation. PCT.rev() reverses the transformation.
Usage
PCT(x)
PCT.rev(p,x0)
Arguments
x
A numeric vector or univariate time series of class ts.
p
A numeric vector or univariate time series of percentage changes. Possibly returned by PCT().
x0
Initial value/observation of x (x[1]). First known non-transformed value used to recursively obtain the original series.
Value
A vector of length length(x)-1 containing the transformed values.
Details
The Percentage Change transformation is given approximately by $$$$ where n=length(x).
References
R.H. Shumway and D.S. Stoffer, 2010, Time Series Analysis and Its Applications: With R Examples. 3rd ed. 2011 edition ed. New York, Springer.