R/poLCA.postClass.C.R

Defines functions poLCA.postClass.C

#' \deprecated
#' @noRd
poLCA.postClass.C <- function(prior, vp, y) {
  posterior <- double(dim(y)[1] * vp$classes)
  postclass(
    t(prior),
    vp$vecprobs,
    t(y),
    length(vp$numChoices),
    dim(y)[1],
    vp$numChoices,
    vp$classes,
    posterior
  )
  posterior <- matrix(posterior, ncol = vp$classes, byrow = TRUE)
  return(posterior)
}

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.