| Title: | Decision-Analytic Modelling for Depression Prevention and Treatment |
|---|---|
| Description: | Provides functions and example datasets to run a decision-analytic model for prevention and treatment strategies across depression severity states (sub-clinical, mild, moderate, severe, and recurrent). The package supports scenario analyses (base and alternative inputs) and summarises outcomes such as coverage, adherence, effect sizes, and healthcare costs. |
| Authors: | Stijn Peeters [aut, cre] (ORCID: <https://orcid.org/0009-0004-3684-3584>), Frederick Thielen [aut] (ORCID: <https://orcid.org/0000-0002-0312-5891>), Ben Wijnen [aut] (ORCID: <https://orcid.org/0000-0001-7993-1905>) |
| Maintainer: | Stijn Peeters <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-05-13 07:20:34 UTC |
| Source: | https://github.com/stijnbpeeters/depmod |
Alternative scenario intervention parameters for the prevention of recurrent depression. Structure matches the base dataset. Values can be adjusted to reflect alternative modelling assumptions. In this dataset, the same numbers are provided as in the base case.
data(data_prev_rec_alt)data(data_prev_rec_alt)
Same structure as data_prev_rec_alt.
Baseline intervention parameters for the prevention of recurrent depression among individuals with prior depressive episodes. Includes coverage, adherence, effect size, sample size, and healthcare costs.
data(data_prev_rec_base)data(data_prev_rec_base)
Same structure as data_prev_sub_base.
This dataset contains alternative scenario intervention parameters for the prevention of sub-clinical depression in the DepMod model. The structure is identical to the base dataset but can represent alternative modelling assumptions. In this dataset, the same numbers are provided as in the base case.
data(data_prev_sub_alt)data(data_prev_sub_alt)
A data frame with the same columns as
data_prev_sub_alt.
This dataset contains baseline intervention parameters for the prevention of sub-clinical depression in the DepMod model. It includes coverage, adherence, effectiveness, sample size, and healthcare costs.
data(data_prev_sub_base)data(data_prev_sub_base)
A data frame with one row per intervention strategy and columns:
Coverage of the intervention (proportion of target population).
Adherence to the intervention (proportion).
Effect size or relative risk reduction (numeric).
Sample size or study population used for the parameter estimate.
Estimated healthcare costs per person.
Used to compute the overall preventive effect for sub-clinical depression in the simulation model.
Alternative scenario parameters for the treatment of mild depression. The structure matches the base dataset but values can be adjusted to reflect alternative modelling assumptions. In this dataset, the same numbers are provided as in the base case.
data(data_tr_mild_alt)data(data_tr_mild_alt)
Same structure as data_tr_mild_base.
Baseline intervention parameters for the treatment of mild depression episodes. Includes coverage, adherence, effectiveness, sample size, and healthcare costs.
data(data_tr_mild_base)data(data_tr_mild_base)
A data frame with one row per intervention strategy and columns:
Coverage of the intervention (proportion of mild cases).
Adherence to the intervention (proportion).
Effect size or relative risk reduction (numeric).
Sample size or study population used for the estimate.
Estimated healthcare costs per person.
Alternative scenario parameters for the treatment of moderate depression, structurally identical to the base dataset. Values can be adjusted to reflect alternative modelling assumptions. In this dataset, the same numbers are provided as in the base case.
data(data_tr_mod_alt)data(data_tr_mod_alt)
Same structure as data_tr_mod_base.
Baseline intervention parameters for the treatment of moderate depression episodes. Includes coverage, adherence, effect size, sample size, and healthcare costs.
data(data_tr_mod_base)data(data_tr_mod_base)
Same structure as data_tr_mild_base.
Alternative intervention parameters for the treatment of severe depression episodes. Structure matches the base dataset. Values can be adjusted to reflect alternative modelling assumptions. In this dataset, the same numbers are provided as in the base case.
data(data_tr_sev_alt)data(data_tr_sev_alt)
Same structure as data_tr_sev_alt.
Baseline intervention parameters for the treatment of severe depression episodes. Includes coverage, adherence, effectiveness, sample size, and healthcare costs.
data(data_tr_sev_base)data(data_tr_sev_base)
Same structure as data_tr_sev_base.
A named list of scalar parameters used in the disease progression and cost-effectiveness model. Each element is a single numeric value.
data(parameter_list)data(parameter_list)
A named list with 40 elements:
Excess mortality multiplier.
Annual retirement rate.
Baseline annual death rate.
Mean duration of chronic disease (years).
Relapse multiplier for category 1.
Relapse multiplier for category 2.
Relapse multiplier for category 3.
Relapse multiplier for category 4.
Relapse multiplier for category 5.
Annual discount rate applied to DALYs averted.
Annual discount rate applied to costs.
Disability weight conversion factor.
Lower bound of the disability weight conversion factor.
Upper bound of the disability weight conversion factor.
Scale/shape parameter for a Gamma cost distribution.
Incidence among individuals with no prior history.
Proportion of incident cases that are mild.
Proportion of incident cases that are moderate.
Proportion of incident cases that are severe.
Probability of full recovery from mild disease.
Probability of partial recovery from mild disease.
Probability of chronic course after mild disease.
Probability of full recovery from moderate disease.
Probability of partial recovery from moderate disease.
Probability of chronic course after moderate disease.
Probability of full recovery from severe disease.
Probability of partial recovery from severe disease.
Probability of chronic course after severe disease.
Among mild recoveries, probability of being cured.
Among mild recoveries, probability of relapse.
Among mild partial recoveries, probability of being cured.
Among mild partial recoveries, probability of relapse.
Among moderate recoveries, probability of being cured.
Among moderate recoveries, probability of relapse.
Among moderate partial recoveries, probability of being cured.
Among moderate partial recoveries, probability of relapse.
Among severe recoveries, probability of being cured.
Among severe recoveries, probability of relapse.
Among severe partial recoveries, probability of being cured.
Among severe partial recoveries, probability of relapse.
data(parameter_list) names(parameter_list) parameter_list[["excess mortality"]]data(parameter_list) names(parameter_list) parameter_list[["excess mortality"]]
Launches the Shiny app included in this package.
run_app()run_app()
No return value; called for its side effect of launching the Shiny application.
if (interactive()) { run_app() }if (interactive()) { run_app() }
Wrapper for running the DepMod decision-analytic model under both base and
alternative scenarios. The function first builds the transition matrix using
func_first_part_model() and then runs fun_sim_model() for each
scenario.
run_model( parameters = parameter_list, sim_runs = 1000, total_population = 10518000, df_prev_sub_base = data_prev_sub_base, df_tr_mild_base = data_tr_mild_base, df_tr_mod_base = data_tr_mod_base, df_tr_sev_base = data_tr_sev_base, df_prev_rec_base = data_prev_rec_base, df_prev_sub_alt = data_prev_sub_alt, df_tr_mild_alt = data_tr_mild_alt, df_tr_mod_alt = data_tr_mod_alt, df_tr_sev_alt = data_tr_sev_alt, df_prev_rec_alt = data_prev_rec_alt )run_model( parameters = parameter_list, sim_runs = 1000, total_population = 10518000, df_prev_sub_base = data_prev_sub_base, df_tr_mild_base = data_tr_mild_base, df_tr_mod_base = data_tr_mod_base, df_tr_sev_base = data_tr_sev_base, df_prev_rec_base = data_prev_rec_base, df_prev_sub_alt = data_prev_sub_alt, df_tr_mild_alt = data_tr_mild_alt, df_tr_mod_alt = data_tr_mod_alt, df_tr_sev_alt = data_tr_sev_alt, df_prev_rec_alt = data_prev_rec_alt )
parameters |
Named list of model parameters (see Details). |
sim_runs |
Integer. Number of simulation runs. Default is 1000. |
total_population |
Integer. Total population size used in the simulation. Default is 10518000. |
df_prev_sub_base |
Data frame for base scenario prevention (sub-clinical depression). |
df_tr_mild_base |
Data frame for base scenario treatment (mild depression). |
df_tr_mod_base |
Data frame for base scenario treatment (moderate depression). |
df_tr_sev_base |
Data frame for base scenario treatment (severe depression). |
df_prev_rec_base |
Data frame for base scenario prevention (recurrent depression). |
df_prev_sub_alt |
Data frame for alternative scenario prevention (sub-clinical depression). |
df_tr_mild_alt |
Data frame for alternative scenario treatment (mild depression). |
df_tr_mod_alt |
Data frame for alternative scenario treatment (moderate depression). |
df_tr_sev_alt |
Data frame for alternative scenario treatment (severe depression). |
df_prev_rec_alt |
Data frame for alternative scenario prevention (recurrent depression). |
The parameters list must contain numeric values controlling disease
progression, recovery, relapse, disability weights, discounting, and cost
accumulation. Required elements include:
General simulation parameters
Disability-weight conversion factor.
Discount rate for DALYs.
Gamma distribution scale/shape cost factor.
Discount rate for economic costs.
Probability of leaving the model.
Mean duration of chronic phase.
Population incidence inputs
Incidence among individuals without prior disease.
Proportion of incident mild cases.
Proportion of incident moderate cases.
Proportion of incident severe cases.
Stage-progression probabilities
Recovery probability from mild depression.
Partial remission probability (mild).
Chronic transition probability (mild).
Recovery probability (moderate).
Partial remission probability (moderate).
Chronic transition probability (moderate).
Recovery probability (severe).
Partial remission probability (severe).
Chronic transition probability (severe).
Recovery-state outcomes
Cure probability from mild–recovery.
Relapse probability from mild–recovery.
Cure probability from mild–partial.
Relapse probability from mild–partial.
Cure probability from moderate–recovery.
Relapse probability from moderate–recovery.
Cure probability from moderate–partial.
Relapse probability from moderate–partial.
Cure probability from severe–recovery.
Relapse probability from severe–recovery.
Cure probability from severe–partial.
Relapse probability from severe–partial.
Relapse multipliers
Relapse multiplier (category 1).
Relapse multiplier (category 2).
Relapse multiplier (category 3).
Relapse multiplier (category 4).
Relapse multiplier (category 5).
A list with two elements:
Model output using the base scenario.
Model output using the alternative scenario.
#' @examples res <- run_model()