R/poLCA.probHat.C.R

Defines functions poLCA.probHat.C

poLCA.probHat.C <-
function(rgivy,y,vp) {
    ret <-  .C("probhat",
                as.integer(t(y)),
                as.double(t(rgivy)),
                as.integer(length(vp$numChoices)),
                as.integer(dim(y)[1]),
                as.integer(vp$numChoices),
                as.integer(vp$classes),
                ph = double(sum(vp$numChoices)*vp$classes)
            )
    return(ret$ph)
}

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.