KevinSee / DABOM

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

`configuration` argument and `calcTribEscape_GRA()` #47

Open mackerman44 opened 10 months ago

mackerman44 commented 10 months ago

I've attempted to use the calcTribEscape_GRA() function in the npt_develop branch of DABOM to no avail. My code chunk is as follows:

trib_summ = calcTribEscape_GRA(dabom_mod = dabom_output$dabom_mod,
                               stadem_mod = stadem_mod,
                               stadem_param_nm = "X.tot.new.wild",
                               parent_child = pc_nodes,
                               summ_results = T,
                               cred_int_prob = 0.95)

However, I get the error:

Error in compileTransProbs(dabom_mod, parent_child) :
!is.null(configuration) is not TRUE

I see that calcTribEscape_GRA() in the npt_develop branch uses the compileTransProbs() function with the arguments dabom_mod and parent_child. But looking at the compileTransProps() function I see it also accepts the configuration argument.

Does the calcTribEscape_GRA() need to be updated to include the configuration argument in compileTransProbs()? Alternatively, maybe calcTribEscape_GRA() just needs to inherit the parameters from compileTransProbs()? I'll continue to investigate, but wanted to write out my thoughts before I leave for the day.

It does appear that older versions of compileTransProbs() does not include the configuration argument in older versions, so maybe this was just a minor oversight in recent updates.