R/poLCA.dLL2dBeta.C.R

Defines functions poLCA.dLL2dBeta.C

#' \deprecated
#' @noRd
poLCA.dLL2dBeta.C <-
function(rgivy,prior,x) {
    classes <- dim(prior)[2]
    numx <- dim(x)[2]
    ret <-  .C("d2lldbeta2",
                as.double(t(rgivy)),
                as.double(t(prior)),
                as.double(t(x)),
                as.integer(dim(x)[1]),
                as.integer(classes),
                as.integer(numx),
                grad = double((classes-1)*numx),
                hess = double(((classes-1)*numx)^2)
            )
    return(list(grad=ret$grad,hess=-matrix(ret$hess,ncol=((classes-1)*numx),byrow=TRUE)))
}

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.