basic.series: Create basic time series

Description Usage Arguments Value Examples

Description

Create a basic time series regarding the parameters

Usage

1
basic.series(x, n=4, loess.span=0.6, start, freq=12)

Arguments

x

key points of the series to be adjusted

n

number of periods of the series

loess.span

span of the loess adjust

start

start date of the time series

freq

frequency of the time series

Value

returns the generated time series

Examples

1
2
3
4
set.seed(123)
kp <- c(100,110,140,120,90)
bs <- basic.series(kp, start=c(2008,1))
bs <- basic.series(kp, n=2, loess.span=0.4, start=c(2010,1))

jdanielnd/tsgen documentation built on May 18, 2019, 10:26 p.m.