I made sure to use a define_parameters() statement before running my model and was able to get a PSA to work, but this keeps happening when I try to run a DSA:
se <- define_dsa( sens,0.93,1, spec,0.93,0.98, prev,0.002,0.041, mort,0.14,0.20 )
res_dsa <- run_dsa( model = res_mod_combined, dsa = se )
Running DSA on strategy 'test'...
Error: Columns spec, prev, mort not found
I made sure to use a
define_parameters()
statement before running my model and was able to get a PSA to work, but this keeps happening when I try to run a DSA:se <- define_dsa( sens,0.93,1, spec,0.93,0.98, prev,0.002,0.041, mort,0.14,0.20 )
res_dsa <- run_dsa( model = res_mod_combined, dsa = se )
Running DSA on strategy 'test'... Error: Columns
spec
,prev
,mort
not found