Wrapper for get_one_test_loglik. Gets loglikelihood estimate of the test timestep for every draw from the posterior (or every draw supplied via abund_probabilities).

get_test_loglik(subsetted_dataset_item, abund_probabilities)

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

list of abund_probabilities; with an element for every draw from the posterior being considered.

Value

vector of loglikelihood of test data given every abund_probability estimate