KevinSee / DABOM

Dam Adult Branch Occupancy Model
https://kevinsee.github.io/DABOM/
Other
1 stars 5 forks source link

Make these functions generic #19

Closed KevinSee closed 1 year ago

KevinSee commented 3 years ago

The following functions have separate versions for each version of DABOM (_xxx). Seems worth attempting to consolidate them into a single generic function:

KevinSee commented 3 years ago

I believe I have a generic writeDABOM() function now. With that, I have generic setInitialValues() and createJAGSinputs() functions that seem to work. They involve using the generic setBranchNums() and setSavedParams() functions.

However, now I need to think about how to generate a generic compileTransProbs() function.

KevinSee commented 1 year ago

I added a generic compileTransProbs() to the develop branch. It utilizes the parent-child table and PITcleanr's buildPaths() function to perform the appropriate multiplication. It also added black boxes for even the binomial transitions.