params_grad: this calculates the gradient with respect to the params being...

Description Usage Arguments

View source: R/gradient_negllh_allGSI.R

Description

this is not intended for direct user-level use, but it is exported to allow the user to optionally specify it as a argument to pass to optim when using MLEwrapper. I recommend using it unless you have a specific reason not to.

Usage

1
params_grad(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.