.BG
.VE $Header: /usr3/s/current/s/.help/RCS/ts,v 1.2 83/12/30 19:36:05 rab Exp $
.FN ts
.TL
ts: Create Time-Series
.CS
ts(data, start, nper, end, tsp)
.PP
.AG data
vector giving the data values for the time-series.
.AG start
starting date for the series, in years, e.g., February, 1970
would be 1970+(1/12) or 1970.083.  If `start' is a vector
with at least two data values, the first is interpreted as
the year, and the second as the number of npers into the
year; e.g., February, 1970 could be c(1970,2).
.AG nper
periodicity of the series, in observations per year, e.g.
monthly data has `nper'=12, yearly has `nper'=1.
.AG end
ending date for the series.
.AG tsp
real vector giving the values for `start', `end' and `nper'.
`tsp' may be used in place of these 3 arguments.
.RT
time-series with the given `data' and `start', `end',
`nper'.
.PP
`ts' checks that the number of observations is compatible
with the specified dates.  Default values for `start', `end'
and `nper' are 1, `len(data)', and 1.
If only two of `start', `end', and `nper' are given,
the other parameter will be computed based on the given values
and `len(data)'.
.PP
Any periodic data can be fit into the time-series framework.
Hourly data might use days for `start' and `end' with `nper'=24;
daily data could use weeks with `nper'=7.
.KW ts*
.KW structure
.WR
