Show the code
%>%
df_paper_04 filter(!is.na(perceived_stress_cat)) %>%
::tbl_summary(
gtsummaryinclude = c(
a_agebase, a_gender, a_domicile, income, maristat,
a_livingsit, educ, a_religion, perceived_stress_cat,
a_poccup3),by = perceived_stress_cat,
digits = gtsummary::all_categorical()~ c(0,1),
statistic = gtsummary::all_categorical() ~ "{n} ({p})",
missing_text = "Missing") %>%
::bold_labels() %>%
gtsummary::modify_caption(
gtsummary"**Table 1**: Sociodemographic characteristics among survivors by level of
perceived stress") %>%
::modify_spanning_header(
gtsummary::all_stat_cols() ~ "**Perceived Stress**") %>%
gtsummary::add_overall(col_label = "**Total**", last = TRUE) %>%
gtsummary::add_p(
gtsummarypvalue_fun = ~gtsummary::style_pvalue(.x, digits = 3)) %>%
::bold_p() %>%
gtsummary::modify_caption(
gtsummary"**Table 1**: Sociodemographic characteristics among survivors by
level of perceived stress")
Characteristic |
Perceived Stress |
Total 1 |
p-value 2 |
|
---|---|---|---|---|
Low |
High |
|||
Age in years | 58 (50, 66) | 58 (52, 68) | 58 (51, 67) | 0.398 |
Gender | 0.440 | |||
Male | 162 (57.4) | 110 (53.9) | 272 (56.0) | |
Female | 120 (42.6) | 94 (46.1) | 214 (44.0) | |
Domicile | 0.980 | |||
Rural | 18 (6.4) | 13 (6.4) | 31 (6.4) | |
Semi-Urban | 95 (33.7) | 67 (32.8) | 162 (33.3) | |
Urban | 169 (59.9) | 124 (60.8) | 293 (60.3) | |
Income in GHC | <0.001 | |||
0-100 | 66 (23.7) | 104 (51.0) | 170 (35.3) | |
101-250 | 90 (32.4) | 54 (26.5) | 144 (29.9) | |
251-500 | 82 (29.5) | 25 (12.3) | 107 (22.2) | |
>500 | 40 (14.4) | 21 (10.3) | 61 (12.7) | |
Missing | 4 | 0 | 4 | |
Marital Status | 0.608 | |||
Currently Married | 194 (68.8) | 133 (65.2) | 327 (67.3) | |
Previously Married | 77 (27.3) | 60 (29.4) | 137 (28.2) | |
Never Married | 11 (3.9) | 11 (5.4) | 22 (4.5) | |
Living Status | 0.516 | |||
Lives Alone | 17 (6.0) | 11 (5.4) | 28 (5.8) | |
Lives With Spouse and Children | 165 (58.5) | 105 (51.5) | 270 (55.6) | |
Lives in a Nursing Home | 0 (0.0) | 0 (0.0) | 0 (0.0) | |
Lives With Spouse | 14 (5.0) | 14 (6.9) | 28 (5.8) | |
Lives With Extended Family | 36 (12.8) | 33 (16.2) | 69 (14.2) | |
Lives With Children | 50 (17.7) | 41 (20.1) | 91 (18.7) | |
Educational Status | 0.074 | |||
None | 27 (9.6) | 20 (9.8) | 47 (9.7) | |
Primary | 106 (37.6) | 93 (45.6) | 199 (40.9) | |
Secondary | 92 (32.6) | 67 (32.8) | 159 (32.7) | |
Tertiary | 57 (20.2) | 24 (11.8) | 81 (16.7) | |
Religion | >0.999 | |||
Christianity | 252 (89.4) | 183 (89.7) | 435 (89.5) | |
Islam | 28 (9.9) | 20 (9.8) | 48 (9.9) | |
Other | 2 (0.7) | 1 (0.5) | 3 (0.6) | |
Primary Occupation | 0.001 | |||
Skilled | 154 (54.6) | 79 (38.7) | 233 (47.9) | |
Manual | 53 (18.8) | 52 (25.5) | 105 (21.6) | |
Others | 9 (3.2) | 10 (4.9) | 19 (3.9) | |
Retired | 35 (12.4) | 20 (9.8) | 55 (11.3) | |
Unemployed | 31 (11.0) | 43 (21.1) | 74 (15.2) | |
1
Median (Q1, Q3); n (%) |
||||
2
Wilcoxon rank sum test; Pearson’s Chi-squared test; Fisher’s exact test |