library(markovchain)
data("preproglucacon", package = "markovchain")
= preproglucacon$preproglucacon
x
head(x)
[1] "G" "T" "A" "T" "T" "A"
Avery and Henderson (1999) discusses the use of Markov chains in modeling DNA sequences (in the preproglucacon protein). The data set preproglucacon
in the markovchain
package contains related data.
library(markovchain)
data("preproglucacon", package = "markovchain")
= preproglucacon$preproglucacon
x
head(x)
[1] "G" "T" "A" "T" "T" "A"
markovchain
package to test if the observed sequence can be reasonably considered an observation from a (first order) Markov chain