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.
I've attempted to use the
calcTribEscape_GRA()function in thenpt_developbranch ofDABOMto no avail. My code chunk is as follows:However, I get the error:
I see that
calcTribEscape_GRA()in thenpt_developbranch uses thecompileTransProbs()function with the argumentsdabom_modandparent_child. But looking at thecompileTransProps()function I see it also accepts theconfigurationargument.Does the
calcTribEscape_GRA()need to be updated to include theconfigurationargument incompileTransProbs()? Alternatively, maybecalcTribEscape_GRA()just needs to inherit the parameters fromcompileTransProbs()? 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 theconfigurationargument in older versions, so maybe this was just a minor oversight in recent updates.