batchLL function provides the batch marking log-likelihood
batchLL(phi, p, R, begin_g, end_g)fr returns the log sum of the Hidden Markov Model.
The probability of surviving and remaining in the population between occasions t and t +1, given an individual was alive and in the population at occasion t. This must be a number between 0 and 1.
The probability of capture at occasion t. This must be a number between 0 and 1.
The number of individuals marked and released at sampling occasion g from batch group g; g = 1,2,...,G. This must be an integer.
The beginning of the occasion.
The end of the occasion.