R/poLCA.vectorize.R

Defines functions poLCA.vectorize

poLCA.vectorize <-
function(probs) {
    classes <- nrow(probs[[1]])
    vecprobs <- unlist(lapply(probs,t))
    numChoices <- sapply(probs,ncol)
    return(list(vecprobs=vecprobs,numChoices=numChoices,classes=classes))
}

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.