strat_data: Prepare simulated data for stratified analysis

View source: R/run_strat.R

strat_dataR Documentation

Prepare simulated data for stratified analysis

Description

Generate set details (setdet), length-frequency (lf) and age-frequency (af) data for stratified analysis

Usage

strat_data(sim, length_group = 3, alk_scale = "division")

Arguments

sim

Simulation from sim_survey

length_group

Size of the length frequency bins

alk_scale

Spatial scale at which to construct and apply age-length-keys: "division", "strat" or "set".

Value

Returns a list including set details (setdet), length-frequencies (lf), and age-frequencies (af).


SimSurvey documentation built on Sept. 19, 2023, 5:07 p.m.