Learn R Programming

bbdetection (version 1.0)

Identification of Bull and Bear States of the Market

Description

Implements two algorithms of detecting Bull and Bear markets in stock prices: the algorithm of Pagan and Sossounov (2002, ) and the algorithm of Lunde and Timmermann (2004, ). The package also contains functions for printing out the dating of the Bull and Bear states of the market, the descriptive statistics of the states, and functions for plotting the results. For the sake of convenience, the package includes the monthly and daily data on the prices (not adjusted for dividends) of the S&P 500 stock market index.

Copy Link

Version

Install

install.packages('bbdetection')

Monthly Downloads

280

Version

1.0

License

GPL-3

Maintainer

Valeriy Zakamulin

Last Published

April 1st, 2021

Functions in bbdetection (1.0)

djiam

Monthly data on the Dow Jones Industrial Average index
run_dating_alg

Runs the dating algorithm to identify Bull and Bear states
sp500m

Monthly data on the S&P 500 index
bb.summary.stat

Prints out the summary statistics of bull-bear states
setpar_dating_alg

Sets the paramters of the dating algorithm
run_filtering_alg

Runs the filtering algorithm to identify Bull and Bear states
djiad

Daily data the Dow Jones Industrial Average index
setpar_filtering_alg

Sets the paramters of the filtering algorithm
bb.plot

Plots the log of prices and highlight bear states
bb.dating.states

Prints out the dating of bull-bear states
sp500d

Daily data the S&P 500 index