View source: R/get_nmb_sampler.R
get_nmb_sampler | R Documentation |
do_nmb_sim()
or
screen_simulation_inputs()
Make a NMB sampler for use in do_nmb_sim()
or
screen_simulation_inputs()
get_nmb_sampler(
outcome_cost,
wtp,
qalys_lost,
high_risk_group_treatment_effect,
high_risk_group_treatment_cost,
low_risk_group_treatment_effect = 0,
low_risk_group_treatment_cost = 0,
use_expected_values = FALSE,
nboot = 10000
)
outcome_cost |
The cost of the outcome. Must be provided if |
wtp |
Willingness-to-pay. |
qalys_lost |
Quality-adjusted life years (QALYs) lost due to healthcare event being predicted. |
high_risk_group_treatment_effect |
The effect of the treatment provided to patients given high risk prediction. Can be a number of a function. Provide a function to incorporate uncertainty. |
high_risk_group_treatment_cost |
The cost of the treatment provided to patients given high risk prediction. Can be a number of a function. Provide a function to incorporate uncertainty. |
low_risk_group_treatment_effect |
The effect of the treatment provided to patients given low risk prediction. Can be a number of a function. Provide a function to incorporate uncertainty. Defaults to 0 (no treatment). |
low_risk_group_treatment_cost |
The cost of the treatment provided to patients given low risk prediction. Can be a number of a function. Provide a function to incorporate uncertainty. Defaults to 0 (no treatment). |
use_expected_values |
Logical. If |
nboot |
The number of samples to use when creating a function that returns the expected values. Defaults to 10000. |
Returns a NMBsampler
object.
get_nmb_training <- get_nmb_sampler(
outcome_cost = 100,
high_risk_group_treatment_effect = function() rbeta(1, 1, 2),
high_risk_group_treatment_cost = 10,
use_expected_values = TRUE
)
get_nmb_evaluation <- get_nmb_sampler(
outcome_cost = 100,
high_risk_group_treatment_effect = function() rbeta(1, 1, 2),
high_risk_group_treatment_cost = 10
)
get_nmb_training()
get_nmb_training()
get_nmb_training()
get_nmb_evaluation()
get_nmb_evaluation()
get_nmb_evaluation()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.