discretefish_subroutine: discretefish_subroutine

View source: R/discretefish_subroutine.r

discretefish_subroutineR Documentation

discretefish_subroutine

Description

Subroutine to run chosen discrete choice model

Usage

discretefish_subroutine(
  catch,
  choice,
  distance,
  otherdat,
  initparams,
  optimOpt,
  func,
  methodname
)

Arguments

catch

Data corresponding to actual zonal choice

choice

Data corresponding to actual catch

distance

Data corresponding to distance

otherdat

Other data (as a list)

initparams

Initial parameter estimates for revenue/location-specific covariates then cost/distance

optimOpt

Optimization options [max iterations, (reltol) tolerance of x, report frequency, whether to report]

func

Name of likelihood function

methodname

Optimization method (see optim options)

Value

OutLogit: [outmat1 se1 tEPM2] (coefs, ses, tstats)
optoutput: optimization information
seoumat2: ses
MCM: Model Comparison metrics
H1: inverse hessian


allen-chen-noaa-gov/barebones.FishSET documentation built on March 1, 2024, 8:19 a.m.