Learn R Programming

⚠️There's a newer version (2.1.0) of this package.Take me there.

clinicalsignificance

The goal of this powerful package is to provide all necessary tools for analyses of clinical significance in clinical intervention studies. In contrast to statistical significance, which assesses if it is probable that there is a treatment effect, clinical significance can be used to determine if a treatment effect is of practical use or meaningful for patients. This package is designed to help researchers and healthcare professionals determine the clinical relevance of their findings. It provides various functions and tools for quantifying and visualizing clinical significance, making it easier to make informed decisions in the medical field.

Installation

You can install the clinicalsignificance package from CRAN using the following command:

install.packages("clinicalsignificance")

Alternatively, you can install the development version from GitHub:

devtools::install_github("pedscience/clinicalsignificance")

Main Functions

The main functions of the package are based on the main approaches for clinical significance analyses, i.e., the anchor-based approach, the percentage-change approach, the distribution-based approach, the statistical, and combined approaches. Hence, the main functions are

  • cs_anchor()
  • cs_percentage()
  • cs_distribution()
  • cs_statistical()
  • cs_combined()

See the package vignettes for additional details on the various clinical significance approaches.

Example

Claus et al. (2020) implemented a novel intervention to enhance the effectiveness of antidepressants by boosting the inherent placebo effect of that medication. The randomized patients to treatment as usual (TAU) and a placebo amplification (PA) group and measured the severity of depressive symptoms over time.

In the anchor-based approach, a clinical significant change is believed to have occured if a given change is greater or equal to the minimally important difference of the used instrument. Given a tidy dataset of the study and a minimally important difference for the Beck Depression Inventory (second edition, BDI-II) of 7 points, the study data by Claus et al. (2020) may be analyzed as follows:

library(clinicalsignificance)

cs_results <- claus_2020 |>
  cs_anchor(
    id = id,
    time = time,
    outcome = bdi,
    pre = 1,
    post = 4,
    mid_improvement = 7
  )

cs_results
#> 
#> ── Clinical Significance Results ──
#> 
#> Individual anchor-based approach with a 7 point decrease in instrument scores
#> indicating a clinical significant improvement.
#> Category     |  n | Percent
#> ---------------------------
#> Improved     | 25 |  62.50%
#> Unchanged    | 11 |  27.50%
#> Deteriorated |  4 |  10.00%

You can receive a detailed summary of the analysis by

summary(cs_results)
#> 
#> ── Clinical Significance Results ──
#> 
#> Individual anchor-based analysis of clinical significance with a 7 point
#> decrease in instrument scores (bdi) indicating a clinical significant
#> improvement.
#> There were 43 participants in the whole dataset of which 40 (93%) could be
#> included in the analysis.
#> 
#> ── Individual Level Results
#> Category     |  n | Percent
#> ---------------------------
#> Improved     | 25 |  62.50%
#> Unchanged    | 11 |  27.50%
#> Deteriorated |  4 |  10.00%

or plot the cs_results with

plot(cs_results)

Including Groups

Group-wise results may be obtained by setting the group argument

cs_results_grouped <- claus_2020 |>
  cs_anchor(
    id = id,
    time = time,
    outcome = bdi,
    pre = 1,
    post = 4,
    mid_improvement = 7,
    group = treatment
  )

summary(cs_results_grouped)
#> 
#> ── Clinical Significance Results ──
#> 
#> Individual anchor-based analysis of clinical significance with a 7 point
#> decrease in instrument scores (bdi) indicating a clinical significant
#> improvement.
#> There were 43 participants in the whole dataset of which 40 (93%) could be
#> included in the analysis.
#> 
#> ── Individual Level Results
#> Group |     Category |  n | Percent
#> -----------------------------------
#> TAU   |     Improved |  8 |  20.00%
#> TAU   |    Unchanged |  7 |  17.50%
#> TAU   | Deteriorated |  4 |  10.00%
#> PA    |     Improved | 17 |  42.50%
#> PA    |    Unchanged |  4 |  10.00%
#> PA    | Deteriorated |  0 |   0.00%
plot(cs_results_grouped)

Clinical Significance Categories

The individual categories may be visualized by adjusting the argument show in the plot() function call.

plot(cs_results, show = category)

Contributing

We welcome contributions from the R community to enhance the package. If you find any bugs, have feature requests, or would like to contribute improvements, please open an issue or submit a pull request on GitHub.

License

This package is released under the GNU General Public License. You are free to use and distribute it according to the terms of the license.


Thank you for using the clinicalsignificance R package! We hope it proves to be a valuable tool for assessing clinical significance in your medical and healthcare research. If you find it helpful, consider giving us a star on GitHub and spreading the word.

Copy Link

Version

Install

install.packages('clinicalsignificance')

Monthly Downloads

275

Version

2.0.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Benedikt Claus

Last Published

November 16th, 2023

Functions in clinicalsignificance (2.0.0)

calc_rci

Generic to Calculate RCI and Associated Change
create_summary_table.cs_statistical

