bbturns: turns of a time series

Description Usage Arguments Details Value Author(s) Examples

View source: R/bbturns.R

Description

bbturns returns turns information of a time series, selected by B-B algorithm.

Usage

1
2
bbturns(x, neighbour = 5, mincycle = 15, phase = 5, extr_limit = 3.5,
  end_num = 6, mcd_gap = 8)

Arguments

x

a numeric vector.

neighbour

find local extreme within +/- neighbour.

mincycle

numeric, one cycle must have at least mincycle months, if a monthly time series.

phase

numeric, a phase of one cycle must have length of phase months, phase means peak to peak or trough to trough.

extr_limit

numeric, some values will be regarded as extreme who out range of +/- extr_limit standard deviation of ratio of irregular and original series.

end_num

peak or trough should be apart form either end of series by at least end_num months.

mcd_gap

max gap for calculate ratio when getting MCD value, default is 8.

Details

B-B algorithm proposed by Gerhard Bry and Charlotte Boschan in 1971, see http://papers.nber.org/books/bry_71-1.

Value

Author(s)

Hejun Liu, Beijing liuhejunlj@163.com

Examples

1
2

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