calc_likelihood_cowbird: Function to calculate the likelihood of the cowbird model

View source: R/evaluate_model.R

calc_likelihood_cowbirdR Documentation

Function to calculate the likelihood of the cowbird model

Description

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

Usage

calc_likelihood_cowbird(Y, theta_samples, psi_samples)

Arguments

Y

matrix of host detection data, number of sites by number of visits (J x K)

theta_samples

matrix of MCMC samples for theta parameters, number of sites by by number of visits by number of iterations (J x K x S)

psi_samples

matrix of MCMC samples for eta parameters, number of sites by number of iterations

Value

matrix 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.