R/Mstep.binom.R

Defines functions Mstep.binom

Documented in Mstep.binom

Mstep.binom <- function(x, cond, pm, pn){
    if (is.null(pn)) stop("Variable \"size\" must be specified in pn")
    prob <- as.numeric(matrix(x, nrow=1) %*% cond$u)/
                as.numeric(matrix(pn$size, nrow=1) %*% cond$u)
    return(list(prob=prob))
}

Try the HiddenMarkov package in your browser

Any scripts or data that you put into this service are public.

HiddenMarkov documentation built on April 27, 2021, 5:06 p.m.