compute_nll | R Documentation |
Compute negative log-likelihood for EcoState model
compute_nll(
p,
taxa,
years,
noB_i,
type_i,
n_species,
project_vars,
DC_ij,
Bobs_ti,
Cobs_ti,
Nobs_ta_g2,
Wobs_ta_g2,
log_prior,
fit_eps,
fit_nu,
stanza_data,
settings,
control
)
p |
list of parameters |
taxa |
Character vector of taxa included in model. |
years |
Integer-vector of years included in model |
noB_i |
Boolean vector indicating which taxa have no B value |
type_i |
character vector indicating whether a taxon is "hetero", "auto", or "detritus" |
n_species |
number of species |
project_vars |
function to integrate differential equation |
DC_ij |
Diet projections matrix |
Bobs_ti |
formatted matrix of biomass data |
Cobs_ti |
formatted matrix of catch data |
Nobs_ta_g2 |
formatted list of age-comp data |
Wobs_ta_g2 |
formatted list of weight-at-age data |
log_prior |
A user-provided function that takes as input the list of
parameters |
fit_eps |
Character-vector listing |
fit_nu |
Character-vector listing |
stanza_data |
output from |
settings |
Output from |
control |
output from ecostate_control |
Given a list of parameters, calculates the joint negative log-likelihood, where the Laplace approximation is then used to marginalize across random effects to calculate the log-marginal likelihood of fixed effects. The joint likelihood includes the fit to fishery catches, biomass indices, age-composition data, weight-at-age data, priors, and the distribution for random effects.
The joint negative log-likelihood including contribution of priors and fit to data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.