Get loglikelihood of observed abundances for test timestep given predicted abundance probabilities, for a single draw from the posterior.

get_one_test_loglik(subsetted_dataset_item, abund_probabilities_one)

Arguments

subsetted_dataset_item

list with - at least - elements test (of abundance matrix and covaraites for test timestep) and test_timestep (the row number, of the full dataset, of the test timestep).

abund_probabilities_one

ONE matrix of abundance probabilities

Value

numeric, loglikelihood of the observed abundances from the test timestep given abund_probabilities