get_one_test_loglik: Get test row logliklihood (for one draw)

Description Usage Arguments Value

View source: R/subset_run_helpers.R

Description

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

Usage

1
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


diazrenata/cvlt documentation built on Dec. 19, 2021, 11:08 p.m.