shift_sort_x: shift_sort_x

View source: R/shift_sort_x.r

shift_sort_xR Documentation

shift_sort_x

Description

Shifts choices so that the chosen zone will be automatically the first one

Usage

shift_sort_x(x, ch, y, distance, alts, ab)

Arguments

x

Matrix of choice possibilites from create_logit_input

ch

Data corresponding to actual zonal choice

y

Data corresponding to actual catch

distance

Data corresponding to distance

alts

Number of alternative choices in model

ab

Number of cost parameters + number of alts

Value

d: matrix of choice possibilites and distance


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