Prepare simulated data for stratified analysis
Generate set details (setdet), length-frequency (lf) and age-frequency (af) data for stratified analysis
strat_data(sim, length_group = 3, alk_scale = "division")
sim
: Simulation from sim_survey
length_group
: Size of the length frequency binsalk_scale
: Spatial scale at which to construct and apply age-length-keys: "division", "strat" or "set".Returns a list including set details (setdet
), length-frequencies (lf
), and age-frequencies (af
).