Q_function function

Q-function to replace log-likelihood function

Q-function to replace log-likelihood function

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

Returns

the Loglikelihood value