Code
<- suppressWarnings(readxl::read_xlsx("./data/df_complete.xlsx"))
df
<- df |>
tip_df ::filter(RND_RAND_TTO == "TIP") |>
dplyr::mutate(
dplyrSexo = table1::setLabel(Sexo, "Gender"),
Idade = table1::setLabel(Idade, "Age"),
Essenciais = table1::setLabel(Essenciais, "Occupational category"),
G_NPS1 = table1::setLabel(
G_NPS1,"How likely are you to recommend this treatment to a friend or colleague?"
),G_TRAT = table1::setLabel(
G_TRAT,"How satisfied are you with the treatment?"
),G_PERC = table1::setLabel(
G_PERC,paste0(
"Considering your perception of your emotional state, how do you ",
"feel today about starting treatment?"
)
),
)
::table1(
table1~ Sexo + Idade + Essenciais + G_NPS1 + G_TRAT + G_PERC,
data = tip_df
)
Overall (N=448) |
|
---|---|
Gender | |
1 Feminino | 388 (86.6%) |
2 Masculino | 60 (13.4%) |
Age | |
Mean (SD) | 35.4 (9.03) |
Median [Min, Max] | 35.0 [19.0, 67.0] |
Missing | 15 (3.3%) |
Occupational category | |
1 Profissional da Saúde | 361 (80.6%) |
2 Outro Profissional de Serviços Essenciais | 32 (7.1%) |
3 Professor(a) | 38 (8.5%) |
4 Outra categoria profissional | 16 (3.6%) |
Missing | 1 (0.2%) |
How likely are you to recommend this treatment to a friend or colleague? | |
Mean (SD) | 9.65 (1.17) |
Median [Min, Max] | 10.0 [0, 10.0] |
Missing | 116 (25.9%) |
How satisfied are you with the treatment? | |
1 Muito satisfeito | 195 (43.5%) |
2 Satisfeito | 90 (20.1%) |
3 Um pouco satisfeito | 11 (2.5%) |
4 Nem satisfeito, nem insatisfeito | 5 (1.1%) |
5 Um pouco insatisfeito | 2 (0.4%) |
6 Insatisfeito | 5 (1.1%) |
7 Muito insatisfeito | 24 (5.4%) |
Missing | 116 (25.9%) |
Considering your perception of your emotional state, how do you feel today about starting treatment? | |
2 Moderadamente pior | 4 (0.9%) |
3 Levemente pior | 6 (1.3%) |
4 Igual | 16 (3.6%) |
5 Levemente melhor | 70 (15.6%) |
6 Moderadamente melhor | 135 (30.1%) |
7 Muito melhor | 101 (22.5%) |
Missing | 116 (25.9%) |