R/general-loglike.R
general_loglike_mc_trees.Rd
Calculate the log likelihood for a set of data, averaged by n
general_loglike_mc_trees(mc_trees)
mc_trees | data frame with either (the cluster_id, person_id, n_inf, cluster_size, prob_inf) or additionally with the covariate information |
---|
data frame of average loglikelihood for a cluster of a given size