Set up the data input file to be passed to MakeADFun. This function
runs data cross-validation tests and appends several inputs to the data list
including model dimensions and processed inputs:
Arguments
- data_in
A
listcontaining the data inputs. Must include:last_yr(integer),scenarios_LL1,scenarios_surf,catch_LL1_case(integer),catch_surf_case(integer),sel_LL1_yrs,sel_LL2_yrs,sel_LL3_yrs,sel_LL4_yrs,sel_Ind_yrs,sel_Aus_yrs,sel_CPUE_yrs. Optional:af_data(defaults tosbt::age_freq).
Value
A list ready to be passed to MakeADFun. Key elements include:
- n_year, n_season, n_age, n_fishery
Integer scalars defining model dimensions
- catch_obs_ysf
Numeric array \[n_catch x n_season x n_fishery\] of observed catches
- length_mu_ysa, length_sd_a
Length-at-age parameters
- weight_fya
Numeric array \[n_fishery x n_year x n_age\] of weight-at-age
- af_obs, lf_obs
Age-frequency and length-frequency observations
- tag_release_cta, tag_recap_ctaa
Tagging release and recapture arrays
- pop_obs, hsp_obs, gt_obs
Close-kin genetics observations (POPs, HSPs, GTs)
- cpue_obs, aerial_survey, troll_obs
Survey indices
Details
n_year: derived fromfirst_yrandlast_yrn_season: set to 2n_length: not in usen_age: derived frommin_ageandmax_agen_fishery: set to 6age_a: sequence of modeled ages derived frommin_ageandmax_agelength_mu_ysa: derived from thelength_meaninputlength_sd_a: derived from thelength_sdinputdl_yal: derived fromlength_mu_ysaandlength_sd_aweight_fya: derived fromlength_mu_ysaandlength_sd_acatch_obs_ysf: derived fromcatch,catch_UA,scenarios_LL1, andscenarios_surfsel_change_year_fy: derived fromsel_change_sd_fy
This function produces the data input file to be passed to MakeADFun.
