WorksComputer Science
Religious expression and well-being across countries and regions: Evidence from a decade of social media posts
Abstract
This study examines whether social connectedness constitutes a pathway between religious expression and subsequent well-being. Drawing on millions of social-media posts, we combine broad international coverage, subnational geographic detail, and annual observations over 2013-2022 to examine religious expression, connectedness, and three well-being dimensions. The longitudinal models account for baseline connectedness and well-being, geographic and year effects, and national trends. National longitudinal models support positive indirect associations through social connectedness for happiness and life satisfaction. The indirect estimates for purpose nationally and for all three outcomes regionally are positive but imprecise. Complementary coefficient contrasts in contemporaneous regional models and comparisons of regional period averages show stronger associations of religious expression with purpose than with either happiness or life satisfaction. Together, these findings support a national pathway through social connectedness for the affective and evaluative dimensions of well-being. The stronger regional associations with purpose motivate further investigation of meaning- and direction-related processes beyond the measured connectedness pathway.
Introduction
Religious life connects beliefs and sources of meaning with social relationships, shared practices, and belonging. Its relationship with well-being may therefore operate through different resources rather than through a single, uniform association. Religious-service attendance and congregational friendships have been linked to life satisfaction [10], while social support, respect, and meaning have been identified as intermediaries between religiosity and well-being [4]. These relationships also depend on social context: national norms concerning religiosity shape the strength of individual-level associations [23]. Together, these findings point to social resources as one possible pathway linking religious life and well-being, while also cautioning against treating religion as a uniform predictor.
The economic literature reinforces the value of examining social and meaning-related resources alongside material conditions. Campante and Yanagizawa-Drott [2] link longer Ramadan fasting to greater subjective well-being among Muslims despite lower output growth in Muslim countries. Becchetti (2025) examines relational and meaning-related channels in European survey data. At the same time, Prati (2024) reports very small or negligible associations for several religious predictors in large survey analyses. Taken together, these studies motivate approaches that identify specific pathways between religious dimensions and well-being outcomes and report the magnitude and uncertainty of the estimated relationships.
Much of this evidence concerns individuals, religious participation, or relationships within congregations. A related question is whether religious expression is associated with subsequent well-being through broader social connectedness at the territorial level. Public expression on social media makes it possible to examine this question across places and periods. Ritter et al. [19] connect differences in emotional language between Christian and atheist Twitter users partly to language concerning social relationships. Geographic language measures extend such comparisons across places and periods, although their interpretation depends on how indicators are constructed and validated [9]. Large volumes of text do not eliminate selection into platform use, public expression, or geographic identification. The resulting indicators describe expressions among the observed posting population rather than representative population averages. Their value for the present study lies in allowing the same constructs to be examined repeatedly over time and across geographies, while recognizing the associated selection and measurement limitations.
We use the Human Flourishing Geographic Index (HFGI) framework, which identifies online expressions across dimensions of flourishing (Lacus et al., 2026), to construct country and first-level regional indicators covering 2013–2022. The religious-expression index summarizes expressions about religious beliefs and comfort. The connectedness index combines societal belonging, reversed loneliness, trust in others, and feeling trusted. It concerns the wider social environment rather than relationships specifically formed within religious congregations. The underlying scores reflect both how often each dimension is expressed and the valence of those expressions, rather than population-average well-being. Accordingly, the analysis concerns territorial patterns in online expression, not individual-level effects or representative population averages.
Our primary question is whether social connectedness constitutes a time-ordered indirect statistical pathway between religious expression and later well-being. We distinguish three outcomes: happiness, an affect-oriented outcome; life satisfaction, which concerns the evaluation of one’s life; and purpose, which concerns direction and aims. These outcomes reflect the broader distinction among affective, evaluative, and eudaimonic dimensions of well-being [11, 13]. Social relationships may be relevant to all three outcomes, while religious frameworks of meaning motivate a potentially stronger association with purpose. In our specification, purpose — like happiness and life satisfaction — is an outcome, and connectedness is the proposed statistical intermediary. This specification complements, but is distinct from, research that places meaning itself between religiousness and well-being [24].
The analysis begins with contemporaneous national associations (H1) and then examines the connectedness pathway (H2). The longitudinal model relates religious expression in a baseline year to connectedness one year later and well-being two years later, conditional on baseline connectedness and all three outcomes, fixed effects, and national trends. We extend these questions to regions (H1-Reg and H2-Reg) and assess the sensitivity of contemporaneous regional associations to country-by-year effects. A comparison of regional period averages examines whether regions with more positive average religious expression also have higher average expressed well-being than other regions in the same country (H3). This sequence distinguishes annual variation within places from differences between regional averages. Direct contrasts test whether the association with purpose exceeds those with the other outcomes (H4).
The national results support positive indirect associations through connectedness for happiness and life satisfaction; the indirect association for purpose and all total lagged associations remain imprecise. The regional lagged pathway estimates are also imprecise. Positive contemporaneous associations appear for all outcomes at both scales, and the regional findings remain under country-by-year controls. Associations between regional averages are positive as well. The direct contrasts support a stronger regional association with purpose than with either other outcome; nationally, the estimated contrast with life satisfaction remains imprecise.
This study extends research on religion and well-being to repeated territorial patterns of online expression. It combines international and subnational observations over a decade to distinguish time-ordered associations from persistent geographic differences, examine social connectedness as a possible statistical pathway, and compare associations across affective, evaluative, and purpose-related dimensions of well-being. The findings suggest that connectedness may contribute to the territorial relationship between religious expression and later happiness and life satisfaction. The stronger association with purpose points to a distinct pattern, while the imprecise indirect estimate leaves open whether other meaning- or direction-related processes account for it.
The remainder of the paper is structured as follows. Section 2 reviews the related literature. Section 3 describes the data and measures, develops the hypotheses and presents the empirical strategy. Section 4 reports the results. Section 5 addresses the limitations, and Section 6 discusses the findings and presents the conclusions.
Literature review
Religiousness and the magnitude of well being associations
Religiousness encompasses affiliation, belief, subjective importance and participation. These dimensions need not have the same relationship with well-being. Diener et al. [4] find that the association is generally small after accounting for life circumstances and varies with societal conditions and religiosity. Social support, respect and meaning help account for the observed relationship. Their findings place context and intermediate resources at the centre of the explanation. They also show why country differences in average religiousness cannot be read straightforwardly as evidence about the benefits of individual religiousness.
Recent evidence strengthens the case for distinguishing statistical detectability from substantive importance. Prati (2024), using international surveys and longitudinal studies, reports very small or negligible associations for several religious predictors. This challenges an interpretation based mainly on whether coefficients cross a significance threshold. It does not imply that every religious dimension is irrelevant in every context, or that territorial expression must exhibit the same effect sizes as individual reports. For the present study, it motivates reporting magnitudes and uncertainty separately and investigating specific social pathways without presuming that they must produce large overall associations.
Social relationships and communal resources
The social explanation receives direct support from Lim and Putnam [10]. Using a two-wave US panel, they show that close friendships within congregations account for much of the association between religious attendance and life satisfaction. Religious identity conditions this relationship: congregational friendships are especially relevant when religion is important to the individual’s sense of self. The result connects the structure of social relationships to the meanings attached to them. It does not establish that any increase in contact, irrespective of identity or context, provides an equivalent resource.
The economic literature interprets shared experiences and relationships through the concept of relational goods. Becchetti (2025) studies several possible channels connecting religiousness and life satisfaction, including relational interaction and life meaning, and examines regional contextual associations. His repeated survey waves permit comparisons across periods, even if they do not follow the same respondents over time. In a pandemic setting, Ruberto et al. [21] consider social and family relationships, spirituality, religiosity, and trust in institutions together. Their findings motivate distinguishing religious and spiritual dimensions and institutional trust from interpersonal connectedness.
A related literature considers whether resources buffer hardship. Walsh [26] finds that social meetings, religiousness and political trust are associated with life satisfaction and can moderate financial hardship for some groups. This is a moderation question: the association between hardship and well-being varies with available resources. Our mediation question concerns whether religious expression is associated with later connectedness and whether connectedness is associated with subsequent well-being. The distinction matters because evidence for buffering does not, by itself, identify an indirect path from religious expression to well-being.
We retain the social insight of these studies while broadening its empirical referent. Societal belonging, loneliness and trust can capture relationships beyond religious organizations. They may reflect community resources available to religious and nonreligious residents alike. However, our index cannot establish whether connections originate in religious participation, whether they connect people across religious boundaries, or whether shared religious identity strengthens their value. The proposed mediator is therefore broad social connectedness rather than observed congregational integration.
Meaning purpose and affective experience
The existential explanation concerns the interpretive resources provided by religion. Steger and Frazier [24] find that meaning in life statistically mediates associations between religiousness and well-being in student surveys and daily diaries. This supports attention to meaning as a distinct construct. It differs from our specification, in which purpose is an outcome and connectedness is the proposed mediator. A study that places meaning between religion and life satisfaction cannot be treated as having tested a pathway from religion through connectedness to purpose.
Martela and Steger [11] distinguish coherence, purpose and significance within meaning in life. Purpose concerns direction and aims; coherence concerns comprehensibility; significance concerns the perceived value of one’s existence. This distinction limits the interpretation of the HFGI purpose indicator. It represents a component of eudaimonic well-being rather than a complete measure of meaning or flourishing. The OECD [13] framework similarly distinguishes life evaluation, affect and eudaimonia. Comparing the three outcomes can reveal whether religious expression has a similar association with feeling happy, evaluating life favourably and experiencing direction.
Other pathways also remain plausible. Van Cappellen et al. [25] identify a role for self-transcendent positive emotions in the relationship between religion or spirituality and well-being. Consequently, an association remaining after adjustment for connectedness cannot be assigned uniquely to existential meaning. Conversely, an imprecise connectedness-mediated path for purpose does not establish that social relationships are unimportant for purpose. Our comparisons distinguish estimated associations and their precision while leaving unmeasured emotional and existential processes open.
Cultural context and responses to adversity
Community resources operate within wider cultural environments. Stavrova et al. [23] show that the association between religiousness and well-being is stronger where religiousness is socially normative; social recognition partly accounts for this pattern. This mechanism differs from simply having more friends or receiving support. It concerns how identities are valued. Together with Diener et al. [4], the study cautions against assuming that a religious expression has the same social implications across societies. Our fixed effects account for stable contextual differences, even if they do not test whether religious norms moderate the expression–well-being association.
Longitudinal research also suggests that the relationship can depend on adversity and the religious dimension measured. Chen et al. [3] examine religious-service attendance – i.e., a specific aspect of religiosity – and subsequent health and well-being outcomes across three prospective cohorts. Iyer et al. [8] find that pre-pandemic religious belonging and the personal relevance of religion are associated with better coping during UK lockdowns, while greater religious intensity does not confer a uniform additional advantage. These studies support attention to temporal ordering and baseline conditions. They do not imply that the same relationships will appear in aggregate online expression or that findings about psychological distress transfer directly to positive well-being.
Campante and Yanagizawa-Drott [2] provide a different economic perspective by exploiting variation in Ramadan fasting duration. Their findings connect more demanding practice to greater subjective well-being despite economic costs. This evidence illustrates why welfare cannot be inferred from material outcomes alone and why participation may have value within a community. Its focus on religious practice complements our analysis of territorial religious expression and motivates attention to social and existential resources.
Online expression and geographic well being
Ritter et al. [19] provide an early direct antecedent for studying religion and happiness on Twitter. Their comparison of Christian and atheist users links differences in emotional language partly to language concerning social relationships and thinking style. Religious identity is inferred through a specific user-selection strategy, and happiness is assessed through expression. The study establishes that a social pathway in online religious differences is already part of the literature. Our question extends this approach to repeated territorial indicators and to life satisfaction and purpose alongside happiness.
Geographic language models require a separate measurement argument. Jaidka et al. [9] demonstrate that dictionary-based and data-driven methods can produce markedly different geographic well-being estimates when compared with surveys. Large volumes of text do not remove cultural variation in language or sampling bias. We therefore interpret our indicators as measured expressions in the observed posting population. Their correspondence with representative population experience, and their comparability across places and periods, require validation.
The HFGI framework supplies a set of indicators designed to represent expressions relevant to flourishing. The published data descriptor concerns US counties (Iacus et al., [7]). Applying this framework internationally raises further questions about coverage and comparability: using the same labels across languages does not establish measurement equivalence. The common platform and modelling pipeline may also induce shared measurement variation across religious expression, connectedness and well-being. These possibilities remain alternative explanations alongside substantive relationships.
Temporal scale and the interpretation of mediation
Temporal and geographic comparisons answer different questions. A region that has persistently high religious expression may differ from neighbouring regions in institutions, composition or economic conditions. Hamaker et al. [6] demonstrate the consequences of conflating stable differences between units with processes within units in longitudinal models. Their argument motivates separating our annual analyses from comparisons of regional means.
Mediation analysis further separates total, direct and indirect associations. A statistically detectable indirect path does not require a statistically significant total association [27]. Introducing connectedness can therefore clarify how an imprecisely estimated total association is decomposed. The size and precision of the total association remain separate empirical questions. Likewise, evidence for an indirect path in one outcome and an interval including zero in another is insufficient to demonstrate a difference between the paths. Such comparisons require a direct contrast that accounts for their dependence.
These considerations define the scope of the present analysis. We examine whether a time-ordered connectedness pathway is detectable at country and regional levels, compare the three well-being outcomes and separately describe persistent differences between regions within countries. Baseline adjustment, fixed effects and trends reduce some alternative explanations, but changing social conditions, platform composition, reverse relationships and measurement error can remain. The resulting decomposition is an exploratory account of territorial associations whose substantive interpretation depends on outcome, temporal design and geographic scale.
Data and methods
We use annual country and regional indicators from the Human Flourishing Geographic Index (HFGI), derived from geographically located Twitter posts. The HFGI framework identifies expressions relating to different dimensions of flourishing and summarizes their positive or negative valence. Its construction is described by Iacus et al. [7]. Our analyses use these aggregate indicators for 2013–2022. Regions correspond to first-level administrative divisions within countries, whose size and institutional role vary across national settings. The United States enters as one country, with the 50 states and the District of Columbia as regional units. Figure 1 shows the geographic coverage and the number of annual observations available for the contemporaneous association analyses.

