calc_likelihood_host: Function to calculate the likelihood of the host model

View source: R/evaluate_model.R

calc_likelihood_hostR Documentation

Function to calculate the likelihood of the host model

Description

Calculate the likelihood of observations at each site given MCMC samples of parameter estimates.

Usage

calc_likelihood_host(X, eta_samples, zeta_samples)

Arguments

X

three dimensional array of host detection data, number of sites by number of hosts by number of visits (J x N x K)

eta_samples

three dimensional array of MCMC samples for eta parameters, number of sites by number of hosts by number of iterations (J x N x S)

zeta_samples

four dimensional array of MCMC samples for eta parameters, number of sites by number of hosts by number of visits by number of iterations

Value

three dimensional array containing the likelihood of the detection data given parameter values at each MCMC iteration


philpatton/cowbird documentation built on March 2, 2023, 3:05 a.m.