Learn R Programming

march (version 1.4)

march.indep.construct: Construct an independence model (zero-order Markov chain).

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

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.

See Also

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

Examples

Run this code
# NOT RUN {
# Build an independance model from the pewee data set.
model <- march.indep.construct(pewee)
print(model)
# }

Run the code above in your browser using DataLab