Figure 1. Geographic coverage of the contemporaneous association samples, 2013–2022. Panels A and B show the national and regional samples, respectively. Colours indicate the number of eligible annual observations for each geographic unit; grey areas are outside the corresponding sample. The longitudinal and regional period-average analyses apply additional inclusion criteria and use different samples, as detailed in Supplementary Section S1.
The measures describe how people express experiences and beliefs in online posts. For each dimension, we sum the scores assigned to posts in which it is expressed and divide by the total number of posts in the geographic unit and year. Each indicator therefore combines the share of posts expressing that dimension with the average valence of those expressions. Religious expression in this study refers to this combined measure, rather than to the proportion of residents who are religious. Similarly, the well-being indicators describe expressed experiences rather than population averages obtained through a representative survey.
We examine three well-being outcomes: happiness (happiness), life satisfaction (lifesat), and purpose in life (purpose). These distinguish expressions of feeling happy, evaluating one’s life, and experiencing direction or aims. The religious-expression index combines four dimensions: belief in an afterlife (afterlife), belief in God (believegod), feeling loved by God (lovedgod), and comfort derived from religion (relcomfort). Together, they capture expressions concerning religious beliefs and the personal reassurance associated with them.
Social connectedness combines belonging (belonging), loneliness (loneliness), trust in others (trust), and feeling trusted by others (trusted). Loneliness is reversed so that higher
values consistently indicate greater connectedness. Belonging refers to society broadly, rather than membership of a religious congregation [7]. This index allows us to examine whether religious expression is associated with subsequent expressions of social connection and whether these, in turn, are associated with later well-being. The indices and outcomes are standardized for analysis; the details are provided in Supplementary Section S1. The implications of selection into online expression and of measurement comparability are discussed in Section 5.
By applying different models, we examine whether positive religious expression is associated with higher well-being and whether social connectedness provides an indirect pathway linking religious expression to subsequent well-being. Our analysis begins at the country level and then extends to regions within countries. The extended regional analysis allows us to examine whether regions with more positive average religious expression exhibit higher average expressed well-being than other regions within the same country. Because religious beliefs can provide a sense of meaning and direction, we further test whether religious expression is more strongly associated with purpose than with happiness and life satisfaction.
The following sections formulate these hypotheses and present the models used to assess them. A complementary analysis examines whether differences in average connectedness help account for the association between average religious expression and average well-being across regions within the same country. Unlike the regional longitudinal analysis, this comparison uses regional averages over 2013–2022.
Do religious expression and well-being vary together within countries?
Our first hypothesis concerns whether religious expression and well-being vary together over time within countries:
H1: More positive religious expression is associated with higher expressed happiness, life satisfaction, and purpose within countries.
To assess this hypothesis, we estimate contemporaneous associations while accounting for stable national characteristics, common annual changes, and country-specific trends. The sample contains 602 country-years in 61 countries over 2013–2022; each observation represents one country in one year. Let index countries, years, and the well-being outcome, with . We denote the religious-expression index by and outcome by . In the model below, is a country fixed effect, accounting for stable differences between countries; is a year fixed effect, accounting for changes shared across countries; and is the coefficient of a country-specific linear time trend. The coefficient of interest, , measures the association between religious expression and outcome after these adjustments, and is the unexplained component of that outcome:
In these association models, fixed effects and trend coefficients are estimated separately for each outcome; their outcome index is omitted for readability. We give each observation equal weight and standardize the predictor and outcome within the estimation sample. Standard errors are clustered by country, allowing observations from the same country to be statistically dependent. Positive estimates of support H1 for the corresponding outcome; we report their magnitudes and 95% confidence intervals (CIs). Each coefficient describes the association between within-country annual deviations in religious expression and outcome , after adjustment for country and year effects and country-specific linear trends. These adjustments also absorb time-invariant differences in religious affiliation (Supplementary Section S1.7).
Does social connectedness link religious expression to subsequent well-being within countries?
The central question is whether social connectedness helps account for a relationship between religious expression and subsequent well-being:
H2: Religious expression has a positive indirect association with subsequent happiness, life satisfaction, and purpose through social connectedness at country level.
We assess this hypothesis using a longitudinal structural equation model (SEM), which estimates the connectedness and well-being equations jointly. The sample comprises 468 country-years in 61 countries, each linking a baseline year to observations one and two years later within 2013–2022. The smaller sample reflects the need for complete measures across three consecutive years. Inclusion criteria for all models are detailed in Supplementary Section S1.
Denoting the connectedness index by , the proposed sequence is : religious expression in year , connectedness one year later, and well-being two years later. We also estimate a religion–outcome path conditional on connectedness. Figure 2 illustrates these relationships and additional contextual influences. The coefficient links religious expression to subsequent connectedness, links connectedness to subsequent outcome , and represents the remaining religion–outcome association.
Figure 2. Proposed annual pathway at country and regional scales. Fixed effects and trends are omitted from the drawing for clarity.
To focus on variation within countries, we first regress each modeled variable on country and year fixed effects and country-specific linear trends, using weights that give each country equal total weight. We then use the residuals in the SEM. These residuals represent the variation remaining after accounting for the specified effects and trends, and are denoted by tildes. We use to identify the geographic unit: a country here and a region in the subsequent regional analysis. The vector contains connectedness and all three well-being outcomes measured in the baseline year . Including these measures allows us to examine subsequent associations while accounting for initial connectedness and well-being. The vectors and contain the coefficients of these baseline measures in the connectedness and outcome equations, respectively. The superscript denotes transposition, so that each product with sums the baseline measures multiplied by their coefficients. Finally, and denote the unexplained components of the two equations:
Countries receive equal total weight in the lagged sample. We estimate the equations with robust maximum likelihood with standard errors clustered by country [20]. The residuals of the three outcome equations may covary, allowing unexplained variation in the well-being outcomes to be associated. The model uses the observed indices described above rather than estimating latent factors.
The indirect association relevant to H2 is the product . The total modeled association is , combining the conditional religion–outcome coefficient and the indirect component. We report both components and the total, with their uncertainty. The total refers to the lagged sample and is distinct from the same-year coefficient used to assess H1. An indirect association can be estimated even when the total association is imprecise [27]. We estimate an explicit mean structure with the four endogenous intercepts fixed at zero after within-country centering. The 95% confidence intervals use robust standard errors and a normal approximation, with the delta method for indirect and total associations.
Do religious expression and well-being vary together within regions?
National averages can conceal substantial differences between regions within the same country. Regional analysis allows us to examine whether the relationships observed nationally also appear in changes within smaller geographic units. It also allows us to account for annual changes shared across regions of the same country through country-by-year effects. The regional extension therefore examines both the geographic scope of the findings and their sensitivity to shared national changes. We first consider contemporaneous associations:
H1-Reg: More positive religious expression is associated with higher expressed happiness, life satisfaction, and purpose within regions.
This extends H1 to a finer geographic scale. The sample contains 8,350 region-years in 1,004 regions and 60 countries over 2013–2022. Let index regions and identify the country containing region . Replacing the country fixed effect with a region fixed effect, , gives:
The outcome and religious-expression index now refer to region in year . The region fixed effects account for persistent differences between regions, while accounts for common annual changes. The coefficient represents the linear time trend for the country containing region . It has the same interpretation as in (1), but is estimated separately in the regional model and need not have the same value. The coefficient measures the association between religious expression and outcome within regions, conditional on these effects and trends. Coefficients are estimated separately in each model; reusing does not constrain the national and regional associations to be equal.
To assess whether the regional association persists under a more flexible adjustment for national changes, we replace common year effects and national linear trends with country-by-year fixed effects. Each effect, , accounts for changes shared by the observed regions of one country in a particular year. We denote the resulting religious-expression coefficient by , where CY indicates this country-by-year adjustment:
This comparison uses the same 8,350 observations, weights, and standardization as the preceding regional model, so changes in the coefficients reflect the specification rather than changes in the sample. Standard errors remain clustered by country, using the same small-sample adjustment. We also repeat the outcome comparisons described below under this specification.
Does the connectedness pathway emerge within regions?
The second regional analysis extends the country-level mediation analysis:
H2-Reg: Religious expression has a positive indirect association with subsequent happiness, life satisfaction, and purpose through social connectedness at regional level.
We use the same temporal ordering and baseline controls as for H2, applying Equations (2) and (3) with now denoting a region. The sample contains 5,122 region-years in 847 regions and 60 countries, with each baseline observation linked to the next two years within 2013–2022.
Before estimating the equations, we remove region and year fixed effects and country-specific linear trends from each variable. Countries receive equal total weight across their regional observations, and standard errors are clustered by country. We report the indirect products, conditional religion–outcome coefficients, and total associations using the same definitions as in the national SEM. This extension examines whether the proposed pathway is also detectable at regional scale. Differences in statistical significance across scales do not themselves establish that the national and regional coefficients differ.
Do regions with more positive average religious expression express higher average well-being?
Annual models examine whether changes in religious expression within a region accompany changes in well-being. They do not establish whether regions with higher average religious expression also have higher average well-being. To address this complementary question, we compare regional averages over 2013–2022 within each country. Averaging over the period reduces the influence of short-term fluctuations and allows us to examine whether the positive association also characterizes longer-term differences between regions:
H3: Regions with more positive average religious expression also exhibit higher average expressed happiness, life satisfaction, and purpose than other regions within the same country.
To assess H3, we relate regional averages of each well-being outcome to average religious expression, accounting for country differences. We require at least eight complete annual observations per region and at least two eligible regions per country. This yields 733 regions in 43 countries. Each year receives equal weight in the period mean; details of index construction are in Supplementary Section S1.
For region in country , bars denote period averages and is a country fixed effect. The coefficient now describes the association between regional averages of religious expression and outcome , while is the unexplained component:
We give each country equal total weight and cluster standard errors by country. The country fixed-effect terms ensure that the comparison is between regions within the same country. The estimates of and their confidence intervals assess the direction, magnitude, and precision of the associations proposed in H3. As a complementary analysis, we examine how connectedness contributes to these associations. We remove country means using the same weights, with tildes denoting the remaining differences. The static observed-variable SEM is:
The coefficients , , and have the same decomposition roles as in the longitudinal model, but here all measures summarize the same period and coefficients are estimated separately. The terms and are the equation residuals, and the outcome residuals may covary. As in the longitudinal SEMs, the intercepts in the connectedness equation and the three well-being equations are fixed at zero, because removing country means has already centered each variable. The indirect product is , and the total association is . The total association has the same point estimate as the coefficient in Equation (6). The regression estimates this association directly, whereas the SEM decomposes it into a coefficient conditional on connectedness and an indirect component through connectedness. The confidence intervals may differ: the regression uses the standard error of , while the SEM uses the delta method to calculate uncertainty for the sum . This decomposition describes associations among regional averages and complements the test of H3; it does not repeat the temporal tests of H2 and H2-Reg.
Is religious expression more strongly associated with purpose than with happiness and life satisfaction?
The account of religion as a source of meaning and direction discussed above motivates a further expectation: its association with purpose may be stronger than its associations with feeling happy or evaluating life favourably. We assess this expectation by directly comparing the associations across outcomes:
H4: Religious expression is more strongly associated with expressed purpose than with either expressed happiness or expressed life satisfaction.
To assess H4, we compare the purpose coefficient with each of the other two outcome coefficients separately in the national annual, regional annual, and regional period-average models. For each comparison, we regress the difference between the two standardized outcomes on religious expression, using a common sample and the same controls and weights as the corresponding association model. A positive coefficient for purpose minus another outcome indicates a larger purpose association. These comparisons test whether the religious-expression coefficient is larger for purpose than for happiness or life satisfaction in the association models (Equations (1), (4), and (6)). They do not test differences between the indirect associations through social connectedness estimated by the SEMs. These six exploratory comparisons use country-clustered 95% confidence intervals without adjustment for multiple testing.
Figure 3 summarizes the estimation strategy. We first examine national associations and the connectedness pathway, then extend these questions to regions. The country-by-year specification checks whether the contemporaneous regional associations persist after accounting for annual changes shared within countries. We subsequently compare regional period averages. Finally, we test whether the religious-expression association is stronger for purpose than for happiness and life satisfaction. These final contrasts compare coefficients from the association models, not indirect SEM paths. Each model uses the observations meeting its own inclusion criteria.

