growth rate of a ts
ts=growthr(ts,lag)
* ts = a timeseries
* lag = an integer (optional, set to 1 if not provided)
* ts = the growthr of the time series
load(GROCERDIR+'\data\pigiron.dat') gx = growthr(prigiron) // growth rate of the monthly series pigiron used for the Bry-Bosachna demo ga = growthr(x,12) // year on year growth rate of the monthly series pigiron. | ![]() | ![]() |