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

Description Usage Arguments Details

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 very 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

Details

uses the output of test_gradient (chain rule for partial derivatives)


delomast/devMCpbt documentation built on Nov. 14, 2019, 2:39 p.m.