@marcnadon I was trying to figure out why the cpue standardize function was not working for VALO and I think I found a small issue when it was doing model selection. If the new model was not better than the previous model the loop would stop but it wasn't saving the last best model as LastModel which was used to write out the Best.P.Model.Formula. For VALO, the full model was the best model so it didn't have anything to write out as the LastModel. To fix this I added lines 107 and 154 LastModel <- aModel
before it overwrites aModel with the next model formula (previous model - variable to be removed). I made this change in commit 8c96600.
@marcnadon I was trying to figure out why the cpue standardize function was not working for VALO and I think I found a small issue when it was doing model selection. If the new model was not better than the previous model the loop would stop but it wasn't saving the last best model as
LastModel
which was used to write out theBest.P.Model.Formula
. For VALO, the full model was the best model so it didn't have anything to write out as theLastModel
. To fix this I added lines 107 and 154LastModel <- aModel
before it overwritesaModel
with the next model formula (previous model - variable to be removed). I made this change in commit 8c96600.