I tried to replicate the results described in the Markov Models for Health Economic Evaluations:
The R Package "heemod" vignette. But it throws an error in the res_dsa () function and hence the subsequence commands.
res_dsa <- run_dsa(res_mod, dsa = def_dsa)
Running DSA on strategy 'base'...
|=========================================================================================|100% ~0 s remaining Running DSA on strategy 'med'...
|=========================================================================================|100% ~0 s remaining Running DSA on strategy 'surg'...
|=========================================================================================|100% ~0 s remaining
plot(res_dsa, result = "cost", strategy = "med")
Error: predicate must be a closure or function pointer
I tried to replicate the results described in the Markov Models for Health Economic Evaluations: The R Package "heemod" vignette. But it throws an error in the res_dsa () function and hence the subsequence commands.
res_dsa <- run_dsa(res_mod, dsa = def_dsa) Running DSA on strategy 'base'... |=========================================================================================|100% ~0 s remaining Running DSA on strategy 'med'... |=========================================================================================|100% ~0 s remaining Running DSA on strategy 'surg'... |=========================================================================================|100% ~0 s remaining
plot(res_dsa, result = "cost", strategy = "med") Error:
predicate
must be a closure or function pointer