dNmixture_steps {nimbleEcology} | R Documentation |
Internal helper nimbleFunctions for dNmixture distributions
Description
None of these functions should be called directly.
Usage
nimNmixPois_logFac(numN, ff, max_index = -1)
dNmixture_steps(
x,
lambda,
Nmin,
Nmax,
sum_log_one_m_prob,
sum_log_dbinom,
usingAD = FALSE
)
dNmixture_BNB_steps(
x,
lambda,
theta,
Nmin,
Nmax,
sum_log_one_m_prob,
sum_log_dbinom,
usingAD = FALSE
)
dNmixture_BBP_steps(
x,
beta_m_x,
lambda,
s,
Nmin,
Nmax,
sum_log_dbetabinom,
usingAD = FALSE
)
dNmixture_BBNB_steps(
x,
beta_m_x,
lambda,
theta,
s,
Nmin,
Nmax,
sum_log_dbetabinom,
usingAD = FALSE
)
Arguments
numN |
number of indices in the truncated sum for the N-mixture. |
ff |
a derived vector of units calculated partway through the fast N-mixture algorithm. |
max_index |
possibly the index of the max contribution to the summation. For AD cases this is set by heuristic. For non-AD cases it is -1 and will be determined automatically. |
x |
x from dNmixture distributions |
lambda |
lambda from dNmixture distributions |
Nmin |
start of summation over N |
Nmax |
end of summation over N |
sum_log_one_m_prob |
sum(log(1-prob)) from relevant dNmixture cases |
sum_log_dbinom |
sum(log(dbinom(...))) from relevant dNmixture cases |
usingAD |
TRUE if called from one of the dNmixtureAD distributions |
theta |
theta from relevant dNmixture distributions |
beta_m_x |
beta-x from relevant dNmixture cases |
s |
s from relevant dNmixture distributions |
sum_log_dbetabinom |
sum(log(dBetaBinom(...))) from relevant dNmixture cases |
Details
These are helper functions for the N-mixture calculations. They don't have an interpretation outside of that context and are not intended to be called directly.