Closed KevinSee closed 5 years ago
Add a "ladder_open" to the JAGS data, and multiply weekly estimates by 1 or 0 depending on whether the ladder seems to be open. This should keep all weeks in the model, from start date to end date.
I added a "ladder" object to the JAGS data, which is either 0 or 1, depending on whether the ladder is open or not. Now the model cycles through all weeks consecutively, but when the ladder is closed, the total escapement, as well as the day time passage and re-ascension weeks are fixed to 0.
Currently STADEM filters out weeks when the window and trap are closed, but this causes issues when the results are merged with DABOM results, where the week numbering doesn't do that. However, running STADEM without that filter means that JAGS produces a non-zero estimate of escapement for those weeks when the window and trap are closed, when it should probably be fixed at 0 since the ladder is probably not operating those weeks.