R/slca_calc_class_probabilities.R

Defines functions slca_calc_class_probabilities

## File Name: slca_calc_class_probabilities.R
## File Version: 0.04

slca_calc_class_probabilities <- function( delta, delta.designmatrix )
{
    G <- ncol(delta)
    pi.k <- matrix(0, nrow=nrow(delta.designmatrix), ncol=G)
    for (gg in 1:G){
        pi.k[,gg] <- cdm_sumnorm( exp( delta.designmatrix %*% delta[,gg] ) )
    }
    return(pi.k)
}

Try the CDM package in your browser

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

CDM documentation built on Aug. 25, 2022, 5:08 p.m.