Skip to contents

Q-function to replace log-likelihood function

Usage

Q_function(par, prob_log, omega_log, X, k, times)

Arguments

par

numeric vector for parameters need to be estimated

prob_log

mixture component weights(log)

omega_log

latent variables(log)

X

matrix for cluster

k

vector for the cluster number

times

vector for the x values or time points

Value

the Loglikelihood value