compLikeli.Rd
Cpp function: Complete likelihood function of mixture distribution
compLikeli(X, Z, y, W, V)
X | a data matrix of input in experts network. |
---|---|
Z | a data matrix of input in gating network. |
y | a vector of response. |
W | parameters in experts network. |
V | parameters in gating network. |
A matrix of complete likelihood by compLikeli = pi * Likelihood = pi*(1/1+exp(-X*W))^y pi = exp(Z * V_i)/sum(Z * V)