tcsi: return time series with seasonal character randomly

Description Usage Arguments Examples

View source: R/vava_funset.R

Description

return time series with seasonal character randomly, including TC,S,I.

Usage

1
2
tcsi(n, frequency = 12, cyl = 60, intercept = 100, slope = 1,
  s = c(1:12), irr_adj = 0.1)

Arguments

n

number of observation

frequency

monthly: 12; quarter: 4; annual: 1.

cyl

cycle, mean long of cycle.

intercept

intercept of trend line.

slope

slope of trend line.

s

a vector specifing seasonal factor, containing weights for every month.

irr_adj

adjust irregular factor.

Examples

1
2
3
4
5
6
 
plot(tcsi,type = "l")

ts.tcsi<-ts(tcsi,frequency = 12)

plot(decompose(ts.tcsi))

Nisus-Liu/vava documentation built on May 7, 2019, 6:18 p.m.