Skip to contents

Differencing, ordinary and seasonal (ch. 6 pp. 155-158)

Usage

morie_diffser(x, order = 1L, season = 1L)

Arguments

x

the series

order

number of successive differences

season

the differencing lag; use the period for seasonal

Value

list(w, mean, var, dropped, n)

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_diffser(V)
#> $w
#> [1] 1 1 1 1 1 1 1
#> 
#> $mean
#> [1] 1
#> 
#> $var
#> [1] 0
#> 
#> $dropped
#> [1] 1
#> 
#> $n
#> [1] 7
#>