Closed KevinSee closed 1 year 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.
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.
The following functions have separate versions for each version of DABOM (_xxx). Seems worth attempting to consolidate them into a single generic function:
createJAGSinputs_xxx
: look tocreateJAGSinputs_PRO()
for a possible starting point.compileTransProbs_xxx
: look tocompileTransProbs_PRO()
for an example that doesn't require arenameTransParams_xxx()
function. Using a parent-child table of sites, can we build a loop that goes through each parent site and multiplies the child transitions by the parent transition?setBranchNums_xxx
: ensure that the genericsetBranchNums()
works for all versionssetSavedParams_xxx
: I believe that the genericsetSavedParams()
works for all versions, so the others can be deleted