Learn R Programming

AnalyzeTS (version 2.2)

Greg.ts: Group regression models for Time-Series

Description

Building some regression models for time series.

Usage

Greg.ts(ts, p.max = 3, r = 4, plot = FALSE)

Arguments

ts
Univariate time series.
p.max
Greatest level of polynomial models.
r
Display results returned to the specified number of decimal places (default 3). (See round2str for details of r paramicter.)
plot
Let plot=TRUE to paint graph of obsevation series and interpolate series. Let plot=FLASE (default) to do not paint graph.

Value

Results are returned as a list containing the following components. Results are returned as a list containing the following components.

Details

luy thua: Y = a*t^b

luong giac: Y = a + b*sin(t) + c*cos(t)

hyperbol: Y = a + b/t

CS cong: ...

CS nhan

References

Vo Van Tai, 2012. Du bao san luong lua Viet Nam bang cac mo hinh toan hoc, Tap chi Khoa hoc Dai hoc Can Tho. 23b125-134.

See Also

The forecast.Greg.ts function using to predict for models fitted by Greg.ts function.

Examples

Run this code
data(enrollment)
Greg.ts(enrollment)

Run the code above in your browser using DataLab