Figure 3. Overview of the estimation strategy. Arrows indicate the order of presentation. All analyses use observations from 2013–2022. The models are estimated separately, with sample sizes determined by their respective inclusion criteria.
Results
This section follows the estimation strategy described in § 3 and summarized in Figure 3. We first present the national associations (H1) and the connectedness pathway (H2). We then examine their regional extensions (H1-Reg and H2-Reg), the sensitivity to country-by-year effects, and the comparison of regional period averages (H3). Finally, we report the direct contrasts between well-being outcomes (H4). Throughout, we report estimates and confidence intervals to describe the direction, magnitude, and precision of the associations.
National associations and connectedness pathways (H1 and H2)
To assess H1, we examine the coefficients in Equation (1), which relate religious expression to each well-being outcome after accounting for country and year effects and national trends. All three coefficients are positive, and their 95% confidence intervals exclude zero: 0.317 for happiness, 0.491 for life satisfaction, and 0.951 for purpose (Table 1). Thus, within-country deviations towards more positive religious expression are associated with higher expressed well-being in the same year. Purpose has the largest point estimate; whether its association is stronger is assessed through the direct contrasts for H4 in § 4.5.
| Geography | Outcome | Estimate [95% CI] | Place-years | Countries |
| Country | Happiness | +0.317 [0.115, 0.519] | 602 | 61 |
| Country | Life satisfaction | +0.491 [0.225, 0.757] | 602 | 61 |
| Country | Purpose in life | +0.951 [0.185, 1.717] | 602 | 61 |
| Region | Happiness | +0.158 [0.059, 0.257] | 8,350 | 60 |
| Region | Life satisfaction | +0.309 [0.182, 0.436] | 8,350 | 60 |
| Region | Purpose in life | +0.708 [0.454, 0.962] | 8,350 | 60 |
Table 1. Annual religious-expression associations, 2013–2022. Place and year fixed effects, country-specific linear trends, and country-clustered uncertainty. Predictors and outcomes are standardized within their estimation samples; observations have equal weight.
For H2, the quantity of interest is the indirect product , combining the religion-to-connectedness coefficient in Equation (2) with the connectedness-to-outcome coefficient in Equation (3). The estimate [0.078, 0.395] indicates that more positive religious expression is associated with higher connectedness one year later, conditional on baseline connectedness and well-being and the specified effects and trends. The coefficients are also positive, with intervals excluding zero for all three outcomes: connectedness is associated with well-being in the following year, conditional on religious expression and the baseline measures (Table 2).
| Path | Happiness | Life satisfaction | Purpose in life |
| +0.237 [0.078, 0.395] | +0.237 [0.078, 0.395] | +0.237 [0.078, 0.395] | |
| +0.255 [0.146, 0.363] | +0.326 [0.142, 0.510] | +0.673 [0.038, 1.308] | |
| −0.000 [−0.129, 0.129] | −0.005 [−0.141, 0.131] | −0.139 [−0.311, 0.032] | |
| +0.060 [0.011, 0.109] | +0.077 [0.004, 0.150] | +0.159 [−0.048, 0.366] | |
| +0.060 [−0.077, 0.197] | +0.072 [−0.073, 0.218] | +0.020 [−0.193, 0.233] |
Table 2. Country longitudinal SEM, 2013–2022.
The indirect products are 0.060 [0.011, 0.109] for happiness, 0.077 [0.004, 0.150] for life satisfaction, and 0.159 [−0.048, 0.366] for purpose. The first two intervals support a positive statistical pathway through connectedness. The purpose estimate is larger but less precise, and its interval includes zero. The intervals for the conditional religion–outcome coefficients and the total associations also include zero for all three outcomes. The positive indirect components therefore coexist with uncertain total lagged associations; these totals are distinct from the contemporaneous associations used to assess H1.
The national longitudinal SEM and both regional observed-variable SEMs converged to admissible solutions with positive-definite country-clustered parameter covariance matrices.
The national results support H1 for all three outcomes and partially support H2: the connectedness pathway is supported for happiness and life satisfaction, while the indirect estimate for purpose is imprecise.
468 place-years in 61 units and 61 countries. Religion at , connectedness at , and outcomes at ; baseline connectedness and all three outcomes controlled. Place/year effects and country trends removed; equal country weight and country-clustered uncertainty. Cells show estimates and 95% intervals. is common to all outcomes; . Endogenous intercepts are fixed at zero after residualization. Intervals use country-clustered robust standard errors and the delta method for derived paths.
Regional associations and connectedness pathways (H1-Reg and H2-Reg)
To assess H1-Reg, we examine in Equation (4), which describes the association within regions after adjustment for region and year effects and national trends. The coefficients are 0.158 for happiness, 0.309 for life satisfaction, and 0.708 for purpose, with all intervals above zero (Table 1). More positive religious expression is therefore associated with higher expressed well-being in the same year within regions, as well as within countries.
For H2-Reg, we examine the indirect products from Equations (2) and (3), now estimated for regions. The religion-to-connectedness coefficient is 0.052 [−0.121, 0.224], and the connectedness-to-outcome coefficients also have intervals including zero. The indirect products are 0.008 [−0.020, 0.036] for happiness, 0.010 [−0.025, 0.045] for life satisfaction, and 0.017 [−0.041, 0.075] for purpose (Table 3). Although their point estimates are positive, the intervals do not establish a positive lagged pathway for any outcome. The conditional religion–outcome and total-association intervals likewise include zero.
| Path | Happiness | Life satisfaction | Purpose in life |
| +0.052 [−0.121, 0.224] | +0.052 [−0.121, 0.224] | +0.052 [−0.121, 0.224] | |
| +0.158 [−0.027, 0.344] | +0.190 [−0.048, 0.427] | +0.326 [−0.058, 0.710] | |
| +0.040 [−0.131, 0.212] | +0.094 [−0.156, 0.344] | +0.108 [−0.217, 0.432] | |
| +0.008 [−0.020, 0.036] | +0.010 [−0.025, 0.045] | +0.017 [−0.041, 0.075] | |
| +0.049 [−0.145, 0.243] | +0.104 [−0.177, 0.385] | +0.124 [−0.251, 0.500] |
Table 3. Regional longitudinal SEM, 2013–2022.
The regional results support H1-Reg for all three outcomes, but the indirect estimates are too imprecise to support H2-Reg. Positive contemporaneous associations therefore coexist with uncertain lagged relationships within regions. An additional latent regional SEM did not yield interpretable path estimates and provides no further evidence for this hypothesis (Supplementary Section S3).
Sensitivity of regional associations to country-by-year effects (H1-Reg)
We examine the sensitivity of H1-Reg by comparing in Equation (5) with in Equation (4). Both models use the same 8,350 region-years from 1,004 regions in 60 countries, with identical weights and standardization. After adjustment for country-by-year effects, the coefficients decrease from 0.158 to 0.129 for happiness, from 0.309 to 0.275 for life satisfaction, and from 0.708 to 0.695 for purpose. All three confidence intervals remain above zero (Table 4).
| Outcome | Country linear trends | Country-by-year effects |
| Happiness | +0.158 [0.059, 0.257] | +0.129 [0.053, 0.205] |
| Life satisfaction | +0.309 [0.182, 0.436] | +0.275 [0.178, 0.372] |
| Purpose in life | +0.708 [0.454, 0.962] | +0.695 [0.466, 0.924] |
Table 4. Regional annual associations under alternative controls for national changes, 2013–2022.
The positive associations thus remain after accounting for annual changes shared across regions within each country, supporting H1-Reg under this more flexible specification. Excluding countries with no identifying variation leaves the estimates unchanged and has negligible effects on their confidence intervals (Supplementary § 10.6).
5,122 place-years in 847 units and 60 countries. Religion at , connectedness at , and outcomes at ; baseline connectedness and all three outcomes controlled. Place/year effects and country trends removed; equal country weight and country-clustered uncertainty. Cells show estimates and 95% intervals. is common to all outcomes; . Endogenous intercepts are fixed at zero after residualization. Intervals use country-clustered robust standard errors and the delta method for derived paths.
Cells show standardized coefficients and 95% country-clustered confidence intervals. The first column reproduces the regional estimates from Table 1. Both specifications use the same 8,350 region-year observations from 1,004 regions in 60 countries, with identical standardization and equal observation weights. Both include region fixed effects. The first specification includes common year effects and country-specific linear trends; the second replaces these with country-by-year fixed effects.
Associations between regional averages (H3)
To assess H3, we examine in Equation (6). This coefficient compares regional averages within countries, rather than annual deviations within regions. Across 733 regions in 43 countries, the coefficients are 0.357 for happiness, 0.603 for life satisfaction, and 0.889 for purpose, with all confidence intervals above zero (Table 5). Regions with more positive average religious expression over 2013–2022 also express higher average well-being than other regions in the same country.
| Period | Outcome | Estimate [95% CI] | Regions | Countries |
| 2013–2022 | Happiness | +0.357 [0.098, 0.617] | 733 | 43 |
| 2013–2022 | Life satisfaction | +0.603 [0.345, 0.862] | 733 | 43 |
| 2013–2022 | Purpose in life | +0.889 [0.581, 1.197] | 733 | 43 |
Table 5. Religious expression and regional mean well-being within countries.
Country fixed effects, equal total weight per country, and country-clustered uncertainty. At least eight complete annual observations per region during 2013–2022; observed years receive equal weight in each regional mean.
The complementary static SEM in Equations (7) and (8) examines how connectedness contributes to these associations. Average religious expression is positively associated with average connectedness, [0.230, 0.701]. Connectedness is positively associated with each outcome conditional on religion, yielding indirect products of 0.438 for happiness, 0.380 for life satisfaction, and 0.284 for purpose; all three intervals exclude zero (Table 6). These products describe associations among averages for the same period.
| Path | Happiness | Life satisfaction | Purpose in life |
| +0.466 [0.230, 0.701] | +0.466 [0.230, 0.701] | +0.466 [0.230, 0.701] | |
| +0.941 [0.858, 1.024] | +0.816 [0.711, 0.921] | +0.609 [0.339, 0.879] | |
| −0.081 [−0.145, −0.017] | +0.223 [0.138, 0.309] | +0.606 [0.468, 0.743] | |
| +0.438 [0.214, 0.662] | +0.380 [0.180, 0.580] | +0.284 [0.052, 0.515] | |
| +0.357 [0.105, 0.609] | +0.603 [0.353, 0.854] | +0.889 [0.590, 1.188] |
Table 6. Static regional SEM, 2013–2022.
733 regions in 43 countries. Country effects removed; equal country weight and country-clustered uncertainty. All measures summarize the same period, without established time ordering. Cells show estimates and 95% intervals. is common to all outcomes; . Endogenous intercepts are fixed at zero after residualization. Intervals use country-clustered robust standard errors and the delta method for derived paths.
The conditional religion–outcome coefficients in Equation (8) show different patterns across outcomes. For purpose, the coefficient remains positive at 0.606 [0.468, 0.743], accounting for most of the total association of 0.889. For happiness, the conditional coefficient is negative, −0.081 [−0.145, −0.017], alongside a positive indirect product of 0.438 and a positive total association of 0.357. Thus, the positive overall relationship with happiness is concentrated in its association through connectedness, while much of the purpose association remains after connectedness is included.
The associations between regional averages support H3 for all three outcomes. The static SEM describes how these associations are decomposed; it does not test the temporal pathway proposed in H2 or H2-Reg.
Comparing associations across well-being outcomes (H4)
To assess H4, we compare the purpose coefficient with the happiness and life satisfaction coefficients in each association model: Equation (1) for countries, Equation (4) for regions, and Equation (6) for regional averages. A positive difference indicates a stronger association with purpose. These direct contrasts, estimated on common samples, assess differences between slopes rather than differences in their separate statistical significance.
At country level, the purpose–happiness difference is 0.634 [0.033, 1.235], while the purpose–life satisfaction difference is 0.460 [−0.071, 0.991] (Table 7). The national results therefore distinguish the purpose association from happiness but not clearly from life satisfaction. At regional level, both differences are positive with intervals excluding zero in the annual models and in the comparison of period averages. The stronger regional purpose association is therefore supported by direct comparisons in both designs.
| Design | Purpose minus happiness | Purpose minus life satisfaction |
| Country annual | +0.634 [0.033, 1.235] | +0.460 [−0.071, 0.991] |
| Region annual | +0.550 [0.352, 0.749] | +0.399 [0.234, 0.564] |
| Regional means | +0.532 [0.286, 0.778] | +0.286 [0.082, 0.490] |
Table 7. Direct comparisons of the standardized purpose slope with the other outcomes.
All models cover 2013–2022. Positive differences indicate a larger purpose slope. Common samples and the same controls as the corresponding association models; 95% country-clustered intervals. The six comparisons are exploratory and not adjusted for multiple testing.
Repeating the regional contrasts using from Equation (5) gives the same ordering. The purpose slope exceeds the happiness slope by 0.566 [0.392, 0.739] and the life satisfaction slope by 0.420 [0.263, 0.577]. The stronger purpose association thus remains after accounting for country-by-year effects. These comparisons concern association slopes, not indirect SEM paths.
Overall, H4 is partially supported: purpose has a stronger association than both other outcomes in the regional designs, while the national evidence supports only the comparison with happiness. The contrasts remain exploratory and are not adjusted for multiple testing.
Taken together, the results show positive contemporaneous associations at both geographic scales and positive associations between regional averages. Evidence for the lagged connectedness pathway is more selective, with support for national happiness and life satisfaction. Table 8 summarizes these findings by hypothesis; Supplementary § 11 presents the coefficient figures and estimated path diagrams.
| Hypothesis | Question | Support | Evidence |
| H1 | National contemporaneous associations | Yes | Positive associations for all three outcomes; all intervals exclude zero. |
| H2 | National connectedness pathway | Partial | Positive indirect associations for happiness and life satisfaction; the indirect estimate for purpose is imprecise. |
| H1-Reg | Regional contemporaneous associations | Yes | Positive associations for all three outcomes, also with country-by-year effects. |
| H2-Reg | Regional connectedness pathway | No | Imprecise indirect estimates: all confidence intervals include zero. |
| H3 | Associations between regional averages | Yes | Positive associations for all three outcomes within countries. |
| H4 | Stronger association with purpose | Partial | Both contrasts are positive in the regional designs. Nationally, purpose exceeds happiness; the estimated contrast with life satisfaction is imprecise. |
Table 8. Summary of evidence for the hypotheses.
Support summarizes the direction of the estimates and their reported 95% confidence intervals within the specified models. “No” means that the predicted association is not established by these estimates, not that its absence is demonstrated. Partial support indicates support for some outcomes or comparisons. Assessments of H2 and H2-Reg concern indirect associations, not total associations or differences between indirect paths. The six H4 contrasts are exploratory and unadjusted for multiple testing.
Limitations
The interpretation of these results follows from the type of observation that HFGI provides. The scores used here summarize public expressions relative to all observed posts in each geographic unit and year, combining the prevalence and valence of expression. The models do not separate associations attributable to these two components. They do not directly measure the prevalence of religious belief or the average well-being of residents ([7]). Survey responses and online posts also arise through different processes: surveys elicit answers to specified questions, while posting depends on what people choose to communicate and to whom. Surveys can be affected by nonresponse, recall, question wording, and social desirability; online expression is shaped by audiences, self-presentation, and the salience of events. Agreement between the sources can be informative without implying that they measure identical quantities, and disagreement does not necessarily establish by itself that either source is invalid ([13]).
Selection occurs at several stages, from access to and use of the platform to public posting and the availability of geographic information ([14]). Geolocated users can differ even from other users of the same platform ([22]). Consequently, the observed stream need not reproduce the demographic or geographic composition of the population.
Selection continues within the observed stream because people differ in whether they discuss religion, social relationships, or their well-being, and in whether they express those experiences positively or negatively. A change in an indicator can therefore reflect a change in experience, a change in willingness to express it, or a change in the composition of those posting. Religious norms, perceived stigma, and public events may affect these processes differently across places. An increase in a religious-expression score can reflect changes in how often religious dimensions are expressed, in the valence of those expressions, or both; it cannot be read as an increase in the proportion of religious residents.
Geographic and temporal aggregation introduce further constraints. Posting volumes, geolocation practices, and platform access can change over time, and geographic attribution does not necessarily identify a poster’s usual residence. Minimum tweet counts and coverage thresholds reduce dependence on very sparse cells, but do not correct the composition of the observed population. Region effects absorb persistent additive differences, while country-by-year effects absorb annual shifts shared by regions within each country. These adjustments leave open differential changes in regional user composition, expression practices, and exposure to national events. The persistence of the regional association under these controls therefore supports its robustness to those particular adjustments, rather than eliminating selection or measurement bias.
Automated classification adds uncertainty of its own. The published HFGI validation and cross-linguistic model assessment support the measurement approach [7, 12], while ambiguity, irony, and culturally specific expression can still affect particular indicators. The common posting source and classification framework may generate correlated errors across religious expression, connectedness, and well-being.
Discussion and conclusions
The study provides evidence for a national statistical pathway linking religious expression to subsequent happiness and life satisfaction through social connectedness. This is the main contribution of the longitudinal analysis: religious expression is associated with connectedness one year later, which is in turn associated with these outcomes in the following year, conditional on baseline measures, fixed effects, and trends. The broader results show positive contemporaneous associations across all three well-being dimensions and positive associations between regional averages. Together, these findings distinguish a connectedness pathway from the wider pattern of religious-expression associations summarized in Table 8.
The national pathway gives a territorial perspective on the social relationships emphasized in earlier research. Lim and Putnam [10] link religious-service attendance and congregational friendships to life satisfaction, with the friendship association depending on a strong religious identity. Diener et al. [4] identify social support, respect, and meaning as statistical intermediaries in the relationship between religiosity and well-being. Our analysis examines a broader form of connection: belonging to society, lower loneliness, trust in others, and feeling trusted. The positive national indirect associations indicate that this broader connectedness measure is relevant to the relationship between religious expression and later well-being. They extend the examination of social connection to repeated territorial expressions, while the individual and congregational processes studied in earlier work remain distinct from our aggregate measures.
Purpose adds a complementary dimension to this account. Its association with religious expression exceeds those of happiness and life satisfaction in both regional designs, and this ordering remains under country-by-year controls. In the static regional SEM, a substantial purpose association also remains after connectedness is included. These findings make the distinction between relational and existential resources useful for interpretation. Becchetti (2025) examines social interaction and meaning in life among several channels connecting religiosity to life satisfaction. Steger and Frazier [24] find that meaning in life statistically mediates relationships between religiousness and well-being. Here, purpose is an outcome, allowing us to examine its association with religious expression alongside affective and evaluative well-being. The findings suggest that the relationship between religious expression and well-being may involve distinct social and existential processes. At the national level, social connectedness provides a statistical pathway linking religious expression to subsequent happiness and life satisfaction. The stronger regional association with purpose, which remains substantial after accounting for connectedness, is compatible with a more personal dimension of religious experience, through which beliefs and comfort may provide meaning and direction [18]. This interpretation remains tentative: the imprecise longitudinal indirect estimate for purpose does not establish that its association with religious expression is independent of social relationships.
Emotional processes provide another substantive direction for investigation. Van Cappellen et al. [25] report statistical mediation through self-transcendent positive emotions, including awe and gratitude, in two cross-sectional studies of religion or spirituality and well-being. In the present work, unmeasured emotional processes and shared measurement variation remain possible contributors to the conditional associations. In future extensions, emotional experiences may be examined as mediators alongside social connection.
The geographic comparisons clarify which relationships the data support at each scale. Positive contemporaneous associations appear within both countries and regions, and the regional associations persist after adjustment for country-by-year effects. The regional lagged estimates remain imprecise, whereas the national indirect intervals support the pathway for happiness and life satisfaction. This difference in precision does not establish a difference between the pathways, but it identifies the national model as the clearest evidence for the proposed sequence in these data. Contextual research offers a reason to investigate geographic variation: Stavrova et al. [23] find stronger individual religiosity–well-being associations where religiosity is socially normative, partly associated with greater respect for religious individuals. Our comparisons add evidence on temporal and geographic patterns of expression, even if they do not directly test that social-norm explanation.
The findings also extend research on religion in online expression. Ritter et al. [19] find more positive and less negative emotional language among Christian than atheist Twitter users, with social-relationship language accounting for part of the difference in expressed happiness. Our contribution is to examine religious-expression scores in repeated geographic observations and distinguish happiness, life satisfaction, and purpose. The combination of temporal models, regional comparisons, and direct outcome contrasts shows where connectedness contributes to these associations and where the evidence remains uncertain.
The magnitudes should be interpreted in relation to these measures and units. Prati (2024) reports very small or negligible associations between religious indicators and well-being in large individual-level survey analyses, questioning their practical importance. Our standardized territorial expression coefficients describe a different relationship and cannot be interpreted as individual well-being gains or compared directly with those survey effect sizes. The direct contrasts establish a stronger regional association with purpose, while the imprecise total national lagged associations leave the practical magnitude of the proposed sequence unresolved.
Across countries and regions, online expression reveals patterns consistent with established research on religion and well-being. By combining broad geographic coverage with annual observations over a decade, this study distinguishes temporally ordered associations from contemporaneous relationships and persistent differences between regions. The clearest longitudinal evidence concerns the national connectedness pathways for happiness and life satisfaction, while the regional comparisons highlight the stronger association with purpose. These findings concern public expressions among the observed posting population and do not establish causal effects on individual well-being.
Abbreviations
CFI Comparative fit index.
CI Confidence interval.
CY Country-by-year.
HFGI Human Flourishing Geographic Index.
NAISS National Academic Infrastructure for Supercomputing in Sweden.
RMSEA Root mean square error of approximation.
SEM Structural equation model.
Declarations
Availability of data and materials
The model input data, analysis code, and supporting documentation are available at https://github.com/siacus/religion-hfgi. The repository provides a single analysis dataset and documents indicator construction, model-specific scaling, sample selection, estimation, and sensitivity analyses. It reproduces the reported numerical results, coefficient figures, and supplementary latent-model diagnostics, and supplies the diagram sources.
Competing interests
The authors declare that they have no competing interests.
Funding
This research received no specific grant from any funding agency in the public, commercial, or not-for-profit sectors.
Authors’ contributions
Stefano M. Iacus: Conceptualization, methodology, software, data curation, formal analysis, visualization, and writing—original draft, review and editing. Giuseppe Porro: Conceptualization and writing—original draft, review and editing. Haodong Qi: Writing—original draft, review and editing.
Acknowledgements
The authors acknowledge the computational resources provided by the National Academic Infrastructure for Supercomputing in Sweden (NAISS).
Use of AI-assisted tools
OpenAI Codex was used to assist with text correction and the development, verification, and debugging of analysis scripts. The authors take full responsibility for the manuscript, code, and results.
Supplementary material
Data preparation and estimation details
Definition of the dimension scores
Before standardization, each dimension score is the sum of the scores assigned to posts expressing that dimension, divided by the total number of posts in the geographic unit and year. Posts in which the dimension is not detected contribute zero to this sum and remain in the denominator. Equivalently, the score is the share of posts expressing the dimension multiplied by their mean expression score. The national US indicators are constructed by summing the corresponding score totals and post counts across the 50 states and the District of Columbia before calculating each national ratio. The composites and standardization described below are applied after this geographic aggregation.
Coverage and inclusion criteria
All data preparation, index standardization, and analyses are restricted to 2013–2022. Observations from 2023 cover only January–June and are excluded. We use annual aggregate expression scores, together with the number of posts for each geographic unit and the share expressing each dimension. The approximate number of posts expressing a dimension is recovered by multiplying that share by the total number of posts and rounding to the nearest integer. A geographic unit and year must have at least 1,000 posts, with at least 30 posts expressing each required dimension.
Records without geographic identifiers or with missing, non-finite, or out-of-range scores are excluded; the shares expressing each dimension must also lie within their admissible range. Duplicate records for the same geographic unit, year, and dimension are resolved before constructing the panels. For religious-expression and outcome measures, records with a country name are preferred, followed by those with the largest total number of posts. For connectedness measures, the eligible record with the largest total number of posts is retained.
Annual association samples require complete religious-expression and outcome measures and at least four eligible years per geographic unit. They contain 602 country-years in 61 countries and 8,350 region-years in 1,004 regions and 60 countries. The longitudinal pathway samples additionally require all connectedness dimensions and observations at , , and . Units must contribute at least three eligible baseline years. These requirements yield 468 country-years in 61 countries and 5,122 region-years in 847 regions and 60 countries. Country-years and region-years in these pathway samples refer to eligible baseline observations with their corresponding follow-up measures.
Standardization of the annual measures
For the annual analyses, the four religious-expression dimensions are first standardized separately within the country or regional source panel for 2013–2022, then averaged with equal item weights. All four dimensions must be observed. In the same-year association models, this composite and each outcome are subsequently standardized within the estimation sample.
For the longitudinal pathway analyses, the four connectedness dimensions are standardized using weights that give each country equal total weight. Loneliness is reversed, the four dimensions are averaged with equal item weights, and the resulting index is standardized again. The religious-expression composite and all three outcomes are also standardized using these weights in the complete annual pathway panel, before constructing the lagged sample. The SEM coefficients thus refer to scaled observed measures; the residuals obtained after removing fixed effects and trends are not standardized again. The weighting used in model estimation is described in the main methods section.
Construction of regional period averages
For the static analysis, regional means are calculated from years with complete religious-expression, connectedness, and outcome measures during 2013–2022. Each region must contribute at least eight annual observations, and each year receives equal weight in its period mean. Countries must contain at least two eligible regions. Regional item means are standardized with equal total weight per country before forming and restandardizing the two equal-item indices; loneliness is reversed. The final sample comprises 733 regions in 43 countries. These averages describe differences between regions over a shared period, whereas the annual models describe variation over time.
Previous research provides evidence on the cross-linguistic performance of the language models underlying this approach. Nasuto et al. [12] document transfer of topic recognition across languages and improvements in more nuanced classification through multilingual fine-tuning. This evidence complements the indicator construction and validation reported in the HFGI data descriptor [7].
Covariance structure and model degrees of freedom
The national longitudinal, regional longitudinal, and static regional observed-variable SEMs have saturated covariance structures: they impose no restrictions on the modeled covariances that could independently test the proposed paths. Their covariance-structure degrees of freedom are therefore zero. The four fixed intercepts produce four nominal model degrees of freedom in lavaan, but their zero means follow from the preceding residualization. Global fit is consequently not used to validate the substantive path structure.
Sensitivity to countries without identifying variation
A country-year containing only one observed region provides no variation for the regional comparison after its country-by-year effect is removed. We therefore examine the variation in religious expression remaining after adjustment for region and country-by-year effects in Equation (5), and repeat the model excluding countries with none. We retain the original standardization, equal observation weights, and country-clustered standard errors. This check assesses whether including countries that contribute no identifying variation affects the estimated uncertainty. It concerns the contemporaneous regional association, rather than the longitudinal connectedness pathway.
The country-by-year specification retains 74.4% of the baseline residual predictor sum of squares. Of 572 country-year cells, 94 contain a single observed region; 54 countries contribute residual identifying variation. Excluding the other six countries reduces the sample from 8,350 region-years in 1,004 regions and 60 countries to 8,307 region-years in 997 regions and 54 countries. The point estimates are unchanged. The resulting 95% confidence intervals remain positive: [0.053, 0.205] for happiness, [0.178, 0.373] for life satisfaction, and [0.465, 0.925] for purpose. Table 4 reports the comparison on the full sample.
Religious affiliation and fixed effects
The fixed effects also account for stable differences in religious affiliation, which is conceptually distinct from religious expression. National affiliation shares from Pew’s 2010/2020 composition estimates, processed by Our World in Data, and Christian-tradition estimates referring to 2010 describe identification with religious groups [5, 16, 15]. A selected year’s national shares are time-invariant: country effects absorb them in the national and static regional models, and region effects absorb them in the annual regional models. The corresponding effects are removed before fitting the SEMs, so separate main coefficients for these shares are not identified. This adjustment covers stable affiliation differences, rather than changes in affiliation over time.
Coefficient figures and estimated path diagrams
The following figures reproduce the country, regional, and static regional results. The path diagrams display point estimates, with full uncertainty reported in the main tables. The common coefficient is repeated for readability. For the annual models, baseline connectedness and all three baseline outcomes enter every equation; they are omitted from these diagrams. The three outcome residuals may covary in each SEM. Arrows describe the estimated statistical relationships.

