Greg.ts: Group regression models for Time-Series

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Building some regression models for time series.

Usage

1
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.

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

Value

Results are returned as a list containing the following components.

Models

Formula of regression models.

Interpolate, Error

Two data frame where each column is a time series interpolate and error from regression model corresponding.

Author(s)

Hong Viet Minh <hongvietminh@gmail.com>

Pham Minh Truc <trucm1813014@gstudent.ctu.edu.vn>

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

1
2

AnalyzeTS documentation built on Dec. 9, 2019, 1:07 a.m.