flex_negllh_allGSI: calculate the negative log-likelihood with only PBT and GSI...

Description Usage Arguments

View source: R/flex_negllh_allGSI.R

Description

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.

Usage

1
flex_negllh_allGSI(params, nPBT, nGSI, ohnc, t, utGSI, ohnc_gsi)

Arguments

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


delomast/fishCompTools documentation built on Jan. 11, 2021, 1:51 a.m.