R/poLCA.updatePrior.R

Defines functions poLCA.updatePrior

poLCA.updatePrior <-
function(b,x,R) {
    b <- matrix(b,ncol=(R-1))
    exb <- exp(x %*% b)
    p <- cbind(1,exb)/(rowSums(exb)+1)
    return(p)
}

Try the poLCA package in your browser

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

poLCA documentation built on April 25, 2022, 5:06 p.m.