Figure S1. Country-level same-year associations and longitudinal SEM paths. The panels use different analysis samples. SEM intervals are exploratory.
Figure S2. Country longitudinal SEM paths. Point estimates only; see the corresponding table for uncertainty.

Figure S3. Regional same-year associations and longitudinal SEM paths. All focal regional SEM intervals include zero.
Figure S4. Regional longitudinal SEM paths. Point estimates only; see the corresponding table for uncertainty.

Figure S5. Associations and SEM paths for regional period means, 2013–2022. All measures cover the same period.
Figure S6. Static regional SEM paths, 2013–2022. Point estimates only; see the corresponding table for uncertainty.
Latent multilevel SEM: specification and diagnostics
We also attempted a two-level latent SEM on the regional lagged panel. Before fitting, each observed measure was residualized for country and year fixed effects and country-specific linear trends. For level , denoting annual within-region deviations and the between-region component of the residualized variables, respectively, the measurement equations are
Here indexes belief in an afterlife (afterlife), belief in God (believegod), feeling loved by God (lovedgod), and religious comfort (relcomfort); indexes belonging (belonging), reversed loneliness (loneliness), trust in others (trust), and feeling trusted by others (trusted). Here and denote the observed religious-expression and connectedness indicators, and their latent factors, and the factor loadings, and and the measurement residuals. The structural equations are
The terms and are the connectedness and outcome equation residuals. Religion indicators are measured at , connectedness indicators at , and outcomes at . At each level, would be the indirect product and the total modeled association. These coefficients are defined to explain the specification; they are not interpreted. The between-region component is specific to this lagged residualized sample and is distinct from the static period means. This diagnostic model omits the baseline connectedness and well-being controls used in the observed-index longitudinal SEMs.

