R/poLCA.unvectorize.R

Defines functions poLCA.unvectorize

#' \deprecated
#' @noRd
poLCA.unvectorize <- function(vp) {
  probs <- list()
  idx <- c(0, cumsum(vp$numChoices * vp$classes))
  for (i in 1:length(vp$numChoices)) {
    probs[[i]] <- matrix(vp$vecprobs[(idx[i] + 1):idx[i + 1]],
      nrow = vp$classes, byrow = TRUE
    )
  }
  return(probs)
}

Try the poLCAParallel package in your browser

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

poLCAParallel documentation built on Feb. 20, 2026, 1:09 a.m.