Q-function to replace log-likelihood function
biQ_function(par, prob_log, omega_log, X, k, n1, n2, times1, times2)
par
: numeric vector for parameters need to be estimatedprob_log
: mixture component weights(log)omega_log
: latent variables(log)X
: matrix for clusterk
: vector for the cluster numbern1
: scalar for number of column contain first trait/location etcn2
: scalar for number of column contain second trait/location etctimes1
: vector for the x values or time pointstimes2
: vector for the x values or time pointsthe Loglikelihood value
Useful links