Learn R Programming

SMPracticals (version 1.3-1)

MClik: Likelihood Estimation for Markov Chains

Description

Computes maximum likelihood estimates of transition probabilities for stationary Markov chain models, of order 0 (independence) to 3.

This is intended for use with Practical 6.1 of Davison (2003), not as production code.

Usage

MClik(d)

Arguments

d
A sequence containing successive states of the chain

Value

  • orderorder of fitted chain
  • dfdegrees of freedom using in fitting
  • Lmaximum log likelihood for each order
  • AICAkaike information criterion for each order
  • oneone-way marginal table of counts
  • twotwo-way margin table of transitions
  • threethree-way marginal table of transitions
  • fourfour-way marginal table of transitions

References

Avery, P. J. and Henderson, D. A. (1999) Fitting Markov chain models to discrete state series such as DNA sequences. Applied Statistics, 48, 53--61.

Davison, A. C. (2003) Statistical Models. Cambridge University Press. Section 6.1.

Examples

Run this code
data(intron)

fit <- MClik(intron)

Run the code above in your browser using DataLab