stock: Convert the data into a transition matrix for stock market

Description Usage Arguments Value Examples

Description

This method is used to create a transition matrix from raw data of stock prices.

Usage

1
stock(y, pricecolumn, interval = 10)

Arguments

y

Data of the stock prices

pricecolumn

The index of the column containg the prices

interval

The range for the state "non-significant". The default value is 10. If interval = 0, "non-significant" state will exist when no price change.

Value

The transition matrix of the Markov chain

Examples

1
2

ZiqingHo/BasicMC documentation built on May 21, 2019, 2:29 a.m.