mixture_nll | R Documentation |
Evaluates an n-mixture model negative log-likelihood given the parameters and the observations
mixture_nll(par, obs, skeleton, returnNLL = T, DMs = list())
par |
A list of parameters including mean, sd, and probs. Alternatively, a vector of parameters, with a skeleton to relist the parameters (parameter: skeleton). |
obs |
A matrix of observed values. |
skeleton |
The skeleton to |
returnNLL |
If TRUE, returns the value of the NLL rather than the likelihood for each point individually. If FALSE, also returns the output as an nS*nT matrix. |
DMs |
A named list of design matrices for covariate inclusion |
A matrix of evaluated densities for the count at each site and location, or the single real number valued negative log likelihood
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.