Construct an independence model (zero-order Markov chain).

Share:

Description

Construct a independence model from a given march.Dataset, the first maxOrder elements of each sequence being truncated in order to return a model which can be compared with other Markovian models of visible order maxOrder.

Usage

1
march.indep.construct(y, maxOrder = 0)

Arguments

y

the Dataset for march package from which construct the model.

maxOrder

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

Value

The march.Indep-class constructed using dataset y and maxOrder.

Author(s)

Ogier Maitre

See Also

march.Indep-class, march.Model-class, march.Dataset-class.

Examples

1
2
3
# Build an independance model from the pewee data set.
model <- march.indep.construct(pewee)
print(model)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.