Figure S7. Attempted latent multilevel specification. Each grouped indicator box represents four separate observed variables with their own loadings and residuals; each outcome also has its own residual. No estimated coefficients are shown.
The unconstrained model converged but had three negative residual variances: believegod at both levels and future happiness at the between-region level. Its comparative fit index (CFI) was 0.899 and root mean square error of approximation (RMSEA) was 0.124. Placing zero lower bounds on every observed residual variance at both levels removed negative estimates, but the same three variances were at the boundary. Fit remained weak, with CFI 0.891 and RMSEA 0.129 (Table S1). Neither model supports reliable interpretation of its path coefficients.
| Specification | Negative variances | At zero | CFI | RMSEA |
| Unconstrained | 3 | 0 | 0.899 | 0.124 |
| Nonnegative variances | 0 | 3 | 0.891 | 0.129 |
Table S1. Latent multilevel SEM diagnostics.
Both fits converged on 5,122 region-years in 847 regions, with 74 degrees of freedom. Negative residual variances invalidate the unconstrained fit; boundary estimates and weak fit prevent interpretation of the bounded model’s coefficients.
References
- [2]F. Campante and D. Yanagizawa-Drott. Does religion affect economic growth and happiness? evidence from Ramadan. The Quarterly Journal of Economics, 130(2):615–658, 2015. doi: 10.1093/qje/qjv002.DOI
- [3]Y. Chen, E. S. Kim, and T. J. VanderWeele. Religious-service attendance and subsequent health and well-being throughout adulthood: Evidence from three prospective cohorts. International Journal of Epidemiology, 49(6):2030–2040, 2020. doi: 10.1093/ije/dyaa120.DOI
- [4]Ed Diener, Louis Tay, and David G. Myers. The religion paradox: If religion makes people happy, why are so many dropping out? Journal of Personality and Social Psychology, 101(6):1278–1290, 2011. doi: 10.1037/a0024402. URL https://pubmed.ncbi.nlm.nih.gov/21806304/.
- [5]Conrad Hackett, Marcin Stonawski, Yunping Tong, Stephanie Kramer, and Anne Fengyan Shi. Dataset of global religious composition estimates for 2010 and 2020. Pew Research Center dataset, 2025. URL https://doi.org/10.58094/vhrw-k516.
- [6]E. L. Hamaker, R. M. Kuiper, and R. P. P. P. Grasman. A critique of the cross-lagged panel model. Psychological Methods, 20(1):102–116, 2015. doi: 10.1037/a0038889. URL https://doi.org/10.1037/a0038889.
- [7]Stefano M. Iacus, Devika Jain, Andrea Nasuto, Giuseppe Porro, Marcello Carammia, and Andrea Vezzulli. The Human Flourishing Geographic Index: A county-level dataset for the United States, 2013–2023. Scientific Data, 13:1234, 2026. doi: 10.1038/s41597-026-07803-1. URL https://www.nature.com/articles/s41597-026-07803-1.DOI
- [8]S. Iyer, S. Larcom, J. Shah, and P.-W. She. Do religious people cope better in a crisis? evidence from the UK pandemic lockdowns. Journal of Economic Behavior & Organization, 237:107136, 2025. doi: 10.1016/j.jebo.2025.107136.DOI
- [9]K. Jaidka, S. Giorgi, H. A. Schwartz, M. L. Kern, L. H. Ungar, and J. C. Eichstaedt. Estimating geographic subjective well-being from Twitter: A comparison of dictionary and data-driven language methods. Proceedings of the National Academy of Sciences, 117(19):10165–10171, 2020. doi: 10.1073/pnas.1906364117.DOI
- [11]F. Martela and M. F. Steger. The three meanings of meaning in life: Distinguishing coherence, purpose, and significance. The Journal of Positive Psychology, 11(5):531–545, 2016. doi: 10.1080/17439760.2015.1137623.DOI
- [12]Andrea Nasuto, Stefano Iacus, Francisco Rowe, and Devika Jain. Large language models identify immigration attitudes in online discourse regardless of language. Scientific Reports, 16(1):20118, 2026. doi: 10.1038/s41598-026-52167-6. URL https://www.nature.com/articles/s41598-026-52167-6.DOI
- [13]OECD. OECD Guidelines on Measuring Subjective Well-being (2025 Update). OECD Publishing, Paris, 2025. doi: 10.1787/9203632a-en. URL https://doi.org/10.1787/9203632a-en.
- [15]Pew Research Center. Global christianity: A report on the size and distribution of the world’s christian population. Technical report, Pew Research Center’s Forum on Religion & Public Life, Washington, DC, 2011. URL https://www.pewresearch.org/religion/2011/12/19/global-christianity-exec/.
- [18]Michael Prinzing, Patty Van Cappellen, and Barbara L. Fredrickson. More than a momentary blip in the universe? investigating the link between religiousness and perceived meaning in life. Personality and Social Psychology Bulletin, 49(2):180–196, 2023. doi: 10.1177/01461672211060136.
- [19]R. S. Ritter, J. L. Preston, and I. Hernandez. Happy tweets: Christians are happier, more socially connected, and less analytical than atheists on Twitter. Social Psychological and Personality Science, 5(2):243–249, 2014. doi: 10.1177/1948550613492345.DOI
- [20]Yves Rosseel. lavaan: An R package for structural equation modeling. Journal of Statistical Software, 48(2):1–36, 2012. doi: 10.18637/jss.v048.i02. URL https://www.jstatsoft.org/article/view/v048i02.DOI
- [21]M. A. Ruberto, G. Gioeli, M. Rizzolli, and A. Maruotti. Understanding happiness amidst COVID-19: Exploring relations, religion and trust. Economic Notes, 54(1):e70003, 2025. doi: 10.1111/econo.70003.
- [22]Luke Sloan and Jeffrey Morgan. Who tweets with their location? Understanding the relationship between demographic characteristics and the use of geoservices and geotagging on Twitter. PLOS ONE, 10(11):e0142209, 2015. doi: 10.1371/journal.pone.0142209.DOI
- [23]Olga Stavrova, Detlef Fetchenhauer, and Thomas Schlösser. Why are religious people happy? the effect of the social norm of religiosity across countries. Social Science Research, 42(1):90–105, 2013. doi: 10.1016/j.ssresearch.2012.07.002. URL https://pubmed.ncbi.nlm.nih.gov/23146600/.
- [24]Michael F. Steger and Patricia Frazier. Meaning in life: One link in the chain from religiousness to well-being. Journal of Counseling Psychology, 52(4):574–582, 2005. doi: 10.1037/0022-0167.52.4.574. URL https://doi.org/10.1037/0022-0167.52.4.574.
- [25]P. Van Cappellen, M. Toth-Gauthier, V. Saroglou, and B. L. Fredrickson. Religion and well-being: The mediating role of positive emotions. Journal of Happiness Studies, 17(2):485–505, 2016. doi: 10.1007/s10902-014-9605-5.
- [27]X. Zhao, J. G. Lynch, Jr., and Q. Chen. Reconsidering Baron and Kenny: Myths and truths about mediation analysis. Journal of Consumer Research, 37(2):197–206, 2010. doi: 10.1086/651257.DOI



