estimate loglikelihood.