complete.log.likelihood_q0_sameSigma | R Documentation |
q=0
Complete log-likelihood function for models with same error variance per component (xCx) and diagonal covariance structure per component (q=0
.
complete.log.likelihood_q0_sameSigma(x_data, w, mu, SigmaINV, z)
x_data |
|
w |
a vector of length |
mu |
|
SigmaINV |
|
z |
A vector of length |
complete log-likelihood value
Panagiotis Papastamoulis
library('fabMix')
data(waveDataset1500)
x_data <- scale(waveDataset1500[ 1:20, -1]) # data
z <- waveDataset1500[ 1:20, 1] # class
p <- dim(x_data)[2]
q <- 2
K <- length(table(z)) # 3 classes
# give some arbitrary values to the parameters:
set.seed(1)
w <- rep(1/K, K)
mu <- array( -0.1 + 0.2*runif(K * p), dim = c(K,p) )
SigmaINV <- array( 1, dim = c(p,p))
# compute the complete.log.likelihood ( -inf )
complete.log.likelihood_q0_sameSigma(x_data = x_data, w = w, mu = mu,
SigmaINV = SigmaINV, z = z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.