https://github.com/cran/dse
Tip revision: bbfde2f4b8a2382769a2591a7b594943a0e5e1dd authored by Paul Gilbert on 14 March 2011, 00:00:00 UTC
version 2011.3-1
version 2011.3-1
Tip revision: bbfde2f
percentChange.TSdata.Rd
\name{percentChange.TSdata}
\alias{percentChange.TSdata}
\alias{percentChange.TSestModel}
\title{Calculate percent change}
\description{Calculate the percent change relative to the data lag periods prior.
}
\usage{
\method{percentChange}{TSdata}(obj, base=NULL, lag=1, cumulate=FALSE, e=FALSE, ...)
\method{percentChange}{TSestModel}(obj, base=NULL, lag=1, cumulate=FALSE, e=FALSE, ...)
}
\arguments{
\item{obj}{An object of class TSdata or TSestModel}
\item{e}{see the default method.}
\item{base}{see the default method.}
\item{lag}{see the default method.}
\item{cumulate}{see the default method.}
\item{...}{arguments passed to other methods.}
}
\value{
For an object of class TSdata the percent change calculation is done
with the output data and the result is an object of class TSdata (or a list of
objects of class TSdata).
For an object of class TSestModel the percent change calculation is done
with \code{estimates$pred} and the result is an object of class TSdata (or a
list of objects of class TSdata).
}
\details{See \code{\link[tframe]{percentChange}}.}
\seealso{
\code{\link[tframe]{percentChange}}
\code{\link[tframe]{ytoypc}}
}
\examples{
data("eg1.DSE.data", package="dse")
z <- percentChange(outputData(eg1.DSE.data))
}
\keyword{ts}