Skip to content

Commit

Permalink
Correction in density dependence wight function to coincide with the …
Browse files Browse the repository at this point in the history
…dd_mod nomenclature
  • Loading branch information
MirenAltuna committed Jul 12, 2024
1 parent 5705a9f commit 543cd1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/OM_1a2_DensityDependent_weight_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ ddwAgeLFD <- function(biol, stknm, year, season, ctrl, covars, ...) {

B <- quantSums((biol@wt*biol@n)[,year-1,,season,])[drop=T]

condb <- predict(dd_mod, data.frame(biomass = B)) # Predict the "b" parameter of the length-weight relationship.
condb <- predict(dd_mod, data.frame(B = B)) # Predict the "b" parameter of the length-weight relationship.
mx.condb <- matrix(condb, dim(biol@n)[1], dim(biol@n)[6], byrow = TRUE)

wage <- a * mx.lfd^mx.condb/1000 # in tonnes
Expand Down

0 comments on commit 543cd1f

Please sign in to comment.