heemod sensitivity analysis error: Can't subset columns that don't exist.

I am trying to run a Markov Model using heemod. I've set it up following the CRAN vignettes provided. Everything runs fine until I try to run the sensitivity analysis. I keep getting the message:
Error: Can't subset columns that don't exist.
x Columns p_curr_PFStoMets, p_new_PFStoMets, p_MetstoDeath, cost_drugOld, cost_drugNew, etc. don't exist.

My parameters are set up as follows:
par_mod <- define_parameters(
p_PFStoDeath = 0.01,
p_curr_PFStoMets = 0.16,
p_new_PFStoMets = 0.12,
p_MetstoDeath = 0.10,
cost_drugOld = 1200,
cost_drugNew = 10100,
cost_Mets = 43000,
qaly_PFS = 0.8,
qaly_Mets = 0.6,
qaly_Death = 0
)

Following the run, I programmed the deterministic sensitivity analysis as follows:
def_dsa <- define_dsa(
p_PFStoDeath, 0.008, 0.018,
p_curr_PFStoMets, 0.085, 0.23,
p_new_PFStoMets, 0.1, 0.15,
p_MetstoDeath, 0.06, 0.14,
cost_drugOld, 840, 1450,
cost_drugNew, 9500, 14500,
cost_Mets, 32000, 55000,
qaly_PFS, 0.75, 0.89,
qaly_Mets, 0.52, 0.67
)
##Run the Deterministic Sensitivity Analysis (DSA)
res_dsa <- run_dsa(
model = res_mod,
dsa = def_dsa
)

I've searched and can't figure out where the problem is. Any help welcome.

I don't see this object. See the FAQ: How to do a minimal reproducible example reprex for beginners.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.