for(ksp in 1:nspp) { # Prey lop
for(k_sex in 1:nsex[ksp]) { # Prey sex loop
for(k_age in 1:nages[ksp]) { # Prey age loop
for(yr in 1:nyrs) {
# Type 2 MSVPA predation mortality
# - Sum average N * ration * suitability / available food across all predators for each prey
M2[ksp, k_sex, k_age, yr] <-
sum(avgN_at_age[, , , yr] *
ration[, , , yr] *
suit_main[, , , ksp, k_sex, k_age, yr] /
avail_food[, , , yr])
}
}
}
William T. Stockhausen
Research Fishery Biologist, Alaska Fisheries Science Center
NOAA Fisheries | U.S. Department of Commerce
Office: (206) 526-4241
To post to this group, send email to us...@tmb-project.org. Before posting, please check the wiki and issuetracker at https://github.com/kaskr/adcomp/. Please try to create a simple repeatable example to go with your question (e.g issues 154, 134, 51). Use the issuetracker to report bugs.
---
You received this message because you are subscribed to the Google Groups "TMB Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmb-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tmb-users/9931c43c-bba3-410c-8709-18e4411b27cbn%40googlegroups.com.