llEM: non-observed count log-likelihood of predators preferances

Description Usage Arguments

View source: R/likelihood.R

Description

log-likelihood for non-observed count data; model with EM

Usage

1
llEM(Zdst, Ydst, lambda, gamma, J, I, c = NULL)

Arguments

Zdst

matrix of sums of indicators whether or not predator ate prey species s during occurrence t; TxS

Ydst

matrix sum of number of caught prey species s during occurrence t; TxS

lambda

matrix of parameters representing rates predator ate prey species s in time period t; TxS

gamma

matrix of parameters representing rates traps caught prey species s in time period t; TxS

J

vector of predators caught in each time period

I

vector of number of days all traps were left out in a given time period

c

scalar in null hypotheses


spiders documentation built on May 30, 2017, 3:31 a.m.