Analysis Notes for a Study of Vaccine Sentiment among Brazilian Healthcare Workers

A public record of exploratory analyses conducted during the preparation of a collaborative research article.
r
statistics
research notes
Author

Tzu-Yao Lin

Published

March 28, 2025

Modified

August 31, 2026

NoteAbout this analysis record

This page documents exploratory analyses conducted during the preparation of a collaborative study of vaccine sentiment among Brazilian healthcare workers. It is retained as a public record of the analytical workflow and is not intended as a complete tutorial or as the definitive report of the study.

The final methods, results, and interpretations are reported in Lo et al. (2025), The impact of the COVID-19 pandemic on vaccine sentiment among Brazilian healthcare workers: A cross-sectional online survey study.

This page focuses on two parts of the analytical workflow:

  1. Exploring whether the factor structure of 17 vaccine-attitude items could be interpreted in relation to the 5C model of vaccine hesitancy.
  2. Fitting logistic regression models that used the resulting factor scores and other covariates to examine associations with five vaccine-sentiment outcomes.

The page does not document every analysis reported in the published article. Some sections preserve intermediate model comparisons and working decisions made during manuscript development.

1 Data availability and privacy

The participant-level dataset is restricted and is not distributed with this website. The original working file contained direct or highly identifying fields, including network identifiers, precise timestamps, unique response identifiers, and free-text responses. Even after excluding those fields, combinations of demographic, professional, health, and attitude variables may still allow individuals to be singled out or linked to other information.

The code and frozen aggregate outputs are retained to document the analytical workflow. Authorised researchers must store the dataset outside the repository and supply its path through BRAZIL_DATA_PATH; the analysis rejects paths inside the website project. Public outputs should contain aggregate statistics and model results rather than participant-level records. Consequently, this page supports transparency about the analysis process but is not a fully executable public reproduction package.

2 Data preparation

First, the necessary R packages are loaded.

Code
library(tidyverse)
library(ggplot2)
library(haven) # for reading STATA dta files
library(psych) # for factor analysis
library(GPArotation)
library(corrplot) # for correlation plots
library(gt)

# Make randomized factor-rotation starts reproducible across renders.
set.seed(20250328)

The analysis uses a restricted participant-level dataset that is stored separately from this public repository. Authorised researchers can supply its external file path through the BRAZIL_DATA_PATH environment variable.

Code
data_path <- Sys.getenv("BRAZIL_DATA_PATH")

if (!nzchar(data_path)) {
  stop("Set BRAZIL_DATA_PATH to the restricted dataset outside this project.")
}

data_path <- normalizePath(data_path, mustWork = TRUE)
project_dir <- Sys.getenv(
  "QUARTO_PROJECT_DIR",
  unset = normalizePath("../../..", mustWork = TRUE)
)
project_dir <- normalizePath(project_dir, mustWork = TRUE)

if (
  identical(data_path, project_dir) ||
    startsWith(data_path, paste0(project_dir, .Platform$file.sep))
) {
  stop("BRAZIL_DATA_PATH must point outside the public website project.")
}

rawdata <- read_dta(data_path) |>
  select(
    gender, age_class, member, edu, prof, w_setting, chronic,
    matches("vac_gen_\\d"),
    covid_pro_1:covid_oblig_2,
    covid_leaders:covid_earlyaccess,
    cov_pro_3, change_vac_1, change_vac_2, change_vac_3,
    change_HealthSy_1, fear, knowledge
  )

Only variables required by the analyses below are retained in memory. Direct identifiers, network identifiers, precise timestamps, and free-text responses are excluded.

Key observations from the data preparation include:

  • Missing values are present, denoted by NA for numeric variables and empty strings (““) for character variables.
  • Many variables have the class haven_labelled. These labelled variables require careful handling and appropriate transformation before analysis.

Next, the variables relevant to this analysis are selected.

Code
data <- rawdata |>
  mutate(across(where(is.character), ~ na_if(., "")))

3 Vaccine hesitancy (VH)

3.1 Prepare variables

Before conducting the factor analysis, 17 variables related to general vaccine attitudes and specific COVID-19 attitudes were selected.

Code
fa_data <- data |>
  select(matches("vac_gen_\\d"), covid_pro_1:covid_oblig_2, covid_leaders:covid_earlyaccess) |> 
  drop_na()

apply(fa_data, 2, table)
  vac_gen_1 vac_gen_2 vac_gen_3 vac_gen_4 vac_gen_5 vac_gen_6 covid_pro_1
1         7         5        93       125        29        48           8
2        21         5       183       197        74        28          26
4       143       107       199       167       253       111         126
5       373       427        69        55       188       357         384
  covid_ag_1 covid_ag_2 covid_pro_2 covid_over18 covid_pregnant covid_children
1        370        296          10          352             28             22
2         86        161          19          142             44             19
4         45         54         118           34            188            142
5         43         33         397           16            284            361
  covid_oblig_1 covid_oblig_2 covid_leaders covid_earlyaccess
1            32            65            20                10
2            42            84            27                 9
4           120           164           133               109
5           350           231           364               416
Warning

Caution that the numeric labels for the Likert scale responses (‘Strongly Disagree,’ ‘Disagree,’ ‘Agree,’ ‘Strongly Agree’) are coded as 1, 2, 4, and 5, respectively, rather than the more common sequential coding (e.g., 1, 2, 3, 4)

This non-sequential coding implies an assumption that the interval between ‘Disagree’ (2) and ‘Agree’ (4) is twice that of the other adjacent intervals. Treating these data as interval scale in the analysis relies on this assumption.

The Pearson correlations and maximum-likelihood factor models below therefore treat the recoded four-point responses as approximately continuous.

Following the coding used in the study, these responses were recoded from 1, 2, 4, and 5 to 1, 2, 3, and 4.

In addition, observations with missing values in any of these 17 variables were removed. Consequently, 544 complete observations remain for the factor analysis.

Code
fa_data <- fa_data |> 
  mutate(across(everything(), ~ . - ifelse(. > 3, 1, 0)))

table(fa_data$vac_gen_1) # check an example

  1   2   3   4 
  7  21 143 373 

Before performing the factor analysis, a correlation matrix is examined to visually inspect potential clustering among the attitude variables.

Code
cor_mat <- cor(fa_data)

# Copy from https://www.sthda.com/english/wiki/visualize-correlation-matrix-using-correlogram

