LBSPR_NLLgtg: LBSPR Optimization function for GTG model

Description Usage Arguments Value Author(s)

View source: R/RcppExports.R

Description

Internal optimization function

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
LBSPR_NLLgtg(
  starts,
  LMids,
  LBins,
  LDat,
  gtgLinfs,
  MKMat,
  MK,
  Linf,
  ngtg,
  recP,
  usePen
)

Arguments

starts

a vector of starting parameters, relative SL50 (SL50/Linf), deltaSL (SL95-SL50)/Linf, and F/M (in log space)

LMids

a vector of the midpoints of the length classes

LBins

a vector of length classes

LDat

a vector of lenght frequencies. Must be same length as LMids

gtgLinfs

a vector of Linfs for the growth-type-groups

MKMat

a matrix of M/K for each GTG and length-class

MK

the M/K value

Linf

the Linf value for the population as a hole

ngtg

the number of growth-type-groups

recP

a vector of recruitment by GTG

usePen

logical to use penalty for extreme estimates of selectivity

Value

negative log-likelihood value

Author(s)

A. Hordyk


LBSPR documentation built on Oct. 6, 2021, 5:16 p.m.