View source: R/flex_negllh_allGSI.R
I expect that most users interested in MLE of composition will be best served by using MLEwrapper
,
which preps data, calls this function, and then returns the results in a nice format. This function calculates the
likelihood for a given set of parameters, and may be useful to users who want MLE but want more control over how the
data is used and/or the optimization procedure. This function does not allow another variable. for that,
see flex_negllh_var
. This calculates a simplified version of the negative
log-likelihood (constants removed) for computational efficiency.
1 | flex_negllh_allGSI(params, nPBT, nGSI, ohnc, t, utGSI, ohnc_gsi)
|
params |
vector of paramaters to optimize |
nPBT |
number of PBT groups to estimate |
nGSI |
number of GSI groups to estimate |
ohnc |
vector of number of observed (PBT assigned) hatchery fish in each PBT and GSI group (gsi groups should be 0) |
t |
vector of tag rates for all PBT and GSI groups (gsi groups should be 0) |
utGSI |
vector of number of un-PBT assigned fish in each GSI group |
ohnc_gsi |
matrix of counts of fish GSI assigned to various groups |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.