── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.4 ✔ readr 2.1.4
✔ forcats 1.0.0 ✔ stringr 1.5.1
✔ ggplot2 3.5.0 ✔ tibble 3.2.1
✔ lubridate 1.9.3 ✔ tidyr 1.3.0
✔ purrr 1.0.2
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(gt)library(gtsummary)
Demographics
load(file="data_clean.RData")
base %>%select(origin,age, gender, family_income, personal_income,only_provider, laboral, work_type, work_md) %>%tbl_summary(by=origin) %>%add_p() %>%add_q() %>%modify_caption("**Table 1** Demographics features for center (N = {N})")
Table 1 Demographics features for center (N = 927)
Characteristic
Eva Peron, N = 1051
Fleni, N = 6151
Mendoza, N = 281
Other, N = 1791
p-value2
q-value3
age
45 (35, 55)
40 (33, 51)
41 (35, 47)
46 (38, 57)
<0.001
<0.001
Unknown
7
348
1
13
gender
0.039
0.039
Male
19 (18%)
190 (31%)
9 (32%)
57 (32%)
Female
84 (80%)
423 (69%)
19 (68%)
122 (68%)
Other
2 (1.9%)
2 (0.3%)
0 (0%)
0 (0%)
family_income
Less than $100.000
0 (0%)
5 (0.8%)
1 (3.6%)
1 (0.6%)
$100.001 to $ 250.000
23 (22%)
104 (17%)
1 (3.6%)
8 (4.5%)
$250.001 to 400.000
35 (33%)
177 (29%)
5 (18%)
36 (20%)
More than $400.000
47 (45%)
329 (53%)
21 (75%)
134 (75%)
personal_income
Less than $100.000
1 (1.0%)
9 (1.5%)
0 (0%)
3 (1.7%)
$100.001 to $ 250.000
35 (33%)
196 (32%)
5 (18%)
23 (13%)
$250.001 to 400.000
39 (37%)
225 (37%)
8 (29%)
41 (23%)
More than $400.000
30 (29%)
185 (30%)
15 (54%)
112 (63%)
only_provider
72 (69%)
396 (64%)
19 (68%)
137 (77%)
0.025
0.033
laboral
Private practice
4 (3.8%)
519 (85%)
10 (36%)
93 (52%)
Public
62 (60%)
15 (2.4%)
3 (11%)
42 (23%)
Both mostly public
29 (28%)
18 (2.9%)
6 (21%)
19 (11%)
Both mostly private
9 (8.7%)
62 (10%)
9 (32%)
25 (14%)
Unknown
1
1
0
0
work_type
Public-facing customer service (receptionists and secretaries)
17 (16%)
78 (13%)
0 (0%)
6 (3.4%)
Direct patient care (physician, nurse, physiotherapist, therapist, etc.)
67 (64%)
369 (60%)
26 (93%)
162 (91%)
Indirect patient care (biochemist, imaging studies report, etc.)
15 (14%)
71 (12%)
2 (7.1%)
4 (2.2%)
Administrative tasks related to healthcare without public-facing duties (commercial administrative sector)
6 (5.7%)
97 (16%)
0 (0%)
7 (3.9%)
work_md
46 (44%)
189 (31%)
16 (57%)
142 (79%)
<0.001
<0.001
1 Median (IQR); n (%)
2 Kruskal-Wallis rank sum test; Fisher’s exact test; Pearson’s Chi-squared test
3 False discovery rate correction for multiple testing
Mucha gente no quizo dar su año de nacimiento por temor a ser identificados en Fleni, hay un numero muy grande de perdidos, no vamos a poder usar ese dato
base %>%select(origin,age, gender, family_income, personal_income,only_provider, laboral, work_type, work_md) %>%tbl_summary(by=work_md) %>%add_p() %>%add_q() %>%modify_caption("**Table 2** Demographics MD vs non-MD (N = {N})")
Table 2 Demographics MD vs non-MD (N = 927)
Characteristic
No, N = 5341
Yes, N = 3931
p-value2
q-value3
origin
<0.001
<0.001
Eva Peron
59 (11%)
46 (12%)
Fleni
426 (80%)
189 (48%)
Mendoza
12 (2.2%)
16 (4.1%)
Other
37 (6.9%)
142 (36%)
age
42 (34, 51)
45 (36, 55)
0.002
0.002
Unknown
250
119
gender
<0.001
<0.001
Male
122 (23%)
153 (39%)
Female
409 (77%)
239 (61%)
Other
3 (0.6%)
1 (0.3%)
family_income
<0.001
<0.001
Less than $100.000
7 (1.3%)
0 (0%)
$100.001 to $ 250.000
124 (23%)
12 (3.1%)
$250.001 to 400.000
169 (32%)
84 (21%)
More than $400.000
234 (44%)
297 (76%)
personal_income
<0.001
<0.001
Less than $100.000
11 (2.1%)
2 (0.5%)
$100.001 to $ 250.000
228 (43%)
31 (7.9%)
$250.001 to 400.000
195 (37%)
118 (30%)
More than $400.000
100 (19%)
242 (62%)
only_provider
312 (58%)
312 (79%)
<0.001
<0.001
laboral
<0.001
<0.001
Private practice
392 (73%)
234 (60%)
Public
78 (15%)
44 (11%)
Both mostly public
21 (3.9%)
51 (13%)
Both mostly private
43 (8.1%)
62 (16%)
Unknown
0
2
work_type
<0.001
<0.001
Public-facing customer service (receptionists and secretaries)
100 (19%)
1 (0.3%)
Direct patient care (physician, nurse, physiotherapist, therapist, etc.)
272 (51%)
352 (90%)
Indirect patient care (biochemist, imaging studies report, etc.)
61 (11%)
31 (7.9%)
Administrative tasks related to healthcare without public-facing duties (commercial administrative sector)
101 (19%)
9 (2.3%)
1 n (%); Median (IQR)
2 Pearson’s Chi-squared test; Wilcoxon rank sum test; Fisher’s exact test
3 False discovery rate correction for multiple testing
base %>%select(maslach_emotional_exhaustion, maslach_depersonalization,maslach_personal_accomplishment, work_md)%>%tbl_summary(by=work_md)%>%add_overall()%>%add_p() %>%add_q() %>%modify_caption("**Table 5** Raw Maslach dimensions in MD vs non-MD (N = {N})")
Table 5 Raw Maslach dimensions in MD vs non-MD (N = 927)
Characteristic
Overall, N = 9271
No, N = 5341
Yes, N = 3931
p-value2
q-value3
maslach_emotional_exhaustion
27 (17, 37)
24 (15, 34)
32 (22, 41)
<0.001
<0.001
Unknown
4
3
1
maslach_depersonalization
8.0 (5.0, 11.0)
7.0 (5.0, 10.0)
9.0 (6.0, 12.0)
<0.001
<0.001
Unknown
1
1
0
maslach_personal_accomplishment
29 (24, 34)
29 (24, 34)
29 (24, 33)
0.6
0.6
1 Median (IQR)
2 Wilcoxon rank sum test
3 False discovery rate correction for multiple testing
base %>%select(maslach_emotional_exhaustion_index, maslach_depersonalization_index,maslach_personal_accomplishment_index, work_md)%>%tbl_summary(by=work_md)%>%add_overall()%>%add_p() %>%add_q() %>%modify_caption("**Table 6** adjusted Maslach dimensions in MD vs non-MD (N = {N})")
Table 6 adjusted Maslach dimensions in MD vs non-MD (N = 927)
Characteristic
Overall, N = 9271
No, N = 5341
Yes, N = 3931
p-value2
q-value3
maslach_emotional_exhaustion_index
0.50 (0.31, 0.69)
0.44 (0.28, 0.63)
0.58 (0.41, 0.76)
<0.001
<0.001
Unknown
4
3
1
maslach_depersonalization_index
0.27 (0.17, 0.37)
0.23 (0.17, 0.33)
0.30 (0.20, 0.40)
<0.001
<0.001
Unknown
1
1
0
maslach_personal_accomplishment_index
0.69 (0.57, 0.81)
0.69 (0.57, 0.81)
0.69 (0.57, 0.79)
0.6
0.6
1 Median (IQR)
2 Wilcoxon rank sum test
3 False discovery rate correction for multiple testing
Correlation Neuropsychiatric vs Maslach
library(corrplot)
corrplot 0.92 loaded
a<-base %>%select(maslach_personal_accomplishment_index, maslach_depersonalization_index, maslach_emotional_exhaustion_index, dass_anxiety_index, dass_depression_index, dass_stress_index)a<-scale(a)a<-na.omit(a)M<-cor(a)cor.mtest <-function(mat, ...) { mat <-as.matrix(mat) n <-ncol(mat) p.mat<-matrix(NA, n, n)diag(p.mat) <-0for (i in1:(n -1)) {for (j in (i +1):n) { tmp <-cor.test(mat[, i], mat[, j], ...) p.mat[i, j] <- p.mat[j, i] <- tmp$p.value } }colnames(p.mat) <-rownames(p.mat) <-colnames(mat) p.mat}# matrix of the p-value of the correlationp.mat <-cor.mtest(a)corrplot(M, method="color", type="upper", order="hclust", addCoef.col ="black", # Add coefficient of correlationtl.col="black", #Text label color and rotation# Combine with significancep.mat = p.mat, sig.level =0.01, # hide correlation coefficient on the principal diagonaldiag=FALSE)
Modelos explicativos del stress
library(psych)
Attaching package: 'psych'
The following objects are masked from 'package:ggplot2':
%+%, alpha