InitialLawSM: Estimation of the initial law (semi-Markov model)

Description Usage Arguments Value Author(s) See Also Examples

View source: R/InitialLawSM.R

Description

For one sequence, estimation of the initial law by computating the limit law of the semi-Markovian chain.

For several sequences, estimation of the initial law by computating the first state frequencies.

Usage

1

Arguments

E

Vector of state space

seq

List of sequence(s)

q

Array of size SxSxKmax with the semi-Markov kernel (S = length(E))

Value

init

Vector of the initial distribution

Author(s)

Vlad Stefan Barbu, barbu@univ-rouen.fr
Caroline Berard, caroline.berard@univ-rouen.fr
Dominique Cellier, dominique.cellier@laposte.net
Mathilde Sautreuil, mathilde.sautreuil@etu.univ-rouen.fr
Nicolas Vergne, nicolas.vergne@univ-rouen.fr

See Also

StationaryLaw, estimSM, simulSM, estimMk, simulMk

Examples

1
2
3
4
5
6
seq = list(c("a","c","c","g","t","a","a","a","a","g","c","t","t","t","g"))
res = estimSM(seq = seq, E = c("a","c","g","t"), distr = "NP")
q = res$q
p = res$Ptrans

InitialLawSM(E = c("a","c","g","t"), seq = seq, q = q)

SMM documentation built on Jan. 31, 2020, 5:07 p.m.