cor.mtest <- function(mat, ...) {
    mat <- as.matrix(mat)
    n <- ncol(mat)
    p.mat<- matrix(NA, n, n)
    diag(p.mat) <- 0
    for (i in 1:(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 correlation
p.mat <- cor.mtest(cor_mat)

corrplot(
  cor_mat, method="color", type="upper", order="hclust", 
  addCoef.col = "black", # Add coefficient of correlation
  tl.col="black", tl.srt=45, tl.cex=0.6, #Text label color and rotation
  cl.cex = 0.5, number.cex = 0.75,
  # Combine with significance
  p.mat = p.mat, sig.level = 0.01, insig = "blank", 
  # hide correlation coefficient on the principal diagonal
  diag=FALSE
)
Figure 1: Correlation matrix of vaccine-attitude variables
CautionAudit note: significance masking in the correlation plot

In this recorded workflow, cor.mtest() was applied to cor_mat rather than to the original item-level data. The significance masking in the displayed correlation plot should therefore be treated as an exploratory display rather than as a valid set of tests for the original item correlations. The correlation matrix itself and the downstream factor analyses do not depend on p.mat.

The correlation matrix suggests potential clustering into two or three groups:

  1. vac_gen_4, covid_ag_1, covid_ag_2, and covid_over18 form a cluster.
  2. Other variables (except for vac_gen_6) form a cluster.
  3. vac_gen_6 might form its own cluster but appears closer to the second cluster. Subsequent analyses did not identify a distinct factor defined by this item.

Note that this is a preliminary observation based on correlations. The underlying latent structure will be formally investigated using factor analysis.

3.2 Factor analysis

3.2.1 Pre-tests and scree plots

Kaiser-Meyer-Olkin (KMO) measure and Bartlett’s test of sphericity are used to assess the suitability of the data for factor analysis.

  • The Kaiser-Meyer-Olkin (KMO) statistic summarizes whether the pattern of correlations is sufficiently compact for common-factor analysis; larger values indicate greater factorability.
  • Bartlett’s test evaluates whether the correlation matrix differs from an identity matrix. A small p-value indicates that the items are not mutually uncorrelated, but it does not determine the number of factors or establish that a particular factor solution is appropriate.
Code
# Kaiser-Meyer-Olkin statistic
KMO_result <- KMO(cor_mat)
print(KMO_result)
Kaiser-Meyer-Olkin factor adequacy
Call: KMO(r = cor_mat)
Overall MSA =  0.94
MSA for each item = 
        vac_gen_1         vac_gen_2         vac_gen_3         vac_gen_4 
             0.94              0.94              0.63              0.69 
        vac_gen_5         vac_gen_6       covid_pro_1        covid_ag_1 
             0.97              0.94              0.97              0.96 
       covid_ag_2       covid_pro_2      covid_over18    covid_pregnant 
             0.97              0.96              0.95              0.96 
   covid_children     covid_oblig_1     covid_oblig_2     covid_leaders 
             0.94              0.96              0.96              0.96 
covid_earlyaccess 
             0.94 
Code
# Bartlett's test of sphericity
bartlett_result <- cortest.bartlett(cor_mat, n = nrow(data))
print(bartlett_result)
$chisq
[1] 6930.036

$p.value
[1] 0

$df
[1] 136

The recorded KMO value and Bartlett test were used at the time as preliminary checks of factorability. These diagnostics do not, by themselves, establish an appropriate dimensional model.

CautionAudit note: sample size in Bartlett’s test

The recorded call supplied nrow(data) as the sample size, whereas cor_mat was calculated from the complete-case dataset fa_data. The frozen chi-square statistic is retained here as part of the original workflow, but a reanalysis should use the effective sample size corresponding to the correlation matrix. This issue does not alter the subsequent factor-model estimates, which were fitted directly to fa_data.

A key challenge in EFA is determining the optimal number of factors to retain. Parallel analysis is employed to guide the decision on the number of factors. This procedure compares the eigenvalues from the actual data’s correlation matrix with eigenvalues derived from random data matrices of the same size. The number of factors suggested is the count of actual eigenvalues that exceed the corresponding eigenvalues (or the 95th percentile thereof) from the random data.

Code
fa.parallel(fa_data, fm = "ml", fa = "fa", nfactors = 1) 
Parallel analysis suggests that the number of factors =  3  and the number of components =  NA 
Figure 2: Scree plot of eigenvalues

With maximum-likelihood factor analysis specified (fm = "ml"), the displayed parallel analysis suggested retaining three factors. This result was treated as one input to the exploratory comparison rather than as a definitive decision. Visual inspection of the scree plot could support a smaller solution, while the Kaiser eigenvalue-greater-than-one rule suggested one factor; the latter was not used as the primary retention criterion.

This analysis does not aim to develop a new measurement instrument or uncover ‘true’ latent constructs. Instead, the goal is to explore whether the factor structure in this data aligns with the established 5C model. To facilitate comparison with the 5C model, solutions with 3, 4, and 5 factors will be examined. Therefore, 3-, 4-, and 5-factor models are explored below. For each number of factors (3, 4, and 5), both orthogonal (“Varimax”) and oblique (“Oblimin”) rotations are applied. Factor scores are estimated using the regression method.

  • Factor loadings describe the relation between each item and the factors.
  • h2 is the communality, or the proportion of an item’s variance represented by the retained factors; u2 is its uniqueness (1 - h2).
  • com is Hofmann’s item-complexity index. Values near one indicate that an item is primarily associated with one factor, whereas larger values indicate more complex loading patterns.
  • Model comparison also considered cross-loadings, factor correlations, simple structure, theoretical interpretability, and the proportion of variance represented. Conventional numerical cutoffs were treated as descriptive guides rather than universal decision rules.

3.2.2 Orthogonal rotation

Code
fa3 <- fa(fa_data, nfactors = 3, rotate = "varimax", scores = "regression", fm = "ml")
fa3
Factor Analysis using method =  ml
Call: fa(r = fa_data, nfactors = 3, rotate = "varimax", scores = "regression", 
    fm = "ml")
Standardized loadings (pattern matrix) based upon correlation matrix
                    ML1   ML3   ML2   h2   u2 com
vac_gen_1          0.39  0.70 -0.11 0.66 0.34 1.6
vac_gen_2          0.38  0.78 -0.09 0.77 0.23 1.5
vac_gen_3         -0.10 -0.03  0.94 0.89 0.11 1.0
vac_gen_4         -0.18 -0.07  0.82 0.71 0.29 1.1
vac_gen_5          0.32  0.38 -0.10 0.26 0.74 2.1
vac_gen_6          0.16  0.34  0.03 0.14 0.86 1.4
covid_pro_1        0.58  0.42 -0.07 0.52 0.48 1.9
covid_ag_1        -0.43 -0.30  0.22 0.32 0.68 2.3
covid_ag_2        -0.61 -0.42  0.18 0.58 0.42 2.0
covid_pro_2        0.63  0.53 -0.09 0.68 0.32 2.0
covid_over18      -0.67 -0.29  0.16 0.55 0.45 1.5
covid_pregnant     0.72  0.27 -0.15 0.61 0.39 1.4
covid_children     0.82  0.39 -0.11 0.83 0.17 1.5
covid_oblig_1      0.68  0.39 -0.08 0.62 0.38 1.6
covid_oblig_2      0.58  0.24 -0.13 0.41 0.59 1.4
covid_leaders      0.71  0.48 -0.08 0.74 0.26 1.8
covid_earlyaccess  0.55  0.59 -0.06 0.66 0.34 2.0

                       ML1  ML3  ML2
SS loadings           4.99 3.19 1.77
Proportion Var        0.29 0.19 0.10
Cumulative Var        0.29 0.48 0.59
Proportion Explained  0.50 0.32 0.18
Cumulative Proportion 0.50 0.82 1.00

Mean item complexity =  1.7
Test of the hypothesis that 3 factors are sufficient.

df null model =  136  with the objective function =  11.06 with Chi Square =  5934.5
df of  the model are 88  and the objective function was  0.6 

The root mean square of the residuals (RMSR) is  0.03 
The df corrected root mean square of the residuals is  0.03 

The harmonic n.obs is  544 with the empirical chi square  58.36  with prob <  0.99 
The total n.obs was  544  with Likelihood Chi Square =  318.07  with prob <  8.9e-28 

Tucker Lewis Index of factoring reliability =  0.938
RMSEA index =  0.069  and the 90 % confidence intervals are  0.061 0.078
BIC =  -236.24
Fit based upon off diagonal values = 1
Measures of factor score adequacy             
                                                   ML1  ML3  ML2
Correlation of (regression) scores with factors   0.91 0.86 0.95
Multiple R square of scores with factors          0.82 0.74 0.91
Minimum correlation of possible factor scores     0.64 0.48 0.82
Code
fa4 <- fa(fa_data, nfactors = 4, rotate = "varimax", scores = "regression", fm = "ml")
fa4
Factor Analysis using method =  ml
Call: fa(r = fa_data, nfactors = 4, rotate = "varimax", scores = "regression", 
    fm = "ml")
Standardized loadings (pattern matrix) based upon correlation matrix
                    ML2   ML3   ML1   ML4   h2    u2 com
vac_gen_1          0.37  0.80 -0.11  0.08 0.80 0.197 1.5
vac_gen_2          0.39  0.69 -0.09  0.28 0.72 0.281 2.0
vac_gen_3         -0.09 -0.02  0.99 -0.03 1.00 0.005 1.0
vac_gen_4         -0.19 -0.07  0.78 -0.04 0.64 0.355 1.1
vac_gen_5          0.29  0.36 -0.10  0.18 0.26 0.741 2.7
vac_gen_6          0.17  0.32  0.03  0.08 0.14 0.864 1.7
covid_pro_1        0.56  0.37 -0.07  0.26 0.52 0.483 2.3
covid_ag_1        -0.43 -0.26  0.21 -0.16 0.32 0.680 2.5
covid_ag_2        -0.61 -0.41  0.17 -0.16 0.59 0.408 2.1
covid_pro_2        0.57  0.41 -0.08  0.46 0.72 0.281 2.8
covid_over18      -0.70 -0.31  0.15 -0.02 0.61 0.387 1.5
covid_pregnant     0.71  0.24 -0.15  0.18 0.61 0.386 1.5
covid_children     0.81  0.35 -0.11  0.22 0.84 0.164 1.6
covid_oblig_1      0.65  0.34 -0.07  0.26 0.61 0.385 1.9
covid_oblig_2      0.57  0.23 -0.13  0.12 0.41 0.592 1.6
covid_leaders      0.66  0.38 -0.08  0.42 0.76 0.240 2.4
covid_earlyaccess  0.46  0.45 -0.06  0.63 0.81 0.191 2.7

                       ML2  ML3  ML1  ML4
SS loadings           4.69 2.69 1.79 1.19
Proportion Var        0.28 0.16 0.11 0.07
Cumulative Var        0.28 0.43 0.54 0.61
Proportion Explained  0.45 0.26 0.17 0.12
Cumulative Proportion 0.45 0.71 0.88 1.00

Mean item complexity =  1.9
Test of the hypothesis that 4 factors are sufficient.

df null model =  136  with the objective function =  11.06 with Chi Square =  5934.5
df of  the model are 74  and the objective function was  0.37 

The root mean square of the residuals (RMSR) is  0.02 
The df corrected root mean square of the residuals is  0.03 

The harmonic n.obs is  544 with the empirical chi square  42  with prob <  1 
The total n.obs was  544  with Likelihood Chi Square =  198.21  with prob <  2.8e-13 

Tucker Lewis Index of factoring reliability =  0.96
RMSEA index =  0.056  and the 90 % confidence intervals are  0.046 0.065
BIC =  -267.91
Fit based upon off diagonal values = 1
Measures of factor score adequacy             
                                                   ML2  ML3  ML1  ML4
Correlation of (regression) scores with factors   0.90 0.87 1.00 0.79
Multiple R square of scores with factors          0.82 0.75 0.99 0.62
Minimum correlation of possible factor scores     0.63 0.51 0.99 0.25
Code
fa5 <- fa(fa_data, nfactors = 5, rotate = "varimax", scores = "regression", fm = "ml")
fa5
Factor Analysis using method =  ml
Call: fa(r = fa_data, nfactors = 5, rotate = "varimax", scores = "regression", 
    fm = "ml")
Standardized loadings (pattern matrix) based upon correlation matrix
                    ML3   ML2   ML5   ML1   ML4   h2    u2 com
vac_gen_1          0.81  0.24  0.29 -0.11  0.10 0.81 0.187 1.5
vac_gen_2          0.69  0.26  0.27 -0.09  0.31 0.72 0.285 2.1
vac_gen_3         -0.03 -0.08 -0.04  0.99 -0.04 1.00 0.005 1.0
vac_gen_4         -0.07 -0.14 -0.12  0.78 -0.05 0.65 0.354 1.1
vac_gen_5          0.36  0.22  0.17 -0.11  0.20 0.26 0.741 3.0
vac_gen_6          0.32  0.16  0.05  0.03  0.10 0.14 0.856 1.8
covid_pro_1        0.38  0.47  0.25 -0.07  0.31 0.53 0.470 3.4
covid_ag_1        -0.27 -0.35 -0.21  0.21 -0.20 0.32 0.677 4.0
covid_ag_2        -0.41 -0.46 -0.38  0.17 -0.21 0.59 0.409 3.7
covid_pro_2        0.42  0.41  0.34 -0.09  0.50 0.72 0.283 3.8
covid_over18      -0.34 -0.66 -0.26  0.15 -0.09 0.65 0.348 2.0
covid_pregnant     0.26  0.61  0.30 -0.15  0.26 0.62 0.375 2.4
covid_children     0.36  0.66  0.42 -0.11  0.29 0.84 0.164 2.9
covid_oblig_1      0.31  0.34  0.67 -0.08  0.26 0.73 0.265 2.4
covid_oblig_2      0.20  0.31  0.57 -0.14  0.12 0.50 0.503 2.1
covid_leaders      0.37  0.41  0.51 -0.09  0.45 0.78 0.222 3.8
covid_earlyaccess  0.46  0.29  0.27 -0.06  0.67 0.82 0.176 2.6

                       ML3  ML2  ML5  ML1  ML4
SS loadings           2.73 2.65 2.02 1.80 1.48
Proportion Var        0.16 0.16 0.12 0.11 0.09
Cumulative Var        0.16 0.32 0.44 0.54 0.63
Proportion Explained  0.26 0.25 0.19 0.17 0.14
Cumulative Proportion 0.26 0.50 0.69 0.86 1.00

Mean item complexity =  2.6
Test of the hypothesis that 5 factors are sufficient.

df null model =  136  with the objective function =  11.06 with Chi Square =  5934.5
df of  the model are 61  and the objective function was  0.24 

The root mean square of the residuals (RMSR) is  0.02 
The df corrected root mean square of the residuals is  0.03 

The harmonic n.obs is  544 with the empirical chi square  26.96  with prob <  1 
The total n.obs was  544  with Likelihood Chi Square =  125.5  with prob <  2.3e-06 

Tucker Lewis Index of factoring reliability =  0.975
RMSEA index =  0.044  and the 90 % confidence intervals are  0.033 0.055
BIC =  -258.74
Fit based upon off diagonal values = 1
Measures of factor score adequacy             
                                                   ML3  ML2  ML5  ML1  ML4
Correlation of (regression) scores with factors   0.87 0.82 0.77 1.00 0.81
Multiple R square of scores with factors          0.76 0.68 0.59 0.99 0.66
Minimum correlation of possible factor scores     0.53 0.35 0.18 0.99 0.32
Code
fa.diagram(fa3, sort = FALSE)
fa.diagram(fa4, sort = FALSE)
fa.diagram(fa5, sort = FALSE)
(a) n = 3
(b) n = 4
(c) n = 5
Figure 3: Diagram of factor structure under the orthogonal rotation

3.2.3 Oblique rotation

Code
fa3_ob <- fa(fa_data, nfactors = 3, rotate = "oblimin", scores = "regression", fm = "ml")
fa3_ob
Factor Analysis using method =  ml
Call: fa(r = fa_data, nfactors = 3, rotate = "oblimin", scores = "regression", 
    fm = "ml")
Standardized loadings (pattern matrix) based upon correlation matrix
                    ML2   ML3   ML1   h2   u2 com
vac_gen_1          0.07  0.75 -0.05 0.66 0.34 1.0
vac_gen_2          0.00  0.87 -0.02 0.77 0.23 1.0
vac_gen_3          0.04 -0.01  0.95 0.89 0.11 1.0
vac_gen_4         -0.07 -0.01  0.82 0.71 0.29 1.0
vac_gen_5          0.18  0.33 -0.05 0.26 0.74 1.6
vac_gen_6          0.00  0.38  0.06 0.14 0.86 1.0
covid_pro_1        0.56  0.19  0.02 0.52 0.48 1.2
covid_ag_1        -0.39 -0.13  0.16 0.32 0.68 1.5
covid_ag_2        -0.59 -0.18  0.09 0.58 0.42 1.2
covid_pro_2        0.55  0.32  0.01 0.68 0.32 1.6
covid_over18      -0.77  0.06  0.05 0.55 0.45 1.0
covid_pregnant     0.86 -0.12 -0.04 0.61 0.39 1.0
covid_children     0.94 -0.03  0.02 0.83 0.17 1.0
covid_oblig_1      0.73  0.08  0.03 0.62 0.38 1.0
covid_oblig_2      0.68 -0.07 -0.04 0.41 0.59 1.0
covid_leaders      0.72  0.18  0.04 0.74 0.26 1.1
covid_earlyaccess  0.40  0.47  0.04 0.66 0.34 2.0

                       ML2  ML3  ML1
SS loadings           5.66 2.61 1.68
Proportion Var        0.33 0.15 0.10
Cumulative Var        0.33 0.49 0.59
Proportion Explained  0.57 0.26 0.17
Cumulative Proportion 0.57 0.83 1.00

 With factor correlations of 
      ML2   ML3   ML1
ML2  1.00  0.79 -0.28
ML3  0.79  1.00 -0.17
ML1 -0.28 -0.17  1.00

Mean item complexity =  1.2
Test of the hypothesis that 3 factors are sufficient.

df null model =  136  with the objective function =  11.06 with Chi Square =  5934.5
df of  the model are 88  and the objective function was  0.6 

The root mean square of the residuals (RMSR) is  0.03 
The df corrected root mean square of the residuals is  0.03 

The harmonic n.obs is  544 with the empirical chi square  58.36  with prob <  0.99 
The total n.obs was  544  with Likelihood Chi Square =  318.07  with prob <  8.9e-28 

Tucker Lewis Index of factoring reliability =  0.938
RMSEA index =  0.069  and the 90 % confidence intervals are  0.061 0.078
BIC =  -236.24
Fit based upon off diagonal values = 1
Measures of factor score adequacy             
                                                   ML2  ML3  ML1
Correlation of (regression) scores with factors   0.80 0.76 0.95
Multiple R square of scores with factors          0.64 0.58 0.91
Minimum correlation of possible factor scores     0.28 0.15 0.82
Code
fa4_ob <- fa(fa_data, nfactors = 4, rotate = "oblimin", scores = "regression", fm = "ml")
fa4_ob
Factor Analysis using method =  ml
Call: fa(r = fa_data, nfactors = 4, rotate = "oblimin", scores = "regression", 
    fm = "ml")
Standardized loadings (pattern matrix) based upon correlation matrix
                    ML3   ML4   ML1   ML2   h2    u2 com
vac_gen_1          0.01  0.92 -0.01 -0.06 0.80 0.197 1.0
vac_gen_2          0.03  0.68 -0.01  0.21 0.72 0.281 1.2
vac_gen_3          0.05  0.01  1.01 -0.01 1.00 0.005 1.0
vac_gen_4         -0.10  0.00  0.77  0.01 0.64 0.355 1.0
vac_gen_5          0.13  0.30 -0.06  0.13 0.26 0.741 1.9
vac_gen_6          0.03  0.33  0.07  0.04 0.14 0.864 1.1
covid_pro_1        0.49  0.15  0.02  0.16 0.52 0.483 1.4
covid_ag_1        -0.39 -0.09  0.15 -0.07 0.32 0.680 1.5
covid_ag_2        -0.57 -0.21  0.06 -0.02 0.59 0.408 1.3
covid_pro_2        0.40  0.13 -0.02  0.42 0.72 0.281 2.2
covid_over18      -0.83 -0.08  0.02  0.19 0.61 0.387 1.1
covid_pregnant     0.81 -0.09 -0.04  0.03 0.61 0.386 1.0
covid_children     0.89  0.00  0.02  0.05 0.84 0.164 1.0
covid_oblig_1      0.64  0.06  0.02  0.14 0.61 0.385 1.1
covid_oblig_2      0.64 -0.01 -0.04 -0.01 0.41 0.592 1.0
covid_leaders      0.57  0.06  0.00  0.34 0.76 0.240 1.7
covid_earlyaccess  0.14  0.20 -0.03  0.66 0.81 0.191 1.3

                       ML3  ML4  ML1  ML2
SS loadings           4.96 2.23 1.71 1.46
Proportion Var        0.29 0.13 0.10 0.09
Cumulative Var        0.29 0.42 0.52 0.61
Proportion Explained  0.48 0.22 0.17 0.14
Cumulative Proportion 0.48 0.69 0.86 1.00

 With factor correlations of 
      ML3   ML4   ML1   ML2
ML3  1.00  0.75 -0.29  0.63
ML4  0.75  1.00 -0.21  0.58
ML1 -0.29 -0.21  1.00 -0.08
ML2  0.63  0.58 -0.08  1.00

Mean item complexity =  1.3
Test of the hypothesis that 4 factors are sufficient.

df null model =  136  with the objective function =  11.06 with Chi Square =  5934.5
df of  the model are 74  and the objective function was  0.37 

The root mean square of the residuals (RMSR) is  0.02 
The df corrected root mean square of the residuals is  0.03 

The harmonic n.obs is  544 with the empirical chi square  42  with prob <  1 
The total n.obs was  544  with Likelihood Chi Square =  198.21  with prob <  2.8e-13 

Tucker Lewis Index of factoring reliability =  0.96
RMSEA index =  0.056  and the 90 % confidence intervals are  0.046 0.065
BIC =  -267.91
Fit based upon off diagonal values = 1
Measures of factor score adequacy             
                                                   ML3  ML4  ML1   ML2
Correlation of (regression) scores with factors   0.75 0.76 0.99  0.67
Multiple R square of scores with factors          0.56 0.58 0.99  0.44
Minimum correlation of possible factor scores     0.11 0.16 0.98 -0.11
Code
fa5_ob <- fa(fa_data, nfactors = 5, rotate = "oblimin", scores = "regression", fm = "ml")
fa5_ob
Factor Analysis using method =  ml
Call: fa(r = fa_data, nfactors = 5, rotate = "oblimin", scores = "regression", 
    fm = "ml")
Standardized loadings (pattern matrix) based upon correlation matrix
                    ML5   ML4   ML2   ML1   ML3   h2    u2 com
vac_gen_1          0.01  0.89  0.04 -0.04 -0.01 0.81 0.187 1.0
vac_gen_2          0.04  0.62  0.02  0.25 -0.01 0.72 0.285 1.3
vac_gen_3          0.02  0.01  0.04 -0.01  1.01 1.00 0.005 1.0
vac_gen_4         -0.04 -0.01 -0.07  0.02  0.77 0.65 0.354 1.0
vac_gen_5          0.12  0.27  0.01  0.16 -0.06 0.26 0.741 2.2
vac_gen_6          0.15  0.30 -0.13  0.08  0.08 0.14 0.856 2.3
covid_pro_1        0.46  0.12  0.00  0.24  0.02 0.53 0.470 1.7
covid_ag_1        -0.33 -0.08 -0.04 -0.12  0.15 0.32 0.677 1.8
covid_ag_2        -0.37 -0.21 -0.21 -0.05  0.07 0.59 0.409 2.3
covid_pro_2        0.25  0.09  0.14  0.47 -0.02 0.72 0.283 1.8
covid_over18      -0.84 -0.09  0.04  0.11  0.02 0.65 0.348 1.1
covid_pregnant     0.70 -0.08  0.06  0.12 -0.05 0.62 0.375 1.1
covid_children     0.67  0.01  0.19  0.12  0.01 0.84 0.164 1.2
covid_oblig_1      0.00  0.07  0.78  0.06  0.01 0.73 0.265 1.0
covid_oblig_2      0.06  0.02  0.68 -0.10 -0.05 0.50 0.503 1.1
covid_leaders      0.16  0.04  0.44  0.35  0.00 0.78 0.222 2.2
covid_earlyaccess  0.04  0.12  0.06  0.75 -0.03 0.82 0.176 1.1

                       ML5  ML4  ML2  ML1  ML3
SS loadings           3.09 2.02 2.00 1.85 1.72
Proportion Var        0.18 0.12 0.12 0.11 0.10
Cumulative Var        0.18 0.30 0.42 0.53 0.63
Proportion Explained  0.29 0.19 0.19 0.17 0.16
Cumulative Proportion 0.29 0.48 0.66 0.84 1.00

 With factor correlations of 
      ML5   ML4   ML2   ML1   ML3
ML5  1.00  0.69  0.80  0.63 -0.29
ML4  0.69  1.00  0.65  0.63 -0.20
ML2  0.80  0.65  1.00  0.64 -0.23
ML1  0.63  0.63  0.64  1.00 -0.11
ML3 -0.29 -0.20 -0.23 -0.11  1.00

Mean item complexity =  1.5
Test of the hypothesis that 5 factors are sufficient.

df null model =  136  with the objective function =  11.06 with Chi Square =  5934.5
df of  the model are 61  and the objective function was  0.24 

The root mean square of the residuals (RMSR) is  0.02 
The df corrected root mean square of the residuals is  0.03 

The harmonic n.obs is  544 with the empirical chi square  26.96  with prob <  1 
The total n.obs was  544  with Likelihood Chi Square =  125.5  with prob <  2.3e-06 

Tucker Lewis Index of factoring reliability =  0.975
RMSEA index =  0.044  and the 90 % confidence intervals are  0.033 0.055
BIC =  -258.74
Fit based upon off diagonal values = 1
Measures of factor score adequacy             
                                                    ML5  ML4   ML2   ML1  ML3
Correlation of (regression) scores with factors    0.64 0.71  0.62  0.64 0.99
Multiple R square of scores with factors           0.41 0.51  0.38  0.41 0.99
Minimum correlation of possible factor scores     -0.18 0.02 -0.23 -0.17 0.98

I prefer the fa5_ob model. However, caution is advised regarding the item complexity (com) values which are larger than 2. This suggests these items load substantially on more than one factor, indicating potential cross-loading. Similar cross-loading issues are observed in other solutions as well.

Code
fa.diagram(fa3_ob, sort = FALSE)
fa.diagram(fa4_ob, sort = FALSE)
fa.diagram(fa5_ob, sort = FALSE)
(a) n = 3
(b) n = 4
(c) n = 5
Figure 4: Diagram of factor structure under the oblique rotation

3.2.4 Overall comparison

Code
assign_fac <- function(f){
  fac_load_abs <- abs(f$loadings)
  mac_loadings <- apply(fac_load_abs, 1, which.max)
}

fa_models <- list(fa3, fa4, fa5, fa3_ob, fa4_ob, fa5_ob)
fa_load_comp <- map_dfc(fa_models, assign_fac)
names(fa_load_comp) <- c("fa3", "fa4", "fa5", "fa3_ob", "fa4_ob", "fa5_ob")

fa_load_comp <- fa_load_comp |> 
  add_column(var = colnames(fa_data), .before = "fa3")
fa_load_comp
# A tibble: 17 × 7
   var                 fa3   fa4   fa5 fa3_ob fa4_ob fa5_ob
   <chr>             <int> <int> <int>  <int>  <int>  <int>
 1 vac_gen_1             2     2     1      2      2      2
 2 vac_gen_2             2     2     1      2      2      2
 3 vac_gen_3             3     3     4      3      3      5
 4 vac_gen_4             3     3     4      3      3      5
 5 vac_gen_5             2     2     1      2      2      2
 6 vac_gen_6             2     2     1      2      2      2
 7 covid_pro_1           1     1     2      1      1      1
 8 covid_ag_1            1     1     2      1      1      1
 9 covid_ag_2            1     1     2      1      1      1
10 covid_pro_2           1     1     5      1      4      4
11 covid_over18          1     1     2      1      1      1
12 covid_pregnant        1     1     2      1      1      1
13 covid_children        1     1     2      1      1      1
14 covid_oblig_1         1     1     3      1      1      3
15 covid_oblig_2         1     1     3      1      1      3
16 covid_leaders         1     1     3      1      1      3
17 covid_earlyaccess     2     4     5      2      4      4
Figure 5: FA structure comparison

Comparing the factor structures visually (Figure Figure 5), the five-factor oblique solution (fa5_ob) appeared most readily interpretable in relation to the 5C model at this stage of the analysis.

Fit indices for the candidate solutions are recorded in Table Table 1. They were considered alongside the loading patterns and theoretical interpretation rather than as independent proof of a particular dimensional structure.

Code
fa_model_fit <- tibble(models = fa_models, 
                       names = c("fa3", "fa4", "fa5", "fa3_ob", "fa4_ob", "fa5_ob")) |> 
  mutate(fit = map_dbl(models, "fit"),
         fit.off = map_dbl(models, "fit.off"),
         chi2 = map_dbl(models, "STATISTIC"), # chi-square
         df =  map_dbl(models, "dof"), # degree of freedom
         p.value = map_dbl(models, "PVAL"), # p-value of the chi-square test
         RMS = map_dbl(models, "rms"), # root mean square (off diagonal residuals) / df
         cRMS = map_dbl(models, "crms"), # rms adjusted for degrees of freedom
         RMSEA = map_dbl(models, ~ .$RMSEA[[1]]), # root mean square error of approximation
         TLI = map_dbl(models, "TLI"), # Tucker-Lewis Index (the non-normal fit index)
         BIC = map_dbl(models, "BIC")) |>
  select(-models)

# map_dbl(fa_models, `$`, chi)      # empirical chi-square
# map_dbl(fa_models, `$`, objective) # objective function used in ML
# map_dbl(fa_models, `$`, eBIC)     # empirical BIC

fa_model_fit
Table 1: Fit indices for the candidate factor models
# A tibble: 6 × 11
  names    fit fit.off  chi2    df  p.value    RMS   cRMS  RMSEA   TLI   BIC
  <chr>  <dbl>   <dbl> <dbl> <dbl>    <dbl>  <dbl>  <dbl>  <dbl> <dbl> <dbl>
1 fa3    0.951   0.996  318.    88 8.93e-28 0.0281 0.0349 0.0693 0.938 -236.
2 fa4    0.954   0.997  198.    74 2.76e-13 0.0238 0.0323 0.0555 0.960 -268.
3 fa5    0.958   0.998  126.    61 2.29e- 6 0.0191 0.0285 0.0440 0.975 -259.
4 fa3_ob 0.951   0.996  318.    88 8.93e-28 0.0281 0.0349 0.0693 0.938 -236.
5 fa4_ob 0.954   0.997  198.    74 2.76e-13 0.0238 0.0323 0.0555 0.960 -268.
6 fa5_ob 0.958   0.998  126.    61 2.29e- 6 0.0191 0.0285 0.0440 0.975 -259.
  • The likelihood-ratio chi-square evaluates exact fit and is sensitive to sample size.
  • RMS and cRMS summarize residual discrepancies between the observed and model-implied correlations.
  • RMSEA assesses approximate fit and should be interpreted with its uncertainty interval when available.
  • TLI compares the proposed model with a more restrictive baseline model while penalizing complexity.
  • BIC balances fit and complexity; lower values favor a model within the set being compared.

No single index determined the working solution. Model fit was considered together with parsimony, loading structure, factor correlations, and theoretical interpretability.

See also:

3.2.5 Working decision at this stage

The recorded fit indices did not point uniformly to a single solution. The displayed parallel analysis suggested three factors, whereas BIC was lower for the four-factor solutions. The five-factor solutions showed more favorable TLI and RMSEA values than the smaller solutions.

At this stage of manuscript development, the five-factor oblique solution (fa5_ob) was retained as the working model. The decision considered the study’s connection to the 5C framework, the interpretability of the loading pattern, correlations among the factors, and the model-fit indices. It should not be read as evidence that the statistical criteria independently established a five-factor structure.

ImportantRelation to the published analysis

This section records an intermediate stage of model exploration. The subsequently published article reported the five-factor oblique solution after considering statistical fit and theoretical interpretation, including a distinction between general collective responsibility and obligated collective responsibility. The article and its supplementary materials provide the definitive model description and substantive interpretation.

For the working five-factor solution, Table Table 2 displays loadings with an absolute value greater than 0.26, matching the presentation threshold later used in the published article.

Code
# Factor loadings retained for the working analysis record
fa_load <- fa5_ob$loadings[,] %>%
  ifelse(abs(.) > 0.26, ., NA) |> # display threshold used in the article
  round(3) |> 
  as_tibble() |> 
  add_column(vars = names(fa_data), .before = 1)

gt(fa_load) |> 
  sub_missing(missing_text = "-") 
Table 2: Factor loadings for the working five-factor oblique solution
vars ML5 ML4 ML2 ML1 ML3
vac_gen_1 - 0.891 - - -
vac_gen_2 - 0.620 - - -
vac_gen_3 - - - - 1.011
vac_gen_4 - - - - 0.771
vac_gen_5 - 0.269 - - -
vac_gen_6 - 0.299 - - -
covid_pro_1 0.459 - - - -
covid_ag_1 -0.333 - - - -
covid_ag_2 -0.371 - - - -
covid_pro_2 - - - 0.470 -
covid_over18 -0.841 - - - -
covid_pregnant 0.700 - - - -
covid_children 0.669 - - - -
covid_oblig_1 - - 0.777 - -
covid_oblig_2 - - 0.684 - -
covid_leaders - - 0.445 0.350 -
covid_earlyaccess - - - 0.752 -

Because an oblique rotation was used, Table Table 3 also records the inter-factor correlation matrix (Phi matrix).

Code
fa_phi <- fa5_ob$Phi |> 
  round(3) |> 
  as_tibble() |> 
  add_column("_"= colnames(fa5_ob$Phi), .before = 1)

gt(fa_phi)
Table 3: Inter-factor correlation matrix
_ ML5 ML4 ML2 ML1 ML3
ML5 1.000 0.688 0.798 0.632 -0.291
ML4 0.688 1.000 0.648 0.627 -0.199
ML2 0.798 0.648 1.000 0.642 -0.235
ML1 0.632 0.627 0.642 1.000 -0.114
ML3 -0.291 -0.199 -0.235 -0.114 1.000
Code
# Used in the subsequent analysis
fa_scores <- fa5_ob$scores |> as_tibble() 
Note

These loading and factor-correlation tables are retained as part of the working analysis record. The published article and supplementary materials contain the final reported results.

NoteWhy use EFA rather than CFA?

EFA was used because the original questionnaire was not designed a priori as a direct operationalization of the 5C constructs. The analysis therefore explored the underlying loading structure before interpreting its relation to the 5C framework.

4 Vaccine sentiment (VS)

The working analysis used the following five sentiment variables:

  1. change_vac_1 (S1): My attitude towards vaccination (in general) has not been influenced by the COVID-19 pandemic.
  2. change_vac_2 (S2): The COVID-19 pandemic has increased my confidence in the safety of vaccines.
  3. change_HealthSy_1 (S3): The COVID-19 pandemic has increased my confidence in the health system of my country.
  4. change_vac_3 (S4): From now on, I will pay more attention to updating my vaccination schedule in general.
  5. cov_pro_3 (S5): I am keen to receive another COVID-19 vaccination if the health authority recommends it.

The S1-S5 labels preserve the ordering used in this working analysis record. They do not correspond numerically to the VS1-VS5 labels in the published article:

Correspondence between the working outcome labels and the labels used in the published article
Working label Variable Published label and construct
S1 change_vac_1 VS4: general attitude
S2 change_vac_2 VS3: vaccine confidence
S3 change_HealthSy_1 VS5: health-system confidence
S4 change_vac_3 VS1: vaccine attention
S5 cov_pro_3 VS2: vaccine intention

Each item was treated as a binary outcome (agree/strongly agree versus disagree/strongly disagree). The staged logistic regression models recorded during manuscript development are summarized in Table Table 4.

NoteScope of this section

The models below preserve the sequence in which demographic, occupational, fear, knowledge, and factor-score predictors were added during the working analysis. They do not document every model, diagnostic, or sensitivity analysis reported in the published article. The article and its supplementary materials remain the definitive source for the final estimates and interpretations.

Table 4: Staged logistic regression models for each vaccine-sentiment outcome
Predictor block Model 1 Model 2 Model 3 Model 4 Model 5
Demographics + + + + +
Work environment + + + +
Fear + + +
Knowledge + +
Factor scores +

4.1 Define variables

Code
sentiment_var <- c("cov_pro_3", "change_vac_1", "change_vac_2", "change_vac_3", "change_HealthSy_1")
demography_var <- c("gender", "age_class", "edu", "chronic")
working_var <- c("member", "prof", "w_setting")
fn_var <- c("fear", "knowledge")
attitude_var <- names(fa_data)
fa_var <- names(fa_scores)

lr_rawdata <- rawdata |> 
  drop_na(all_of(attitude_var)) |> 
  select(
    all_of(sentiment_var), 
    all_of(demography_var), 
    all_of(working_var),
    all_of(fn_var),
    all_of(attitude_var)) |> 
  add_column(fa_scores)

The variables were coded as follows:

  • Outcomes: S1-S5 were recoded as binary factors (0 = disagree/strongly disagree; 1 = agree/strongly agree).
  • Gender (gender): female or male; “I prefer not to answer” was treated as missing.
  • Age group (age_class): <35, 35-44, 45-54, 55-64, 65-74, or 75+.
  • Education (edu): medical degree or other; the latter combined the remaining education categories.
  • Chronic disease (chronic): yes or no; “I prefer not to answer” was treated as missing.
  • Association membership (member): yes or no; “I don’t know” was treated as missing.
  • Profession (prof): nutrition, pharmacy, physician, or other.
  • Work setting (w_setting): community, hospital, private, university, or other.
  • Fear (fear) and knowledge (knowledge): continuous predictors.
  • Factor scores (ML1-ML5): regression-based scores from the working fa5_ob solution, used as continuous predictors.

lr_rawdata retained respondents with complete responses on the attitude items used to calculate the factor scores. Each glm() call then used complete cases for the variables included in that model, so the effective sample size may differ across outcomes and model stages.

Code
lr_data <- lr_rawdata |> 
  mutate(
    # Sentiment variables
    across(all_of(sentiment_var), ~ factor(ifelse(. > 3, 1, 0))),
    # Demographic variables
    gender = as_factor(gender) |> droplevels(exclude = "I prefer not to answer"),
    age_class = as_factor(age_class),
    edu = as_factor(edu) |> fct_relabel(~ str_sub(.x, 1, 4)) |> fct_collapse(Othe = c("Othe", "High", "Tech", "Bach", "Mast")),
    chronic = as_factor(chronic) |> droplevels(exclude = "I prefer not to answer") |> fct_rev(),
    # Work-related variables
    member = as_factor(member) |> droplevels(exclude = "I don't know") |> fct_rev(),
    prof = as_factor(prof) |> fct_relabel(~ str_sub(.x, 1, 4)) |> fct_collapse(Othe = c("Othe", "Nurs", "Dent", "Heal", "Midw", "Publ", "Soci")),
    w_setting = as_factor(w_setting) |> fct_relabel(~ str_sub(.x, 1, 4)),
    # Attitude variables: recode 1, 2, 4, 5 as 1, 2, 3, 4
    across(all_of(attitude_var), ~ . - ifelse(. > 3, 1, 0))
  )

4.2 Logistic regression models

4.2.1 Sentiment 1 (S1)

The formulas for the five staged models for Sentiment 1 (change_vac_1) are defined as follows:

Code
m1_str <- str_c("change_vac_1 ~ ", str_flatten(demography_var, " + "))
m2_str <- str_c(m1_str, " + ", str_flatten(working_var, " + "))
m3_str <- str_c(m2_str, " + ", "fear")
m4_str <- str_c(m3_str, " + ", "knowledge")
m5_str <- str_c(m4_str, " + ", str_flatten(fa_var, " + "))

Each model was estimated using logistic regression with a binomial family and logit link.

Code
s1_models <- map(list(m1_str, m2_str, m3_str, m4_str, m5_str), 
                 ~ glm(as.formula(.), family = binomial, lr_data)) 

The working odds-ratio estimates for S1 are recorded in Table Table 5.

Code
extract_esti <- function(lr) {
  coef <- summary(lr)$coefficients
  var_name <- rownames(coef)
  esti <- coef[, 1]
  OR <- exp(esti) |> round(2)
  se <- coef[, 2]
  p_value <- coef[, 4]
  conf_l <- exp(esti - qnorm(1-0.05/2) * se) |> round(2)
  conf_u <- exp(esti + qnorm(1-0.05/2) * se) |> round(2)
  p_sig <- cut(p_value, 
               breaks = c(0, 0.001, 0.01, 0.05, 0.1, 1),
               labels = c("***&nbsp;", "**&nbsp;&nbsp;", "*&nbsp;&nbsp;&nbsp;", "&nbsp;&nbsp;&nbsp;&nbsp;", "&nbsp;&nbsp;&nbsp;&nbsp;"),
               include.lowest = TRUE)
  result <- str_glue("{format(OR)}{p_sig}<br>[{format(conf_l)}, {format(conf_u)}]")
  tibble(vars = var_name, esti = result)
}

s1_result_comp <- map(s1_models, extract_esti) |> 
  reduce(full_join, by = "vars")
names(s1_result_comp) <- c("EVs", "Model 1", "Model 2", "Model 3", "Model 4", "Model 5")

gt(s1_result_comp) |> 
  sub_missing(missing_text = "-") |> 
  fmt_markdown(columns = everything()) 
Table 5: Working odds-ratio estimates (95% Wald CIs) for Sentiment 1
EVs Model 1 Model 2 Model 3 Model 4 Model 5
(Intercept) 1.82**  
[1.20, 2.78]
1.34    
[0.62, 2.90]
1.32    
[0.48, 3.60]
0.65    
[0.17, 2.44]
0.93    
[0.23, 3.77]
genderMale 1.17    
[0.73, 1.89]
1.14    
[0.70, 1.88]
1.15    
[0.70, 1.88]
1.10    
[0.67, 1.81]
1.13    
[0.68, 1.88]
age_class35-44 1.62    
[0.92, 2.83]
1.96*   
[1.08, 3.55]
1.96*   
[1.08, 3.55]
1.89*   
[1.04, 3.44]
2.02*   
[1.10, 3.71]
age_class45-54 1.56    
[0.83, 2.92]
1.86    
[0.94, 3.69]
1.86    
[0.94, 3.69]
1.86    
[0.94, 3.69]
2.08*   
[1.03, 4.19]
age_class55-64 2.99**  
[1.54, 5.79]
3.11**  
[1.51, 6.43]
3.11**  
[1.51, 6.44]
3.06**  
[1.48, 6.35]
3.32**  
[1.58, 6.96]
age_class65-74 10.39*** 
[2.87, 37.62]
10.35*** 
[2.74, 39.17]
10.35*** 
[2.74, 39.17]
9.90*** 
[2.62, 37.41]
10.72*** 
[2.81, 40.87]
age_class75+ 0.61    
[0.12, 3.01]
0.51    
[0.10, 2.70]
0.51    
[0.10, 2.71]
0.49    
[0.09, 2.64]
0.55    
[0.10, 3.04]
eduMedi 1.00    
[0.63, 1.58]
0.84    
[0.49, 1.43]
0.84    
[0.49, 1.43]
0.82    
[0.48, 1.41]
0.84    
[0.49, 1.45]
chronicYes 0.55*   
[0.34, 0.89]
0.55*   
[0.33, 0.92]
0.55*   
[0.33, 0.92]
0.56*   
[0.34, 0.93]
0.56*   
[0.33, 0.94]
memberYes - 0.89    
[0.47, 1.67]
0.89    
[0.47, 1.67]
0.88    
[0.47, 1.67]
0.85    
[0.45, 1.63]
profNutr - 1.22    
[0.69, 2.16]
1.22    
[0.69, 2.16]
1.22    
[0.69, 2.17]
1.30    
[0.72, 2.34]
profPhar - 1.60    
[0.77, 3.32]
1.60    
[0.77, 3.32]
1.60    
[0.77, 3.33]
1.49    
[0.70, 3.14]
profPhys - 1.87    
[0.80, 4.40]
1.87    
[0.80, 4.40]
1.84    
[0.78, 4.33]
1.76    
[0.74, 4.16]
w_settingComm - 1.37    
[0.64, 2.95]
1.37    
[0.64, 2.95]
1.35    
[0.63, 2.90]
1.44    
[0.66, 3.12]
w_settingHosp - 1.29    
[0.59, 2.85]
1.30    
[0.59, 2.86]
1.32    
[0.59, 2.92]
1.49    
[0.66, 3.37]
w_settingPriv - 0.75    
[0.36, 1.53]
0.75    
[0.36, 1.53]
0.77    
[0.38, 1.59]
0.86    
[0.41, 1.79]
w_settingUniv - 1.39    
[0.65, 2.99]
1.39    
[0.65, 2.99]
1.36    
[0.63, 2.93]
1.38    
[0.64, 2.99]
fear - - 1.00    
[0.93, 1.08]
1.00    
[0.93, 1.08]
0.96    
[0.88, 1.05]
knowledge - - - 1.11    
[0.98, 1.27]
1.09    
[0.95, 1.25]
ML5 - - - - 1.12    
[0.63, 1.96]
ML4 - - - - 0.93    
[0.62, 1.38]
ML2 - - - - 1.47    
[0.86, 2.51]
ML1 - - - - 0.88    
[0.58, 1.32]
ML3 - - - - 1.02    
[0.80, 1.30]

Cells report odds ratios with 95% Wald confidence intervals in brackets. Stars denote unadjusted Wald p-values: * p <= .05, ** p <= .01, and *** p <= .001.

4.2.2 Sentiment 2 (S2)

Code
s2_models <- map(s1_models, 
                 ~ update(.x, change_vac_2 ~ .))

s2_result_comp <- map(s2_models, extract_esti) |> 
  reduce(full_join, by = "vars")
names(s2_result_comp) <- c("EVs", "Model 1", "Model 2", "Model 3", "Model 4", "Model 5")

gt(s2_result_comp) |> 
  sub_missing(missing_text = "-") |> 
  fmt_markdown(columns = everything()) 
Table 6: Working odds-ratio estimates (95% Wald CIs) for Sentiment 2
EVs Model 1 Model 2 Model 3 Model 4 Model 5
(Intercept) 3.02*** 
[1.91, 4.80]
6.32*** 
[2.65, 15.08]
1.31    
[0.46, 3.75]
0.68    
[0.17, 2.77]
1.99    
[0.40, 9.84]
genderMale 0.91    
[0.57, 1.48]
0.99    
[0.60, 1.62]
1.09    
[0.65, 1.82]
1.04    
[0.62, 1.76]
1.07    
[0.60, 1.91]
age_class35-44 0.96    
[0.53, 1.74]
0.85    
[0.46, 1.58]
0.89    
[0.47, 1.71]
0.87    
[0.46, 1.67]
1.03    
[0.49, 2.14]
age_class45-54 1.16    
[0.59, 2.28]
0.87    
[0.42, 1.78]
0.88    
[0.41, 1.85]
0.88    
[0.42, 1.85]
1.21    
[0.53, 2.77]
age_class55-64 1.06    
[0.56, 2.02]
0.67    
[0.33, 1.38]
0.73    
[0.35, 1.53]
0.72    
[0.34, 1.52]
0.84    
[0.37, 1.91]
age_class65-74 15.23**  
[1.95, 118.88]
9.09*   
[1.13, 72.77]
9.96*   
[1.21, 82.09]
9.75*   
[1.18, 80.23]
10.77*   
[1.24, 93.36]
age_class75+ 0.82    
[0.14, 4.70]
0.54    
[0.09, 3.29]
0.61    
[0.09, 4.17]
0.60    
[0.09, 4.18]
1.39    
[0.15, 13.23]
eduMedi 0.86    
[0.54, 1.36]
0.65    
[0.38, 1.12]
0.68    
[0.39, 1.21]
0.67    
[0.38, 1.19]
0.67    
[0.36, 1.26]
chronicYes 1.22    
[0.72, 2.08]
1.20    
[0.70, 2.07]
1.05    
[0.60, 1.84]
1.06    
[0.60, 1.87]
1.09    
[0.59, 2.02]
memberYes - 1.05    
[0.54, 2.05]
0.92    
[0.45, 1.86]
0.92    
[0.45, 1.87]
0.77    
[0.36, 1.63]
profNutr - 0.69    
[0.39, 1.24]
0.73    
[0.40, 1.35]
0.74    
[0.40, 1.36]
0.81    
[0.40, 1.61]
profPhar - 1.90    
[0.90, 4.03]
1.79    
[0.82, 3.87]
1.79    
[0.82, 3.90]
1.35    
[0.58, 3.14]
profPhys - 1.12    
[0.51, 2.50]
1.09    
[0.47, 2.50]
1.08    
[0.47, 2.47]
0.97    
[0.40, 2.34]
w_settingComm - 0.52    
[0.23, 1.15]
0.54    
[0.24, 1.23]
0.53    
[0.23, 1.22]
0.59    
[0.24, 1.45]
w_settingHosp - 0.48    
[0.21, 1.07]
0.53    
[0.23, 1.22]
0.53    
[0.23, 1.23]
0.70    
[0.27, 1.82]
w_settingPriv - 0.57    
[0.26, 1.24]
0.58    
[0.26, 1.29]
0.59    
[0.26, 1.32]
0.94    
[0.39, 2.29]
w_settingUniv - 0.78    
[0.34, 1.78]
0.77    
[0.32, 1.85]
0.75    
[0.31, 1.79]
0.62    
[0.25, 1.57]
fear - - 1.22*** 
[1.13, 1.31]
1.22*** 
[1.13, 1.31]
1.10*   
[1.00, 1.21]
knowledge - - - 1.10    
[0.96, 1.26]
1.05    
[0.90, 1.22]
ML5 - - - - 1.06    
[0.57, 1.97]
ML4 - - - - 1.77*   
[1.13, 2.78]
ML2 - - - - 2.06*   
[1.15, 3.66]
ML1 - - - - 0.89    
[0.57, 1.41]
ML3 - - - - 1.33    
[1.00, 1.79]

4.2.3 Sentiment 3 (S3)

Code
s3_models <- map(s1_models, 
                 ~ update(.x, change_HealthSy_1 ~ .))

s3_result_comp <- map(s3_models, extract_esti) |> 
  reduce(full_join, by = "vars")
names(s3_result_comp) <- c("EVs", "Model 1", "Model 2", "Model 3", "Model 4", "Model 5")

gt(s3_result_comp) |> 
  sub_missing(missing_text = "-") |> 
  fmt_markdown(columns = everything()) 
Table 7: Working odds-ratio estimates (95% Wald CIs) for Sentiment 3
EVs Model 1 Model 2 Model 3 Model 4 Model 5
(Intercept) 2.08*** 
[1.36, 3.18]
5.94*** 
[2.50, 14.08]
1.79    
[0.64, 5.04]
1.19    
[0.31, 4.59]
1.87    
[0.44, 7.91]
genderMale 1.02    
[0.64, 1.60]
1.09    
[0.68, 1.75]
1.18    
[0.73, 1.91]
1.15    
[0.71, 1.87]
1.14    
[0.69, 1.88]
age_class35-44 1.10    
[0.63, 1.90]
0.87    
[0.48, 1.56]
0.91    
[0.50, 1.65]
0.89    
[0.49, 1.63]
0.92    
[0.49, 1.72]
age_class45-54 2.18*   
[1.12, 4.27]
1.54    
[0.75, 3.13]
1.60    
[0.78, 3.30]
1.61    
[0.78, 3.31]
1.97    
[0.92, 4.24]
age_class55-64 1.66    
[0.90, 3.08]
1.16    
[0.58, 2.30]
1.25    
[0.62, 2.52]
1.25    
[0.62, 2.51]
1.37    
[0.66, 2.84]
age_class65-74 4.09**  
[1.50, 11.13]
2.73    
[0.95, 7.88]
2.77    
[0.95, 8.12]
2.71    
[0.93, 7.94]
2.89    
[0.97, 8.64]
age_class75+ 0.84    
[0.17, 4.16]
0.67    
[0.13, 3.44]
0.72    
[0.13, 3.90]
0.71    
[0.13, 3.89]
1.02    
[0.16, 6.42]
eduMedi 0.71    
[0.46, 1.11]
0.68    
[0.40, 1.13]
0.71    
[0.42, 1.20]
0.70    
[0.41, 1.20]
0.68    
[0.39, 1.17]
chronicYes 0.95    
[0.59, 1.54]
1.01    
[0.62, 1.66]
0.91    
[0.55, 1.51]
0.91    
[0.55, 1.52]
0.90    
[0.53, 1.51]
memberYes - 1.52    
[0.81, 2.83]
1.44    
[0.76, 2.74]
1.44    
[0.75, 2.74]
1.39    
[0.72, 2.69]
profNutr - 0.69    
[0.39, 1.21]
0.72    
[0.41, 1.28]
0.72    
[0.41, 1.28]
0.76    
[0.41, 1.39]
profPhar - 0.94    
[0.48, 1.81]
0.87    
[0.44, 1.71]
0.87    
[0.44, 1.70]
0.79    
[0.40, 1.59]
profPhys - 0.92    
[0.43, 1.97]
0.88    
[0.40, 1.91]
0.87    
[0.40, 1.89]
0.88    
[0.40, 1.96]
w_settingComm - 0.42*   
[0.19, 0.94]
0.44*   
[0.19, 1.00]
0.43*   
[0.19, 0.99]
0.44    
[0.19, 1.02]
w_settingHosp - 0.33**  
[0.15, 0.74]
0.35*   
[0.15, 0.81]
0.36*   
[0.16, 0.82]
0.38*   
[0.16, 0.90]
w_settingPriv - 0.45*   
[0.21, 0.98]
0.46    
[0.21, 1.02]
0.47    
[0.21, 1.04]
0.57    
[0.25, 1.31]
w_settingUniv - 0.41*   
[0.18, 0.92]
0.39*   
[0.17, 0.90]
0.38*   
[0.16, 0.88]
0.34*   
[0.14, 0.82]
fear - - 1.16*** 
[1.08, 1.24]
1.16*** 
[1.08, 1.24]
1.10*   
[1.01, 1.19]
knowledge - - - 1.06    
[0.93, 1.21]
1.05    
[0.92, 1.20]
ML5 - - - - 0.79    
[0.45, 1.39]
ML4 - - - - 1.49    
[1.00, 2.23]
ML2 - - - - 1.62    
[0.96, 2.75]
ML1 - - - - 1.01    
[0.68, 1.52]
ML3 - - - - 1.31*   
[1.03, 1.68]

4.2.4 Sentiment 4 (S4)

Code
s4_models <- map(s1_models, 
                 ~ update(.x, change_vac_3 ~ .))

s4_result_comp <- map(s4_models, extract_esti) |> 
  reduce(full_join, by = "vars")
names(s4_result_comp) <- c("EVs", "Model 1", "Model 2", "Model 3", "Model 4", "Model 5")

gt(s4_result_comp) |> 
  sub_missing(missing_text = "-") |> 
  fmt_markdown(columns = everything()) 
Table 8: Working odds-ratio estimates (95% Wald CIs) for Sentiment 4
EVs Model 1 Model 2 Model 3 Model 4 Model 5
(Intercept) 6.96*** 
[3.89, 12.46]
7.59*** 
[2.88, 20.05]
2.13    
[0.66, 6.82]
3.97    
[0.76, 20.64]
5.43    
[0.97, 30.25]
genderMale 0.72    
[0.42, 1.23]
0.76    
[0.44, 1.33]
0.80    
[0.46, 1.41]
0.83    
[0.47, 1.46]
0.84    
[0.47, 1.50]
age_class35-44 0.76    
[0.37, 1.55]
0.74    
[0.35, 1.57]
0.78    
[0.36, 1.69]
0.80    
[0.37, 1.73]
0.87    
[0.39, 1.95]
age_class45-54 1.13    
[0.49, 2.59]
1.14    
[0.47, 2.77]
1.14    
[0.46, 2.78]
1.14    
[0.46, 2.79]
1.28    
[0.51, 3.24]
age_class55-64 1.05    
[0.48, 2.32]
1.00    
[0.42, 2.39]
1.08    
[0.45, 2.60]
1.09    
[0.45, 2.64]
1.14    
[0.46, 2.82]
age_class65-74 1.56    
[0.50, 4.89]
1.41    
[0.42, 4.76]
1.32    
[0.39, 4.49]
1.37    
[0.40, 4.70]
1.49    
[0.42, 5.34]
age_class75+ 1.04    
[0.11, 9.83]
1.20    
[0.12, 12.06]
1.28    
[0.12, 13.31]
1.33    
[0.13, 14.05]
1.56    
[0.14, 17.33]
eduMedi 0.59    
[0.35, 1.01]
0.65    
[0.35, 1.20]
0.69    
[0.36, 1.30]
0.69    
[0.37, 1.31]
0.72    
[0.38, 1.38]
chronicYes 1.56    
[0.83, 2.92]
1.46    
[0.77, 2.77]
1.32    
[0.68, 2.54]
1.32    
[0.68, 2.55]
1.29    
[0.66, 2.52]
memberYes - 0.67    
[0.34, 1.32]
0.60    
[0.30, 1.22]
0.60    
[0.30, 1.21]
0.56    
[0.27, 1.14]
profNutr - 1.06    
[0.51, 2.17]
1.13    
[0.55, 2.34]
1.12    
[0.54, 2.32]
1.26    
[0.58, 2.74]
profPhar - 1.28    
[0.57, 2.88]
1.20    
[0.53, 2.73]
1.21    
[0.53, 2.75]
1.08    
[0.47, 2.52]
profPhys - 0.76    
[0.35, 1.65]
0.72    
[0.32, 1.58]
0.73    
[0.33, 1.61]
0.68    
[0.30, 1.53]
w_settingComm - 0.78    
[0.33, 1.85]
0.86    
[0.35, 2.07]
0.87    
[0.36, 2.11]
0.96    
[0.39, 2.40]
w_settingHosp - 0.87    
[0.34, 2.21]
1.01    
[0.39, 2.63]
1.02    
[0.39, 2.66]
1.20    
[0.44, 3.23]
w_settingPriv - 1.39    
[0.54, 3.55]
1.51    
[0.58, 3.92]
1.49    
[0.58, 3.89]
1.87    
[0.69, 5.05]
w_settingUniv - 0.89    
[0.38, 2.10]
0.91    
[0.38, 2.18]
0.93    
[0.39, 2.25]
0.94    
[0.39, 2.30]
fear - - 1.17*** 
[1.08, 1.27]
1.17*** 
[1.08, 1.27]
1.11*   
[1.01, 1.22]
knowledge - - - 0.91    
[0.77, 1.08]
0.92    
[0.77, 1.09]
ML5 - - - - 0.79    
[0.41, 1.53]
ML4 - - - - 1.10    
[0.69, 1.75]
ML2 - - - - 2.07*   
[1.14, 3.74]
ML1 - - - - 0.93    
[0.59, 1.46]
ML3 - - - - 1.13    
[0.85, 1.50]

4.2.5 Sentiment 5 (S5)

Code
s5_models <- map(s1_models, 
                 ~ update(.x, cov_pro_3 ~ .))

s5_result_comp <- map(s5_models, extract_esti) |> 
  reduce(full_join, by = "vars")
names(s5_result_comp) <- c("EVs", "Model 1", "Model 2", "Model 3", "Model 4", "Model 5")

gt(s5_result_comp) |> 
  sub_missing(missing_text = "-") |> 
  fmt_markdown(columns = everything()) 
Table 9: Working odds-ratio estimates (95% Wald CIs) for Sentiment 5
EVs Model 1 Model 2 Model 3 Model 4 Model 5
(Intercept) 3.56*** 
[2.18, 5.82]
7.38*** 
[2.77, 19.63]
0.82    
[0.25, 2.71]
0.20    
[0.04, 1.03]
1.16    
[0.13, 10.42]
genderMale 0.91    
[0.53, 1.54]
0.98    
[0.56, 1.74]
1.16    
[0.62, 2.15]
1.06    
[0.56, 1.99]
1.11    
[0.47, 2.66]
age_class35-44 0.85    
[0.46, 1.59]
0.70    
[0.36, 1.37]
0.72    
[0.35, 1.51]
0.70    
[0.33, 1.46]
1.03    
[0.37, 2.89]
age_class45-54 1.25    
[0.60, 2.63]
0.88    
[0.39, 1.98]
0.91    
[0.37, 2.23]
0.94    
[0.38, 2.29]
2.30    
[0.71, 7.48]
age_class55-64 1.90    
[0.88, 4.13]
1.09    
[0.46, 2.55]
1.30    
[0.51, 3.28]
1.34    
[0.52, 3.43]
3.33    
[0.95, 11.65]
age_class65-74 4.88*   
[1.06, 22.59]
2.21    
[0.45, 10.89]
2.99    
[0.52, 17.11]
3.09    
[0.53, 17.82]
3.10    
[0.48, 20.24]
age_class75+ 0.55    
[0.09, 3.20]
0.20    
[0.03, 1.36]
0.22    
[0.02, 2.01]
0.22    
[0.02, 2.20]
0.59    
[0.03, 10.26]
eduMedi 1.33    
[0.78, 2.27]
0.70    
[0.37, 1.32]
0.76    
[0.38, 1.53]
0.73    
[0.36, 1.49]
0.87    
[0.32, 2.33]
chronicYes 1.11    
[0.61, 2.02]
1.37    
[0.72, 2.61]
1.09    
[0.55, 2.19]
1.13    
[0.56, 2.28]
1.51    
[0.58, 3.93]
memberYes - 1.78    
[0.74, 4.28]
1.32    
[0.50, 3.47]
1.33    
[0.50, 3.53]
0.63    
[0.19, 2.06]
profNutr - 0.75    
[0.40, 1.40]
0.78    
[0.39, 1.56]
0.81    
[0.40, 1.63]
0.98    
[0.38, 2.53]
profPhar - 2.34    
[0.91, 6.00]
2.08    
[0.76, 5.67]
2.20    
[0.79, 6.11]
0.81    
[0.20, 3.30]
profPhys - 1.44    
[0.51, 4.11]
1.35    
[0.43, 4.26]
1.28    
[0.41, 3.99]
0.78    
[0.18, 3.30]
w_settingComm - 0.48    
[0.20, 1.16]
0.50    
[0.19, 1.30]
0.47    
[0.18, 1.24]
0.71    
[0.21, 2.42]
w_settingHosp - 0.43    
[0.18, 1.05]
0.47    
[0.18, 1.27]
0.46    
[0.17, 1.26]
0.98    
[0.25, 3.82]
w_settingPriv - 0.50    
[0.21, 1.18]
0.48    
[0.19, 1.22]
0.48    
[0.19, 1.25]
1.39    
[0.41, 4.67]
w_settingUniv - 1.52    
[0.52, 4.46]
1.55    
[0.47, 5.17]
1.48    
[0.44, 5.00]
1.48    
[0.36, 6.17]
fear - - 1.35*** 
[1.24, 1.46]
1.35*** 
[1.24, 1.47]
1.17*   
[1.03, 1.32]
knowledge - - - 1.22*   
[1.05, 1.43]
1.09    
[0.88, 1.36]
ML5 - - - - 2.47*   
[1.08, 5.66]
ML4 - - - - 1.46    
[0.81, 2.61]
ML2 - - - - 4.18*** 
[1.95, 8.95]
ML1 - - - - 0.72    
[0.40, 1.28]
ML3 - - - - 0.72    
[0.45, 1.15]

4.2.6 Summary of Model 5 across sentiment outcomes

Code
m5_comp <- map(list(s1_models[[5]], s2_models[[5]], s3_models[[5]], s4_models[[5]], s5_models[[5]]), 
               extract_esti) |> 
  reduce(full_join, by = "vars")
names(m5_comp) <- c("EVs", "S1", "S2", "S3", "S4", "S5")

gt(m5_comp) |> 
  sub_missing(missing_text = "-") |> 
  fmt_markdown(columns = everything()) 
Table 10: Model 5 odds-ratio summary (95% Wald CIs)
EVs S1 S2 S3 S4 S5
(Intercept) 0.93    
[0.23, 3.77]
1.99    
[0.40, 9.84]
1.87    
[0.44, 7.91]
5.43    
[0.97, 30.25]
1.16    
[0.13, 10.42]
genderMale 1.13    
[0.68, 1.88]
1.07    
[0.60, 1.91]
1.14    
[0.69, 1.88]
0.84    
[0.47, 1.50]
1.11    
[0.47, 2.66]
age_class35-44 2.02*   
[1.10, 3.71]
1.03    
[0.49, 2.14]
0.92    
[0.49, 1.72]
0.87    
[0.39, 1.95]
1.03    
[0.37, 2.89]
age_class45-54 2.08*   
[1.03, 4.19]
1.21    
[0.53, 2.77]
1.97    
[0.92, 4.24]
1.28    
[0.51, 3.24]
2.30    
[0.71, 7.48]
age_class55-64 3.32**  
[1.58, 6.96]
0.84    
[0.37, 1.91]
1.37    
[0.66, 2.84]
1.14    
[0.46, 2.82]
3.33    
[0.95, 11.65]
age_class65-74 10.72*** 
[2.81, 40.87]
10.77*   
[1.24, 93.36]
2.89    
[0.97, 8.64]
1.49    
[0.42, 5.34]
3.10    
[0.48, 20.24]
age_class75+ 0.55    
[0.10, 3.04]
1.39    
[0.15, 13.23]
1.02    
[0.16, 6.42]
1.56    
[0.14, 17.33]
0.59    
[0.03, 10.26]
eduMedi 0.84    
[0.49, 1.45]
0.67    
[0.36, 1.26]
0.68    
[0.39, 1.17]
0.72    
[0.38, 1.38]
0.87    
[0.32, 2.33]
chronicYes 0.56*   
[0.33, 0.94]
1.09    
[0.59, 2.02]
0.90    
[0.53, 1.51]
1.29    
[0.66, 2.52]
1.51    
[0.58, 3.93]
memberYes 0.85    
[0.45, 1.63]
0.77    
[0.36, 1.63]
1.39    
[0.72, 2.69]
0.56    
[0.27, 1.14]
0.63    
[0.19, 2.06]
profNutr 1.30    
[0.72, 2.34]
0.81    
[0.40, 1.61]
0.76    
[0.41, 1.39]
1.26    
[0.58, 2.74]
0.98    
[0.38, 2.53]
profPhar 1.49    
[0.70, 3.14]
1.35    
[0.58, 3.14]
0.79    
[0.40, 1.59]
1.08    
[0.47, 2.52]
0.81    
[0.20, 3.30]
profPhys 1.76    
[0.74, 4.16]
0.97    
[0.40, 2.34]
0.88    
[0.40, 1.96]
0.68    
[0.30, 1.53]
0.78    
[0.18, 3.30]
w_settingComm 1.44    
[0.66, 3.12]
0.59    
[0.24, 1.45]
0.44    
[0.19, 1.02]
0.96    
[0.39, 2.40]
0.71    
[0.21, 2.42]
w_settingHosp 1.49    
[0.66, 3.37]
0.70    
[0.27, 1.82]
0.38*   
[0.16, 0.90]
1.20    
[0.44, 3.23]
0.98    
[0.25, 3.82]
w_settingPriv 0.86    
[0.41, 1.79]
0.94    
[0.39, 2.29]
0.57    
[0.25, 1.31]
1.87    
[0.69, 5.05]
1.39    
[0.41, 4.67]
w_settingUniv 1.38    
[0.64, 2.99]
0.62    
[0.25, 1.57]
0.34*   
[0.14, 0.82]
0.94    
[0.39, 2.30]
1.48    
[0.36, 6.17]
fear 0.96    
[0.88, 1.05]
1.10*   
[1.00, 1.21]
1.10*   
[1.01, 1.19]
1.11*   
[1.01, 1.22]
1.17*   
[1.03, 1.32]
knowledge 1.09    
[0.95, 1.25]
1.05    
[0.90, 1.22]
1.05    
[0.92, 1.20]
0.92    
[0.77, 1.09]
1.09    
[0.88, 1.36]
ML5 1.12    
[0.63, 1.96]
1.06    
[0.57, 1.97]
0.79    
[0.45, 1.39]
0.79    
[0.41, 1.53]
2.47*   
[1.08, 5.66]
ML4 0.93    
[0.62, 1.38]
1.77*   
[1.13, 2.78]
1.49    
[1.00, 2.23]
1.10    
[0.69, 1.75]
1.46    
[0.81, 2.61]
ML2 1.47    
[0.86, 2.51]
2.06*   
[1.15, 3.66]
1.62    
[0.96, 2.75]
2.07*   
[1.14, 3.74]
4.18*** 
[1.95, 8.95]
ML1 0.88    
[0.58, 1.32]
0.89    
[0.57, 1.41]
1.01    
[0.68, 1.52]
0.93    
[0.59, 1.46]
0.72    
[0.40, 1.28]
ML3 1.02    
[0.80, 1.30]
1.33    
[1.00, 1.79]
1.31*   
[1.03, 1.68]
1.13    
[0.85, 1.50]
0.72    
[0.45, 1.15]

4.2.7 Appendix: Model 5 using attitude items instead of factor scores

Code
m5_ori_models <- map(list(s1_models[[5]], s2_models[[5]], s3_models[[5]], s4_models[[5]], s5_models[[5]]),
                      ~ update(.x, as.formula(str_c(". ~ .", 
                                              " - ", str_flatten(fa_var, " - "), 
                                              " + ", str_flatten(attitude_var, " + ")))))

m5_ori_comp <- map(m5_ori_models, extract_esti) |> 
  reduce(full_join, by = "vars")
names(m5_ori_comp) <- c("EVs", "S1", "S2", "S3", "S4", "S5")

gt(m5_ori_comp) |> 
  sub_missing(missing_text = "-") |> 
  fmt_markdown(columns = everything())
Table 11: Model 5 odds ratios (95% Wald CIs) using attitude items instead of factor scores
EVs S1 S2 S3 S4 S5
(Intercept) 0.12    
[0.00, 4.14]
0.00*** 
[0.00, 0.04]
0.01**  
[0.00, 0.26]
0.28    
[0.00, 18.36]
0.00*   
[0.00, 0.58]
genderMale 1.18    
[0.70, 1.99]
1.12    
[0.61, 2.04]
1.20    
[0.71, 2.05]
0.88    
[0.48, 1.62]
1.14    
[0.45, 2.93]
age_class35-44 1.89*   
[1.01, 3.51]
0.98    
[0.45, 2.10]
0.92    
[0.47, 1.77]
0.87    
[0.38, 2.02]
1.06    
[0.35, 3.22]
age_class45-54 1.94    
[0.94, 3.99]
1.09    
[0.46, 2.60]
1.79    
[0.81, 3.97]
1.48    
[0.56, 3.92]
3.13    
[0.82, 11.99]
age_class55-64 2.95**  
[1.37, 6.36]
0.76    
[0.32, 1.81]
1.37    
[0.64, 2.94]
1.22    
[0.47, 3.18]
3.40    
[0.86, 13.49]
age_class65-74 10.84*** 
[2.74, 42.89]
14.98*   
[1.35, 166.41]
3.47*   
[1.09, 11.04]
2.07    
[0.54, 7.98]
2.94    
[0.35, 24.61]
age_class75+ 0.34    
[0.06, 2.04]
1.26    
[0.12, 12.97]
1.01    
[0.15, 6.94]
1.21    
[0.10, 14.06]
0.45    
[0.03, 7.44]
eduMedi 0.89    
[0.51, 1.55]
0.72    
[0.37, 1.38]
0.74    
[0.42, 1.30]
0.69    
[0.35, 1.35]
0.69    
[0.23, 2.03]
chronicYes 0.58*   
[0.34, 0.99]
1.04    
[0.55, 1.98]
0.83    
[0.48, 1.44]
1.19    
[0.60, 2.37]
1.81    
[0.65, 5.08]
memberYes 0.96    
[0.49, 1.86]
0.78    
[0.35, 1.71]
1.27    
[0.64, 2.53]
0.61    
[0.29, 1.27]
0.51    
[0.14, 1.88]
profNutr 1.37    
[0.74, 2.52]
0.78    
[0.38, 1.63]
0.68    
[0.36, 1.28]
1.20    
[0.53, 2.68]
1.12    
[0.39, 3.18]
profPhar 1.50    
[0.70, 3.21]
1.37    
[0.58, 3.24]
0.72    
[0.34, 1.49]
1.06    
[0.44, 2.56]
0.75    
[0.18, 3.21]
profPhys 1.67    
[0.69, 4.02]
0.83    
[0.33, 2.08]
0.77    
[0.33, 1.79]
0.69    
[0.30, 1.61]
0.66    
[0.14, 3.09]
w_settingComm 1.44    
[0.65, 3.19]
0.64    
[0.26, 1.63]
0.51    
[0.21, 1.21]
1.13    
[0.44, 2.89]
0.59    
[0.15, 2.24]
w_settingHosp 1.58    
[0.68, 3.66]
0.71    
[0.27, 1.90]
0.42    
[0.17, 1.03]
1.36    
[0.48, 3.85]
1.12    
[0.26, 4.89]
w_settingPriv 0.78    
[0.37, 1.68]
0.98    
[0.39, 2.46]
0.65    
[0.28, 1.53]
2.47    
[0.87, 6.97]
1.76    
[0.46, 6.82]
w_settingUniv 1.32    
[0.60, 2.91]
0.67    
[0.26, 1.73]
0.39*   
[0.16, 0.95]
0.90    
[0.36, 2.23]
1.90    
[0.38, 9.48]
fear 0.96    
[0.88, 1.05]
1.10    
[1.00, 1.21]
1.10*   
[1.01, 1.20]
1.11*   
[1.01, 1.23]
1.16*   
[1.01, 1.33]
knowledge 1.10    
[0.95, 1.26]
1.01    
[0.86, 1.19]
1.04    
[0.90, 1.20]
0.90    
[0.75, 1.09]
1.13    
[0.89, 1.44]
vac_gen_1 1.08    
[0.58, 2.00]
2.95**  
[1.52, 5.73]
1.48    
[0.82, 2.67]
0.94    
[0.45, 1.96]
1.50    
[0.59, 3.81]
vac_gen_2 1.05    
[0.50, 2.18]
0.77    
[0.35, 1.71]
0.90    
[0.42, 1.92]
1.03    
[0.41, 2.55]
0.79    
[0.25, 2.48]
vac_gen_3 1.01    
[0.67, 1.52]
1.11    
[0.70, 1.76]
1.18    
[0.79, 1.78]
1.17    
[0.71, 1.92]
0.60    
[0.29, 1.23]
vac_gen_4 0.97    
[0.64, 1.46]
1.26    
[0.78, 2.03]
1.28    
[0.83, 1.96]
0.95    
[0.58, 1.55]
1.29    
[0.62, 2.70]
vac_gen_5 0.91    
[0.65, 1.26]
1.22    
[0.84, 1.78]
2.05*** 
[1.50, 2.80]
1.34    
[0.93, 1.93]
1.68    
[0.89, 3.15]
vac_gen_6 0.92    
[0.70, 1.20]
0.97    
[0.72, 1.30]
0.97    
[0.75, 1.26]
1.08    
[0.80, 1.47]
0.99    
[0.61, 1.58]
covid_pro_1 1.04    
[0.64, 1.71]
1.07    
[0.61, 1.88]
1.05    
[0.62, 1.77]
0.50    
[0.25, 1.01]
1.09    
[0.45, 2.64]
covid_ag_1 0.96    
[0.72, 1.28]
1.64*   
[1.07, 2.51]
0.92    
[0.68, 1.25]
1.20    
[0.80, 1.81]
0.62*   
[0.39, 0.98]
covid_ag_2 1.31    
[0.85, 2.01]
0.99    
[0.62, 1.57]
1.23    
[0.81, 1.89]
1.03    
[0.64, 1.66]
0.40**  
[0.21, 0.76]
covid_pro_2 1.36    
[0.72, 2.54]
0.91    
[0.43, 1.94]
0.96    
[0.47, 1.93]
1.59    
[0.76, 3.30]
1.00    
[0.35, 2.90]
covid_over18 0.98    
[0.61, 1.57]
0.81    
[0.47, 1.40]
1.08    
[0.66, 1.75]
0.92    
[0.53, 1.61]
1.13    
[0.51, 2.50]
covid_pregnant 1.23    
[0.82, 1.83]
1.36    
[0.86, 2.16]
0.84    
[0.53, 1.33]
0.95    
[0.54, 1.67]
1.68    
[0.85, 3.31]
covid_children 1.09    
[0.59, 2.01]
0.99    
[0.48, 2.07]
1.08    
[0.55, 2.11]
1.47    
[0.67, 3.20]
1.84    
[0.67, 5.01]
covid_oblig_1 1.54*   
[1.03, 2.31]
1.68*   
[1.08, 2.61]
1.15    
[0.75, 1.76]
1.98**  
[1.26, 3.13]
3.14*** 
[1.64, 6.02]
covid_oblig_2 0.86    
[0.64, 1.17]
0.93    
[0.66, 1.30]
1.12    
[0.84, 1.49]
1.03    
[0.73, 1.46]
0.73    
[0.44, 1.23]
covid_leaders 1.11    
[0.64, 1.95]
1.65    
[0.88, 3.09]
1.61    
[0.90, 2.88]
0.66    
[0.34, 1.30]
1.91    
[0.80, 4.60]
covid_earlyaccess 0.60    
[0.30, 1.20]
0.91    
[0.43, 1.90]
0.80    
[0.40, 1.61]
1.03    
[0.47, 2.22]
0.48    
[0.17, 1.37]

5 Closing note

This page preserves selected exploratory analyses and intermediate model-building decisions from the development of the collaborative manuscript. It should not be used as a substitute for the final methods, diagnostics, results, or interpretation reported in the published article and its supplementary materials.

6 References

Preacher, K. J., & MacCallum, R. C. (2003). Repairing Tom Swift’s electric factor analysis machine. Understanding Statistics, 2(1), 13–43. https://doi.org/10.1207/S15328031US0201_02