Get the likelihood for a single cluster

general_cluster_like(data)

Arguments

data

data frame with the following columns

prob_inf

probability of onward transmission

n_inf

number infected by this person

Value

a single number, the likelihood