transition_prob.Rd
Compute the transition probability
transition_prob(p, params, duplication, state, array, as_log = FALSE)
conditional_prob(p, params, duplication, state, array, i, j, as_log = FALSE)
An object of class geese
or flock
.
A vector of model parameters.
logical scalar. Type of evolutionary event.
logical vector. State of the parent.
matrix indicating the state of the offspring (rows = function, cols = offspring).
logical scalar. When TRUE
returns the log.
Locations (index from zero) of the cell to compute.
conditional_prob
computes the so-called "Gibbs sampling"
probability, in which the likelihood of observing Y(i,j) = 1 conditional
on the rest of the data is computed.