Shared Decision-Making, Decisional Conflict, and Decisional Regret in Rectal Cancer Watch-and-Wait
Author
Oduyale O, Gaetani R, et al.
Published
December 1, 2026
1. Setup & Data Preparation
Load required packages, ensure all scale columns are stored as numeric vectors, and isolate the time-stratified subgroups (<= 3 months for Decisional Conflict; > 3 months for Decisional Regret).
Code
library(dplyr)library(DescTools)library(readxl)clean_washuv2 <-read_excel("~/Desktop/clean_washuv2.xls")# Ensure all continuous score columns are strictly numericscore_cols <-c("sdm_9_100", "dcs_score100", "drs_score100", "lars_score")clean_washuv2[score_cols] <-lapply(clean_washuv2[score_cols], function(x) {as.numeric(as.character(x))})# Create clinical LARS severity categoriesclean_washuv2$lars_cat <-cut( clean_washuv2$lars_score,breaks =c(-Inf, 20, 29, Inf),labels =c("No LARS (0-20)", "Minor LARS (21-29)", "Major LARS (30-42)"))# Isolate the DCS subgroup (<= 3 months post-enrollment, n = 22)dcs_only <-subset(clean_washuv2, is.na(drs_score100) &!is.na(dcs_score100))# Verify non-missing sample sizes across all scalescolSums(!is.na(clean_washuv2[score_cols]))
All continuous patient-reported outcome scales are tested for normality to determine whether parametric (mean/SD) or non-parametric (median/IQR) methods are appropriate.
3. Descriptive Statistics (Medians, IQRs, and Prevalence)
Because all four scales are non-normal (p < 0.01), scores are summarized using medians and interquartile ranges (25th–75th percentiles), alongside clinical threshold counts.
wilcox.test(sdm_9_100 ~ (drs_score100 >0), data = clean_washuv2)
Wilcoxon rank sum test with continuity correction
data: sdm_9_100 by drs_score100 > 0
W = 155.5, p-value = 0.1208
alternative hypothesis: true location shift is not equal to 0
Code
# Zero Conflict (DCS = 0) vs. Any Conflict (DCS > 0)tapply(dcs_only$sdm_9_100, dcs_only$dcs_score100 >0, med_iqr)
wilcox.test(sdm_9_100 ~ (dcs_score100 >0), data = dcs_only)
Wilcoxon rank sum test with continuity correction
data: sdm_9_100 by dcs_score100 > 0
W = 46, p-value = 0.4822
alternative hypothesis: true location shift is not equal to 0
Spearman's rank correlation rho
data: clean_washuv2$sdm_9_100 and clean_washuv2$drs_score100
S = 6180, p-value = 0.1823
alternative hypothesis: true rho is not equal to 0
sample estimates:
rho
-0.2459584
Code
SpearmanRho(clean_washuv2$sdm_9_100, clean_washuv2$drs_score100, conf.level =0.95, use ="complete.obs")
Spearman's rank correlation rho
data: dcs_only$sdm_9_100 and dcs_only$dcs_score100
S = 1547.5, p-value = 0.4909
alternative hypothesis: true rho is not equal to 0
sample estimates:
rho
-0.1635299
Code
SpearmanRho(dcs_only$sdm_9_100, dcs_only$dcs_score100, conf.level =0.95, use ="complete.obs")
rho lwr.ci upr.ci
-0.1635299 -0.5651531 0.3007552
Code
# Bowel Function (LARS) vs. Regret & Conflictcor.test(clean_washuv2$lars_score, clean_washuv2$drs_score100, method ="spearman", exact =FALSE)
Spearman's rank correlation rho
data: clean_washuv2$lars_score and clean_washuv2$drs_score100
S = 2811.9, p-value = 0.1048
alternative hypothesis: true rho is not equal to 0
sample estimates:
rho
0.3074021
Spearman's rank correlation rho
data: dcs_only$lars_score and dcs_only$dcs_score100
S = 977.37, p-value = 0.2586
alternative hypothesis: true rho is not equal to 0
sample estimates:
rho
0.2651365
5. Secondary Exploratory Analysis: Low vs. High SDM (<80.5 vs. ≥80.5)
Participants are stratified at the cohort mean (80.5) to evaluate threshold effects using Fisher’s exact test and Wilcoxon rank-sum tests.
Fisher's Exact Test for Count Data
data: table(clean_washuv2$sdm_binary, clean_washuv2$drs_score100 > 0)
p-value = 0.05155
alternative hypothesis: true odds ratio is not equal to 1
95 percent confidence interval:
0.8845489 44.4908934
sample estimates:
odds ratio
5.467372
Fisher's Exact Test for Count Data
data: table(clean_washuv2$sdm_binary, clean_washuv2$drs_score100 > 25)
p-value = 1
alternative hypothesis: true odds ratio is not equal to 1
95 percent confidence interval:
0.02550154 182.70459355
sample estimates:
odds ratio
2.160286
Fisher's Exact Test for Count Data
data: table(dcs_only$sdm_binary, dcs_only$dcs_score100 > 0)
p-value = 1
alternative hypothesis: true odds ratio is not equal to 1
95 percent confidence interval:
0.1441618 25.6043943
sample estimates:
odds ratio
1.668591
Fisher's Exact Test for Count Data
data: table(dcs_only$sdm_binary, dcs_only$dcs_score100 > 30)
p-value = 1
alternative hypothesis: true odds ratio is not equal to 1
95 percent confidence interval:
0.00000 39.00055
sample estimates:
odds ratio
0
Code
# Bowel Function (LARS) by SDM Group and Regret Statustapply(clean_washuv2$lars_score, clean_washuv2$sdm_binary, med_iqr)
High Low
"22.0 (9.0 - 31.0)" "21.0 (8.0 - 26.8)"
Code
wilcox.test(lars_score ~ sdm_binary, data = clean_washuv2)
Wilcoxon rank sum test with continuity correction
data: lars_score by sdm_binary
W = 324, p-value = 0.6008
alternative hypothesis: true location shift is not equal to 0
wilcox.test(lars_score ~ (drs_score100 >0), data = clean_washuv2)
Wilcoxon rank sum test with continuity correction
data: lars_score by drs_score100 > 0
W = 69, p-value = 0.1483
alternative hypothesis: true location shift is not equal to 0
6. Table 1 outputs
Code
# Helper function for Median (IQR)med_iqr <-function(x) { q <-quantile(x, probs =c(0.25, 0.50, 0.75), na.rm =TRUE)sprintf("%.1f (%.1f-%.1f)", q, q, q)}# 1. Categorical Table 1 Variables (excluding SVI and nom_fail)cat_vars <-c("location", "gender", "race", "health_lit_group","education_group", "income", "cps_role", "lars_category")for (v in cat_vars) {cat("\n========================================\n")cat("VARIABLE:", v, "\n")cat("========================================\n")# Overall N (%) tbl_all <-table(clean_washuv2[[v]], useNA ="ifany") pct_all <-round(prop.table(table(clean_washuv2[[v]])) *100, 1)print(cbind(Overall_N = tbl_all[names(pct_all)], Overall_Pct = pct_all))# Continuous SDM-Q-9 Median (IQR) per category + Kruskal/Wilcoxon p-valuecat("\nContinuous SDM-Q-9 Median (IQR):\n")print(tapply(clean_washuv2$sdm_9_100, clean_washuv2[[v]], med_iqr))print(kruskal.test(clean_washuv2$sdm_9_100 ~ clean_washuv2[[v]]))# Exploratory Low vs High SDM counts (%) + Fisher's exact p-valuecat("\nExploratory Low vs High SDM:\n") ct <-table(Category = clean_washuv2[[v]], SDM = clean_washuv2$sdm_binary)print(ct)print(round(prop.table(ct, margin =2) *100, 1))print(fisher.test(ct))}
========================================
VARIABLE: location
========================================
Overall_N Overall_Pct
MA 29 54.7
MO 24 45.3
Continuous SDM-Q-9 Median (IQR):
$MA
[1] "80.0 (80.0-80.0)" "95.6 (95.6-95.6)" "100.0 (100.0-100.0)"
$MO
[1] "74.4 (74.4-74.4)" "85.6 (85.6-85.6)" "100.0 (100.0-100.0)"
Kruskal-Wallis rank sum test
data: clean_washuv2$sdm_9_100 by clean_washuv2[[v]]
Kruskal-Wallis chi-squared = 1.1087, df = 1, p-value = 0.2924
Exploratory Low vs High SDM:
SDM
Category High Low
MA 20 9
MO 13 11
SDM
Category High Low
MA 60.6 45.0
MO 39.4 55.0
Fisher's Exact Test for Count Data
data: ct
p-value = 0.3937
alternative hypothesis: true odds ratio is not equal to 1
95 percent confidence interval:
0.530542 6.717403
sample estimates:
odds ratio
1.857632
========================================
VARIABLE: gender
========================================
Overall_N Overall_Pct
F 22 41.5
M 31 58.5
Continuous SDM-Q-9 Median (IQR):
$F
[1] "80.6 (80.6-80.6)" "94.4 (94.4-94.4)" "99.4 (99.4-99.4)"
$M
[1] "77.8 (77.8-77.8)" "91.1 (91.1-91.1)" "100.0 (100.0-100.0)"
Kruskal-Wallis rank sum test
data: clean_washuv2$sdm_9_100 by clean_washuv2[[v]]
Kruskal-Wallis chi-squared = 0.0068111, df = 1, p-value = 0.9342
Exploratory Low vs High SDM:
SDM
Category High Low
F 16 6
M 17 14
SDM
Category High Low
F 48.5 30.0
M 51.5 70.0
Fisher's Exact Test for Count Data
data: ct
p-value = 0.2533
alternative hypothesis: true odds ratio is not equal to 1
95 percent confidence interval:
0.5949816 8.6674680
sample estimates:
odds ratio
2.163729
========================================
VARIABLE: race
========================================
Overall_N Overall_Pct
Black 1 1.9
Hispanic or Latino 1 1.9
White 51 96.2
Continuous SDM-Q-9 Median (IQR):
$Black
[1] "60.0 (60.0-60.0)" "60.0 (60.0-60.0)" "60.0 (60.0-60.0)"
$`Hispanic or Latino`
[1] "68.9 (68.9-68.9)" "68.9 (68.9-68.9)" "68.9 (68.9-68.9)"
$White
[1] "78.9 (78.9-78.9)" "93.3 (93.3-93.3)" "100.0 (100.0-100.0)"
Kruskal-Wallis rank sum test
data: clean_washuv2$sdm_9_100 by clean_washuv2[[v]]
Kruskal-Wallis chi-squared = 5.0876, df = 2, p-value = 0.07857
Exploratory Low vs High SDM:
SDM
Category High Low
Black 0 1
Hispanic or Latino 0 1
White 33 18
SDM
Category High Low
Black 0 5
Hispanic or Latino 0 5
White 100 90
Fisher's Exact Test for Count Data
data: ct
p-value = 0.1379
alternative hypothesis: two.sided
========================================
VARIABLE: health_lit_group
========================================
Overall_N Overall_Pct
High 50 94.3
Low 1 1.9
Moderate 2 3.8
Continuous SDM-Q-9 Median (IQR):
$High
[1] "77.8 (77.8-77.8)" "94.4 (94.4-94.4)" "100.0 (100.0-100.0)"
$Low
[1] "80.0 (80.0-80.0)" "80.0 (80.0-80.0)" "80.0 (80.0-80.0)"
$Moderate
[1] "67.2 (67.2-67.2)" "74.4 (74.4-74.4)" "81.7 (81.7-81.7)"
Kruskal-Wallis rank sum test
data: clean_washuv2$sdm_9_100 by clean_washuv2[[v]]
Kruskal-Wallis chi-squared = 2.0404, df = 2, p-value = 0.3605
Exploratory Low vs High SDM:
SDM
Category High Low
High 32 18
Low 0 1
Moderate 1 1
SDM
Category High Low
High 97 90
Low 0 5
Moderate 3 5
Fisher's Exact Test for Count Data
data: ct
p-value = 0.4666
alternative hypothesis: two.sided
========================================
VARIABLE: education_group
========================================
Overall_N Overall_Pct
College or higher 35 66
High school or less 9 17
Some college/technical 9 17
Continuous SDM-Q-9 Median (IQR):
$`College or higher`
[1] "77.8 (77.8-77.8)" "97.8 (97.8-97.8)" "100.0 (100.0-100.0)"
$`High school or less`
[1] "71.1 (71.1-71.1)" "80.0 (80.0-80.0)" "84.4 (84.4-84.4)"
$`Some college/technical`
[1] "80.0 (80.0-80.0)" "86.7 (86.7-86.7)" "100.0 (100.0-100.0)"
Kruskal-Wallis rank sum test
data: clean_washuv2$sdm_9_100 by clean_washuv2[[v]]
Kruskal-Wallis chi-squared = 5.1368, df = 2, p-value = 0.07666
Exploratory Low vs High SDM:
SDM
Category High Low
College or higher 24 11
High school or less 3 6
Some college/technical 6 3
SDM
Category High Low
College or higher 72.7 55.0
High school or less 9.1 30.0
Some college/technical 18.2 15.0
Fisher's Exact Test for Count Data
data: ct
p-value = 0.1864
alternative hypothesis: two.sided
========================================
VARIABLE: income
========================================
Overall_N Overall_Pct
Above $150,000 20 37.7
Below $150,000 29 54.7
NA 1 1.9
Prefer not to answer 3 5.7
Continuous SDM-Q-9 Median (IQR):
$`Above $150,000`
[1] "91.1 (91.1-91.1)" "98.9 (98.9-98.9)" "100.0 (100.0-100.0)"
$`Below $150,000`
[1] "77.8 (77.8-77.8)" "86.7 (86.7-86.7)" "97.8 (97.8-97.8)"
$`NA`
[1] "75.6 (75.6-75.6)" "75.6 (75.6-75.6)" "75.6 (75.6-75.6)"
$`Prefer not to answer`
[1] "76.7 (76.7-76.7)" "77.8 (77.8-77.8)" "80.0 (80.0-80.0)"
Kruskal-Wallis rank sum test
data: clean_washuv2$sdm_9_100 by clean_washuv2[[v]]
Kruskal-Wallis chi-squared = 7.3283, df = 3, p-value = 0.06214
Exploratory Low vs High SDM:
SDM
Category High Low
Above $150,000 16 4
Below $150,000 16 13
NA 0 1
Prefer not to answer 1 2
SDM
Category High Low
Above $150,000 48.5 20.0
Below $150,000 48.5 65.0
NA 0.0 5.0
Prefer not to answer 3.0 10.0
Fisher's Exact Test for Count Data
data: ct
p-value = 0.07034
alternative hypothesis: two.sided
========================================
VARIABLE: cps_role
========================================
Overall_N Overall_Pct
Active role 29 54.7
Collaborative role 22 41.5
Passive role 2 3.8
Continuous SDM-Q-9 Median (IQR):
$`Active role`
[1] "77.8 (77.8-77.8)" "95.6 (95.6-95.6)" "100.0 (100.0-100.0)"
$`Collaborative role`
[1] "76.1 (76.1-76.1)" "82.2 (82.2-82.2)" "99.4 (99.4-99.4)"
$`Passive role`
[1] "86.7 (86.7-86.7)" "91.1 (91.1-91.1)" "95.6 (95.6-95.6)"
Kruskal-Wallis rank sum test
data: clean_washuv2$sdm_9_100 by clean_washuv2[[v]]
Kruskal-Wallis chi-squared = 1.0398, df = 2, p-value = 0.5946
Exploratory Low vs High SDM:
SDM
Category High Low
Active role 20 9
Collaborative role 11 11
Passive role 2 0
SDM
Category High Low
Active role 60.6 45.0
Collaborative role 33.3 55.0
Passive role 6.1 0.0
Fisher's Exact Test for Count Data
data: ct
p-value = 0.3024
alternative hypothesis: two.sided
========================================
VARIABLE: lars_category
========================================
Overall_N Overall_Pct
major 14 27.5
minor 12 23.5
no 25 49.0
Continuous SDM-Q-9 Median (IQR):
$major
[1] "74.4 (74.4-74.4)" "90.0 (90.0-90.0)" "97.8 (97.8-97.8)"
$minor
[1] "77.2 (77.2-77.2)" "96.7 (96.7-96.7)" "100.0 (100.0-100.0)"
$no
[1] "80.0 (80.0-80.0)" "95.6 (95.6-95.6)" "100.0 (100.0-100.0)"
Kruskal-Wallis rank sum test
data: clean_washuv2$sdm_9_100 by clean_washuv2[[v]]
Kruskal-Wallis chi-squared = 0.54076, df = 2, p-value = 0.7631
Exploratory Low vs High SDM:
SDM
Category High Low
major 10 4
minor 7 5
no 16 9
SDM
Category High Low
major 30.3 22.2
minor 21.2 27.8
no 48.5 50.0
Fisher's Exact Test for Count Data
data: ct
p-value = 0.866
alternative hypothesis: two.sided
Code
# 2. Continuous Table 1 Variables (Age and LARS Score only)cont_vars <-c("age", "lars_score")for (cv in cont_vars) {cat("\n========================================\n")cat("CONTINUOUS VARIABLE:", cv, "\n")cat("========================================\n") vec <-as.numeric(as.character(clean_washuv2[[cv]]))cat("Overall Median (IQR):", med_iqr(vec), "\n")cat("By SDM Group:\n")print(tapply(vec, clean_washuv2$sdm_binary, med_iqr))print(wilcox.test(vec ~ clean_washuv2$sdm_binary))cat("Spearman correlation with Continuous SDM-Q-9:\n")print(cor.test(vec, clean_washuv2$sdm_9_100, method ="spearman", exact =FALSE))}
========================================
CONTINUOUS VARIABLE: age
========================================
Overall Median (IQR): 55.7 (55.7-55.7) 61.4 (61.4-61.4) 71.4 (71.4-71.4)
By SDM Group:
$High
[1] "54.1 (54.1-54.1)" "59.9 (59.9-59.9)" "67.7 (67.7-67.7)"
$Low
[1] "60.0 (60.0-60.0)" "67.2 (67.2-67.2)" "72.4 (72.4-72.4)"
Wilcoxon rank sum exact test
data: vec by clean_washuv2$sdm_binary
W = 245, p-value = 0.1217
alternative hypothesis: true location shift is not equal to 0
Spearman correlation with Continuous SDM-Q-9:
Spearman's rank correlation rho
data: vec and clean_washuv2$sdm_9_100
S = 28200, p-value = 0.3282
alternative hypothesis: true rho is not equal to 0
sample estimates:
rho
-0.1369329
========================================
CONTINUOUS VARIABLE: lars_score
========================================
Overall Median (IQR): 8.0 (8.0-8.0) 22.0 (22.0-22.0) 30.5 (30.5-30.5)
By SDM Group:
$High
[1] "9.0 (9.0-9.0)" "22.0 (22.0-22.0)" "31.0 (31.0-31.0)"
$Low
[1] "8.0 (8.0-8.0)" "21.0 (21.0-21.0)" "26.8 (26.8-26.8)"
Wilcoxon rank sum test with continuity correction
data: vec by clean_washuv2$sdm_binary
W = 324, p-value = 0.6008
alternative hypothesis: true location shift is not equal to 0
Spearman correlation with Continuous SDM-Q-9:
Spearman's rank correlation rho
data: vec and clean_washuv2$sdm_9_100
S = 24049, p-value = 0.5383
alternative hypothesis: true rho is not equal to 0
sample estimates:
rho
-0.0881792