Create Summary Table for Statistical Approach
calc_rci.cs_en

RCI for the Edwards method
create_summary_table.cs_anchor_individual_within

Create Summary Table for Anchor-Based Approach
cs_anchor

Anchor-Based Analysis of Clinical Significance
cs_distribution

Distribution-Based Analysis of Clinical Significance
cs_combined

Combined Analysis of Clinical Significance
create_summary_table.cs_combined

Create Summary Table for Combined Approach
claus_2020

Placebo Amplification Data
cs_get_reliability

Get Reliability Of A cs_analysis Object
cs_get_n

Get Number Of Participants From A cs_analysis Object
create_summary_table

Generic For Creating Summary Tables
plot.cs_anchor_group_between

Plot an Object of Class cs_anchor_group_between
generate_plotting_band

Generic to Calculate RCI Band Data for Plotting
generate_plotting_band.cs_en

Generate RCI Band for EN Method
generate_plotting_band.cs_gln

Generate RCI Band for GLN Method
jacobson_1989

Marital Therapy Data
generate_plotting_band.cs_anchor_individual_within

Generate RCI Band for the Individual Anchor-Based Approach
cs_percentage

Percentage-Change Analysis of Clinical Significance
cs_get_cutoff_descriptives

Get Descriptives Used In The Cutoff Calculation
cs_statistical

Statistical Analysis of Clinical Significance
calc_rci.cs_jt

RCI for the Jacobson & Truax method
generate_plotting_band.cs_percentage

Generate RCI Band for the Percentage-Change Approach
calc_rci.cs_nk

RCI for the NK method
cs_get_cutoff

Get Used Cutoff And Type From A cs_analysis Object
create_summary_table.cs_percentage

Create Summary Table for Percentage-Change Approach
create_summary_table.cs_distribution

Create Summary Table for Distribution-Based Approach
cs_get_data

Get Data From A cs_analysis Object
generate_plotting_band.cs_jt

Generate RCI Band for JT Method
plot.cs_percentage

Plot an Object of Class cs_percentage
print.cs_statistical

Print Method for the Statistical Approach
generate_plotting_band.cs_nk

Generate RCI Band for NK Method
print.cs_anchor_individual_within

Print Method for the Anchor-Based Approach for Individuals
plot.cs_statistical

Plot an Object of Class cs_statistical
summary.cs_percentage

Summary Method for the Percentage-Change Approach
summary.cs_statistical

Summary Method for the Statistical Approach
generate_plotting_band.cs_hll

Generate RCI Band for HLL Method
cs_get_model

Get The HLM Model From A cs_analysis Object
plot.cs_anchor_individual_within

Plot an Object of Class cs_anchor_individual_within
summary.cs_anchor_individual_within

Summary Method for the Anchor-Based Approach
print.cs_distribution

Print Method for the Distribution-Based Approach
plot.cs_combined

Plot an Object of Class cs_combined
generate_plotting_band.cs_ha

Generate RCI Band for HA Method
summary.cs_anchor_group_within

Summary Method for the Anchor-Based Approach for Groups (Within)
plot.cs_distribution

Plot an Object of Class cs_distribution
plot.cs_anchor_group_within

Plot an Object of Class cs_anchor_group_within
print.cs_anchor_group_between

Print Method for the Anchor-Based Approach for Groups (Between)
print.cs_anchor_group_within

Print Method for the Anchor-Based Approach for Groups (Within)
print.cs_combined

Print Method for the Combined Approach
cs_get_summary

Get A Summary Table From A cs_analysis Object
summary.cs_anchor_group_between

Summary Method for the Anchor-Based Approach for Groups (Between)
hechler_2014

Chronic Pain Data
summary.cs_distribution

Summary Method for the Distribution-Based Approach
summary.cs_combined

Summary Method for the Combined Approach
print.cs_percentage

Print Method for the Percentange-Change Approach
calc_cutoff_from_data.cs_ha

Calculate cs_indiv
cs_get_augmented_data

Extract Augmented Data from a cs_analysis Object
calc_anchor.cs_anchor_group_between

Anchor Calculations for Group Effect Between
calc_anchor

Generic to Calculate Anchor-Based Results
calc_rci.cs_hll

RCI for the Hsu, Lin & Lord method
calc_anchor.cs_anchor_group_within

Anchor Calculations for Group Effect Within
anxiety

Anxiety Data
antidepressants

Antidepressant Data
anxiety_complete

Anxiety Data (Complete)
calc_rci.cs_hlm

Calc RCI for the HLM method
calc_anchor.cs_anchor_individual_within

Anchor Calculations for Individual Results
calc_cutoff_from_data

Generic for Statistical Approach
calc_percentage

Calculate Change for the Percentage-Change Approach
calc_cutoff_from_data.default

Calculate the categories based on the cutoff
calc_rci.cs_gln

RCI for the Gulliksen, Lord & Novick method
calc_rci.cs_ha

RCI for the Hageman & Arrindell