summary.dmm: Summary of a drifting Markov model

View source: R/methods.R

summary.dmmR Documentation

Summary of a drifting Markov model

Description

Summarizes a drifting Markov model: its characteristics, the stationary laws of the states at the beginning, in the middle and at the end of the sequence and, when sequences are given, their length, log-likelihood, AIC and BIC.

Usage

## S3 method for class 'dmm'
summary(object, sequences = NULL, ...)

## S3 method for class 'summary.dmm'
print(x, digits = 4, ...)

Arguments

object

An object of class dmm

sequences

(Optional) A character vector or a list of character vectors representing one or several sequences

...

Not used

x

An object of class summary.dmm

digits

Default=4. Number of significant digits

Value

An object of class summary.dmm: a list with the elements order, degree, length, states, nb.param, init, stationary (matrix of the stationary laws of the states at the positions 0, n/2 and n) and fit (data frame with the length, log-likelihood, AIC and BIC of each sequence, or NULL)

See Also

loglik, aic, bic, getStationaryLaw

Examples

data(lambda, package = "drimmR")
x <- fitdmm(lambda, 1, 1, c("a", "c", "g", "t"), init.estim = "freq")
summary(x, lambda)

drimmR documentation built on Dec. 2, 2026, 1:07 a.m.