Learn R Programming

march (version 1.4)

march.mc.construct: Construct an homogeneous Markov Chain.

Description

A march.Mc object of order order is constructed from the dataset y. The first maxOrder-order elements of each sequence of the dataset are truncated in order to return a model which can be compared with other Markovian models of visible order maxOrder.

Usage

march.mc.construct(y, order, maxOrder = order)

Arguments

y

the march.Dataset from which the homogeneous Markov chain will be constructed.

order

the order of the constructed Markov Chain.

maxOrder

the maximum visible order among the set of Markovian models to compare.

Value

the march.Mc of order order constructed w.r.t the dataset y and maxOrder.

See Also

march.Mc-class, march.Model-class, march.Dataset-class.

Examples

Run this code
# NOT RUN {
# pewee dataset is a data object of the march package in march.Dataset class format.
model <- march.mc.construct(pewee,2)

# print the reduced form of the transition matrix of the Markovian Model.
print(model@RC)
# }

Run the code above in your browser using DataLab