R/mnlfa_proc_inits_prior.R

Defines functions mnlfa_proc_inits_prior

## File Name: mnlfa_proc_inits_prior.R
## File Version: 0.02

mnlfa_proc_inits_prior <- function(theta, N)
{
    TP <- nrow(theta)
    w1 <- stats::dnorm( theta[,1] )
    pi.k <- w1 / sum(w1)
    prior <- matrix( pi.k, nrow=N, ncol=TP, byrow=TRUE)
    return(prior)
}

Try the mnlfa package in your browser

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

mnlfa documentation built on May 18, 2022, 9:05 a.m.