Map natural mortality parameters to a block structure
Source:R/setup_biologicals.R
do_natmort_mapping.RdBuilds the M_blocks index array and the ln_M factor map. Each
combination of blocks takes a sequential integer, and every cell in a block
shares one ln_M.
Usage
do_natmort_mapping(
input_list,
M_spec,
M_popblk_spec_vals,
M_regionblk_spec_vals,
M_yearblk_spec_vals,
M_seasblk_spec_vals,
M_ageblk_spec_vals,
M_sexblk_spec_vals
)Arguments
- input_list
Named list with
$data,$parand$map.- M_spec
"est_ln_M"estimatesln_Macross the blocks,"fix"maps every parameter toNA.- M_popblk_spec_vals
List of integer vectors assigning population indices to blocks, e.g.
list(1, 2)orlist(1:2).- M_regionblk_spec_vals
List of integer vectors assigning region indices to blocks, e.g.
list(1:3, 4:5).- M_yearblk_spec_vals
List of integer vectors assigning year indices to blocks, e.g.
list(1:10, 11:30).- M_seasblk_spec_vals
List of integer vectors assigning season indices to blocks, e.g.
list(1, 2).- M_ageblk_spec_vals
List of integer vectors assigning age indices to blocks, e.g.
list(1:5, 6:10).- M_sexblk_spec_vals
List of integer vectors assigning sex indices to blocks,
list(1:2)for one shared rate orlist(1, 2)for sex-specific mortality.