march.mc.construct {march}R Documentation

Construct an homogeneous Markov Chain.

Description

A march.Mc-class 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-class 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-class of order order constructed w.r.t the dataset y and maxOrder.

Author(s)

Ogier Maitre

See Also

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

Examples

# 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)

[Package march version 3.3.2 Index]