# Psychological resources and flexibility predict resilient mental health trajectories during the French covid-19 lockdown

Nicolas Pellerin, Eric Raufaste, Maya Corman, Frederique Teissedre, Michael Dambrun

<figure><img src="image_1.png" /></figure>

## To cite this version:

Nicolas Pellerin, Eric Raufaste, Maya Corman, Frederique Teissedre, Michael Dambrun. Psychological resources and flexibility predict resilient mental health trajectories during the French covid-19 lockdown. Scientific Reports, 2022, 12, pp.10674. 10.1038/s41598-022-14572-5. hal-03331086v2

HAL Id: hal-03331086

https://hal.science/hal-03331086v2

Submitted on 24 Jun 2022

HAL is a multi-disciplinary open access archive for the deposit and dissemination of scientific research documents, whether they are published or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d'enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

<figure><img src="image_2.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
<figure><img src="image_3.png" /></figure>

OPEN

# Psychological resources and flexibility predict resilient mental health trajectories during the French covid-19 lockdown

Nicolas Pellerin¹✉, Eric Raufaste¹, Maya Corman², Frederique Teissyre² & Michael Dambrun²

The implementation of lockdowns and the Covid-19 pandemic situation have negatively impacted mental health (anxiety, depression). However, little is known about individual differences in the longitudinal reactions to lockdown. We designed a longitudinal study (a) to identify the various trajectories of symptoms of depression and anxiety in the general population during and after lockdown; (b) to determine which positive psychological resources prevent individuals from falling into groups with the most severe trajectories; (c) to test the mediating role of psychological flexibility. We collected and analysed longitudinal data on a sample of French participants (N = 1399, M<sub>age</sub> = 43.4; SD<sub>age</sub> = 12; 87.8% women) during the end of the first lockdown. Participants were asked to report their psychological resources and (in)flexibility at baseline and symptoms of anxiety and depression at each measurement occasion (five weekly observations from 17 March to 11 May 2020, including baseline). Using growth mixture modelling, seven dynamic profiles of symptoms were identified: four for depression and three for anxiety. Resilience emerged as the most frequent trajectory. Wisdom, optimism, hope, self-efficacy and peaceful disengagement significantly prevented individuals from belonging to the symptomatic groups. Moreover, psychological flexibility emerged as a significant mediator of these effects. This study highlights the importance of cultivating protective factors and psychological flexibility to prevent mental health damage during potentially traumatic events (PTE) and to favour resilience trajectories.

There is growing evidence that the Covid-19 pandemic situation degraded mental health in the general population¹. Although lockdowns probably help reduce the circulation of the virus², such measures are so extreme, in terms of restrictions of liberty and disruption of social interactions, that they can lead to further deterioration in mental health and well-being³⁻⁷. While previous studies have shown that people differ considerably in their responses to potentially traumatic events (PTEs) and that most people appear to be relatively resilient to them⁸, to date little is known about the heterogeneity of mental health responses to lockdown. Following a brief examination of the resilience construct, we consider the recent literature on psychological functioning during lockdown and pandemic situations which suggests the existence of individual differences in anxiety and depression trajectories. Among protective factors, we argue that the availability of psychological resources can explain individual differences in resilience. Finally, we propose that psychological flexibility may mediate the positive effects of psychological resources. We then report a longitudinal empirical investigation during and after the French lockdown to put these hypotheses to the test.

**Psychological resilience in the Covid-19 pandemic context.** The study of resilience has received more and more attention, with very different theoretical and operational approaches⁹. Some conceptualise resilience as a dynamic process causing positive adaptation¹⁰ or as an individual disposition to bounce back from

¹CLLE, CNRS UMR 5263, Universite Toulouse 2 Jean Jaures (UT2J), 5 Allees A. Machado, 31058 Toulouse Cedex, France. ²LAPSCO, CNRS UMR 6024, Universite Clermont Auvergne, Clermont-Ferrand, France. ³email: nicolas.pellerin@univ-tlse2.fr
adversity¹¹. In this paper, resilience is seen as the result of longitudinal psychological adjustment following PTEs. The maintenance of mental health and well-being during and after acute, short-term stressors has been termed 'minimal-impact resilience', as opposed to 'emergent resilience', which is long-term adaptation following persistent stressful contexts¹². Because lockdown is intended to be temporary, resilience is understood here in the sense of minimal-impact resilience. We therefore adopted the definition of resilience proposed by Bonanno¹³ as 'the ability of adults in otherwise normal circumstances who are exposed to an isolated and potentially highly disruptive event (...) to maintain relatively stable, healthy levels of psychological and physical functioning' (p. 20).

Covid-19 has been shown to have a significant impact on mental health¹. Studies have shown that people in lockdown were more likely to suffer from depression and anxiety than before the pandemic¹⁴,¹⁵. Quarantine, prolonged quarantine especially, showed adverse psychological effects, such as post-traumatic stress, confusion, anger, fear of infection, frustration, boredom, inadequate information, financial loss and stigma¹⁶. The first lockdown in France (from 17 March to 11 May 2020), as for many countries, combined many aggravating factors, such as a particularly long duration (1 month and 25 days) and negative public attitudes around its implementation i.e., perceived excessive media coverage of the pandemic, substantial economic damage and poor communication by the authorities¹⁷. In this respect, the pandemic and lockdown contexts undoubtedly represent a PTE that has a negative impact on mental health.

There is, however, a non-negligible barrier to the study of resilience during the first lockdown. Observing psychological reactions or non-reaction to PTEs requires longitudinal designs, i.e., multiple assessments¹⁸. Ideally, the measurement should be done at three different times: before, during and after the PTE¹⁹, so that the resilient outcome can be referenced to a baseline to observe the short-term and long-term impacts of PTEs. However, the implementation of the first lockdown was not predictable, preventing researchers from investigating individuals' baseline mental health before lockdown. Studying a lockdown followed by unlockdown might serve as a relevant way to compare lockdown and not-lockdown situations. The moment of unlockdown itself might also be of particular interest and has been relatively understudied. People may differ in their mental reactions near the end of the lockdown. For example, unemployed people might experience decreased anxiety and depression in response to an actual or anticipated lockdown. Conversely, teleworking employees might undergo increased anxiety as they approach the time to return to their workplace—particularly those who use public transportation where contamination is possible. We use the term '(un)lockdown' throughout this document to refer to the entire process that begins during lockdown and continues just after lockdown.

As already mentioned, longitudinal analyses are necessary to examine the developmental trend of psycho-pathological symptoms or resilience during (un)lockdown¹⁸,¹⁹. A recent review of available studies associated with the Covid-19 pandemic provides a good picture of the general trends of mental health trajectories²⁰. For example, the trajectories of anxiety and depression of a large and representative sample of UK citizens progressively decreased for 20 weeks after the start of lockdown, with the steepest decrease during the period of strictest lockdown²¹. However, approaches used to date have only assessed the average population trajectory and failed to capture the heterogeneity of individuals' mental health trajectories²². Pre-pandemic research on the impact of PTEs uncovered the existence of not one single but several distinct trajectories of anxiety and depression in the same population²³⁻²⁶. Such diversity might also hold in the pandemic and (un)lockdown contexts so that limiting the analysis to general population trends may mask substantive particularities. Bonanno's team studied various contexts involving psychological adaptation to an aversive disruptive event such as the death of a spouse or the World Trade Center attack²⁷,²⁸. According to Bonanno, in the case of minimal-impact resilience, the main trajectories are *resilience* (characterised by little change in normal functioning over time), *recovery* (which implies a significant change in psychological functioning before a return to normal), *delayed response* (little change during the aversive event but the appearance of a delayed deleterious change in psychological functioning) and the state of *chronic disruption* (maintenance of a dysfunctional psychological state over the long term)¹³. A review of studies found that most individuals' clinical trajectories after PTEs followed a pattern of resilience (65.7% across populations), followed by recovery (20.8%), chronic disruption (10.6%) and delayed responses (8.9%)⁸.

The present study aimed at evaluating group differences in anxiety and depression trajectories in the context of (un)lockdown. More generally, as observed in pre-Covid studies, we expected to find groups differing in substantive and persistent symptomatology. More precisely, we predicted that individuals would differ substantively in how they reacted to (un)lockdown in terms of depression and anxiety symptomatology, but that a significant proportion of individuals would be resilient.

**The positive psychological resources favoring resilience in terms of anxiety and depression.** One of the main questions that resilience theory can be used to tackle is: why are some persons affected by (un)lockdown and the general pandemic context but not others? When comparing the resilient group with the others (i.e., individuals who report symptoms above the symptomatologic threshold at one point at least during the study period), the predictor variables can be considered risk factors or protective variables, depending on the direction of the relationship. Previous studies on resilience to PTEs have found many such factors: demographics, exposure, personality, social and economic resources, past and current stress, positive emotions, coping and appraisal, flexibility and genes¹²,²². In general, there are no predominant resilience factors against one particular PTE but rather multiple factors with relatively small effects¹². For example, research on resilience in the face of natural disasters associated with climate change has found numerous factors, such as distal and proximal exposure to climate disasters, individual characteristics (demographics, biological vulnerability, personality coping and emotion regulation, social support), family and community²⁹. Therefore, researchers were prompted to include many potentially relevant factors to find the best resilience profiles in the Covid-19 pandemic³⁰.

With the development of positive psychology, there is growing evidence that positive mental dispositions or strength of character contribute to human fulfilment in a wide range of areas³¹,³². In particular, many positive
psychology constructs have proven to be effective in improving well-being and relieving the symptoms of depres-
sion and anxiety³³⁻³⁵. Many studies have already identified some of these protective psychological factors, such
as mindfulness, perceived social support³⁶, optimism, resilience (conceptualized as an individual disposition³⁷),
good stress response recovery and positive appraisal³⁸. However, these studies did not operationalise mental
health longitudinally. Another limitation is that the authors limited their scope to a few selected psycho-social
resources. A longitudinal study conducted during the French lockdown of the Covid-19 pandemic uncov-
ered a set of psychological resources that increased various forms of happiness³⁹. The notion of psychological
resources refers to positive mental dispositions that contribute to personal well-being and resilience. Based on
three criteria (the relation of the resource with well-being had to be theoretically and empirically established
and a psychometrically sound instrument had to be available for the resource), nine well-studied psychological
resources were selected: self-efficacy⁴⁰; optimism⁴¹; hope⁴²; personal wisdom⁴³; self-transcendence⁴⁴; gratitude
toward the world⁴⁵; gratitude of being⁴⁶; peaceful disengagement⁴⁶; and acceptance⁴⁷. Results showed that most
of these constructs had protective effects on well-being, enhancing happiness averages and reducing the lock-
down's negative impact and perceived economic and health threats³⁹. Interestingly, various happiness dimensions
(emotional, psychological, social and inner well-being) had their own set of protecting variables. Therefore, it can
be expected that positive psychological resources also differently influence depression and anxiety trajectories
during and after PTEs.

In this study, we sought to identify psychological resources that are protective against the symptomatologic trajectories of depression and anxiety in the context of (un)lockdown and the Covid-19 pandemic. Most of the resources mentioned above were selected for this purpose. Overall, we examined the protective role of psychological resources by testing their ability to predict a trajectory of resilience compared to a symptomatologic trajectory in terms of anxiety or depression. Specifically, we predicted that most of the psychological resources previously identified would increase the likelihood of a resilience trajectory and decrease the likelihood of a trajectory symptomatic of anxiety or depression.

**Psychological flexibility as a mediating process.** The last purpose of this study was to test a mechanism that would explain the expected protective role of psychological resources. Because psychological flexibility is centrally related to depression and anxiety outcomes, it might explain the effects of psychological resources on resilience. Psychological flexibility is a broad concept that reflects a person's ability to easily adapt their cognition and behaviour according to their needs⁴⁸. Part of psychological flexibility is regulatory (or coping) flexibility—that is, the ability to adapt one's behaviour in response to the demands of the environment⁴⁹. This construct has been identified as a key to emerging resilience against PTEs in general⁴⁹ and also potentially in the Covid-19 crisis and lockdowns in particular³⁰. The construct of psychological flexibility is also embedded in the Acceptance and Commitment Therapy (ACT) principles, within the third wave of Cognitive and Behavioral Therapy, although it differs in certain respects from regulatory flexibility. We propose that the two approaches are not contradictory but rather complementary in explaining how and why people respond differently to PTEs.

The core principle of ACT is that negative experiences such as stress, loss or pain are inevitable. People engaged in fighting against these aversive experiences tend to reinforce their negative aspects, which keeps them away from valued and meaningful action⁵⁰. In ACT, psychological flexibility is viewed as the ability to stay in contact with the present moment, noticing and accepting the way feelings, bodily sensations, and thoughts occur while doing what matters in agreement with one's own values⁵⁰. Psychological inflexibility is characterised by rigid cognitive, emotional and behavioural functioning, in which individuals facing stressful situations react and act while trying to control and avoid internal and external negative experiences (bodily sensations, thoughts, feelings)⁵¹. This approach seems particularly relevant to have a better understanding of the psychological processes that develop and maintain psychological distress in a pandemic context⁵²,⁵³ and to propose effective interventions for people⁵². Indeed, psychological flexibility has been identified as a transdiagnostic process that protects against the emergence and maintenance of several emotional disorders such as depression, anxiety and suicidal ideation⁵⁴,⁵⁵. Psychological flexibility and inflexibility are considered as close but distinct processes that are not just two extremes on the same continuum⁵⁶. Psychological flexibility is related to better mental health, self-compassion and well-being⁵⁷,⁵⁸. Some studies have even approached psychological flexibility as a resilience factor for individuals with post-traumatic stress disorder, depression or chronic pain⁵⁴,⁵⁹. More recently, and directly related to the pandemic situation, McCracken et al.⁶⁰ showed that psychological flexibility was negatively related to anxiety and depression.

Some psychological resources promoting resilience, such as optimism, hope and self-efficacy, are related to psychological flexibility⁶¹. These relationships, and the fact that psychological flexibility has been robustly associated with mental health, has prompted researchers to test for the mediating effects of this construct. Psychological flexibility was found to be a mediator between the fear of negative evaluation and psychological vulnerability⁶² or between childhood aversive events and mental health outcomes⁶³. Recent studies pertaining to the Covid-19 pandemic have taken a similar approach. Psychological (in)flexibility was found to mediate the relationship between coronavirus stress and psychological health and well-being, along with some other psychological resources⁶⁴,⁶⁵. Moreover, they found that psychological inflexibility mediates the relationship between optimism–pessimism and psychological problems in adults (i.e., depression, anxiety, somatisation). Wąsowicz et al.⁶⁶ identified psychological flexibility as a mediating factor between negative emotions and general well-being. Therefore, we suggest that psychological flexibility is one of the best predictors of a resilient trajectory and that the protective effect of the other psychological resources on resilience is mediated, at least partly, by psychological flexibility.

**Summary of the study hypotheses.** In summary, we sought to test three hypotheses:
<table><caption>**Table 1.** Sociodemographic characteristics of participants in each wave. Wave 1 corresponds to the initial measurement time; waves 2 to 5 are weekly follow-ups. Each participant responded to at least two waves (including wave 1).</caption><thead><tr><th>Wave</th><th>1</th><th>2</th><th>3</th><th>4</th><th>5</th></tr></thead><tbody><tr><td>Start date</td><td>28-04</td><td>06-05</td><td>13-05</td><td>20-05</td><td>27-05</td></tr><tr><td>Lockdown</td><td>Yes</td><td>Yes</td><td>No</td><td>No</td><td>No</td></tr><tr><td>Total N</td><td>1399</td><td>924</td><td>849</td><td>688</td><td>661</td></tr><tr><td>Gender</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Men</td><td>171 (12.2%)</td><td>110 (11.9%)</td><td>97 (11.4%)</td><td>76 (11%)</td><td>72 (10.9%)</td></tr><tr><td>Women</td><td>1228 (87.8%)</td><td>814 (88.1%)</td><td>752 (88.6%)</td><td>612 (89%)</td><td>589 (89.1%)</td></tr><tr><td>Age M (SD)</td><td>43.4 (12.0)</td><td>43.5 (11.7)</td><td>44.0 (11.8)</td><td>44.4 (11.9)</td><td>44.5 (12.1)</td></tr><tr><td>18-25</td><td>112 (8%)</td><td>63 (6.8%)</td><td>53 (6.2%)</td><td>42 (6.1%)</td><td>42 (6.4%)</td></tr><tr><td>25-35</td><td>261 (18.7%)</td><td>178 (19.3%)</td><td>154 (18.1%)</td><td>123 (17.9%)</td><td>120 (18.2%)</td></tr><tr><td>35-45</td><td>445 (31.8%)</td><td>296 (32%)</td><td>275 (32.4%)</td><td>211 (30.7%)</td><td>195 (29.5%)</td></tr><tr><td>45-55</td><td>338 (24.2%)</td><td>233 (25.2%)</td><td>217 (25.6%)</td><td>183 (26.6%)</td><td>173 (26.2%)</td></tr><tr><td>55-65</td><td>189 (13.5%)</td><td>122 (13.2%)</td><td>117 (13.8%)</td><td>98 (14.2%)</td><td>99 (15%)</td></tr><tr><td>65-78</td><td>54 (3.9%)</td><td>32 (3.5%)</td><td>33 (3.9%)</td><td>31 (4.5%)</td><td>32 (4.8%)</td></tr><tr><td>Work</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Newly inactive</td><td>342 (24.4%)</td><td>250 (27.1%)</td><td>229 (27%)</td><td>191 (27.8%)</td><td>183 (27.7%)</td></tr><tr><td>Full teleworking</td><td>358 (25.6%)</td><td>237 (25.6%)</td><td>208 (24.5%)</td><td>159 (23.1%)</td><td>154 (23.3%)</td></tr><tr><td>Partial teleworking</td><td>120 (8.6%)</td><td>80 (8.7%)</td><td>84 (9.9%)</td><td>68 (9.9%)</td><td>59 (8.9%)</td></tr><tr><td>Working outside home</td><td>196 (14%)</td><td>126 (13.6%)</td><td>114 (13.4%)</td><td>93 (13.5%)</td><td>86 (13%)</td></tr><tr><td>Inactive</td><td>383 (27.4%)</td><td>231 (25%)</td><td>214 (25.2%)</td><td>177 (25.7%)</td><td>179 (27.1%)</td></tr></tbody></table>

**H1** Individuals differ substantively in how they longitudinally react to (un)lockdown in terms of depression and anxiety symptomatology, with significant proportion of individuals displaying a resilient trajectory.

**H2** Psychological resources predict resilient trajectories of anxiety and depression against symptomatological trajectories.

**H3** Psychological flexibility mediates the protective effects of psychological resources.

## Methods

**Participants and procedure.** All the procedures performed in these studies were reviewed and approved by the ethics committee of Toulouse University (Comité d'Ethique de la Recherche (CER) à l'Université Fédérale de Toulouse). The study was performed in accordance with the Helsinki Declaration. The participants gave their informed consent to participate in this study.

We recruited volunteers via an advertisement on social networks in France during the beginning of the first lockdown. A total of 1399 participants fully completed the first questionnaire and provided their email addresses (wave 1). This questionnaire included questions about individual characteristics and contexts and measures of psychological resources, psychological flexibility, and depression and anxiety indexes. Then, each week for four weeks, participants were prompted to respond to a shorter questionnaire that included the depression and anxiety indexes (waves 2 to 5). Table 1 presents the demographics of the participants for each wave.

**Materials.** *Depression and anxiety.* Both depression and anxiety were assessed using the Hospital Anxiety Depression Scale (HADS)⁶⁷,⁶⁸. The HADS comprises seven items using a Likert scale that capture the frequency of experiences from 0 ('never') to 3 ('almost always'). Summing anxiety and depression items gives scores that can serve to identify depression and anxiety symptomatology⁶⁷. Scores of 7 or less indicate no symptomatology, scores of 8 to 10 signal doubtful cases, and scores of 11 and above denote definite symptomatic cases. Cronbach alphas were satisfactory for depression (α=0.83) and anxiety (α=0.79).

*Psychological resources.* All psychological resources were measured at the first wave using Likert scales ranging from 1='strongly disagree' to 7='strongly agree'.

Hope, optimism, and self-efficacy. We assessed hope (e.g., 'If I should find myself in a jam, I could think of many ways to get out of it'), optimism (e.g., 'I am looking forward to the life ahead of me'), and self-efficacy (e.g., 'I am confident that I could deal efficiently with unexpected events') using the Compound-Psychological-Capital questionnaire (CPC-12)³⁹,⁶⁹. Reliabilities were satisfactory for hope (α=0.75), optimism (α=0.79), and self-efficacy (α=0.82).
**Personal wisdom.** Personal wisdom was assessed with the 12-Item Abbreviated Three-Dimensional Wisdom Scale (3D-WS-12)³⁹,⁷⁰, which uses four items to measure each of three dimensions of wisdom, as theorized by Ardelt⁷¹: cognitive (e.g., 'A problem has little attraction for me if I don't think it has a solution.'), affective (e.g., 'Sometimes I feel a real compassion for everyone'), and reflective (e.g., 'When I am confused by a problem, one of the first things I do is survey the situation and consider all the relevant pieces of information'). The personal wisdom measure was marginally reliable (α = 0.64).

**Self-transcendent wisdom.** Self-transcendent wisdom was assessed using the most recently published version of the Adult Self-Transcendence Inventory (ASTI)³⁹,⁷². The classical version of the ASTI measured self-transcendence as a single dimension⁴⁴. Koller et al.⁷² used a mixed-method procedure to assess the ASTI dimensionality, including item evaluations by wisdom and psychometric experts and quantitative analysis using item response theory. They found five non-overlapping dimensions: 'self-knowledge and integration,' 'peace of mind,' 'non-attachment,' 'self-transcendence,' and 'presence in the here-and-now and growth.' We used all seven items of the self-transcendence dimension as a measure of self-transcendent wisdom (e.g., 'I feel that my individual life is part of a greater whole,' α = 0.77).

**Gratitude toward the world.** The 6-item Gratitude Questionnaire (GQ-6)³⁹,⁴⁵ was used to assess dispositional gratitude (e.g., 'I have so much in life to be thankful for,' or 'I am grateful to a wide variety of people'). This measure had adequate reliability in our sample (α = 0.78).

**Gratitude for being and peaceful disengagement.** We used the Minimalist Well-Being Scale to assess gratitude for being and peaceful disengagement⁴⁶,⁷³. Four items captured the disposition to be grateful for just being (e.g., 'I feel grateful that I am alive'), and seven items captured peaceful disengagement (e.g., 'It feels good to do nothing and relax'). Both construct reliabilities were satisfactory (gratitude for being: α = 0.83; peaceful disengagement: α = 0.78).

**Psychological flexibility.** We used two measures of psychological flexibility.

* Psychological flexibility was assessed with the Acceptance and Action Questionnaire II (AAQII)⁵¹,⁷⁴. This seven-point Likert scale (from 1 = 'never true' to 7 = 'always true') measures acceptance and action, two core constructs of psychological flexibility, with a score totaled over 10 items (e.g., 'My thoughts and feelings do not get in the way of how I want to live my life'). Participants with higher total scores experience higher levels of psychological flexibility (α = 0.87).

* Psychological inflexibility was assessed with the Avoidance and Fusion Questionnaire for adults (AFQ)⁷⁵,⁷⁶. This four-point Likert scale (from 0 = 'not true at all' to 4 = 'very true') comprises items measuring the degree of adherence to 17 statements (e.g., 'I can't stand feeling pain or hurt in my body') reflecting experiential avoidance and cognitive fusion. The 17 items were aggregated to provide a total score (α = 0.87). Higher scores correspond to higher levels of psychological inflexibility.

**Control variables: lockdown context.** Participants reported the quality of their lockdown situation regarding the quality of their environment, relationships, and solitude. The quality of the physical environment in which they lived during the lockdown was assessed using a 5-point Likert scale (1 = 'extremely bad', 5 = 'extremely good'). Solitude was assessed by asking whether the participant was alone in his home during the lockdown. Individuals who reported not being alone in their homes rated the quality of their relationships with the people with whom they were locked in using a 5-point Likert scale (1 = 'extremely bad', 5 = 'extremely good'). People alone in lockdown were not presented with this question and the missing value was replaced by the neutral response ('neither good nor bad'). This replacement was done in order to add this variable in the models while not removing all responses from people who are alone in their home. Note that the effect of this variable does not change in alternative models where all responses of lonely people are removed.

**Data analysis.** R⁷⁷ was used for all analyses. The data and R scripts of the analyses are available online in an open directory (https://osf.io/q2e6h/).

To identify distinct groups in trajectories of depression and anxiety, we performed growth mixture modelling with the *hlme* function of the *lcmm* package⁷⁸. Growth mixture modelling (GMM) can be seen as a combination of latent class growth and linear mixed analyses⁷⁹,⁸⁰. Latent class growth analysis (LCGA) relies on the latent growth curve modelling approach in which repeated variables are used to estimate latent intercepts (i.e., the level on the variable at the first time point) and slopes (i.e., the rate of change in the outcome over time) for each individual. Then, individuals with similar intercept and slope parameters are classified into subgroups. LCGA is a particular case of GMM in which no within-group variance of the parameters is allowed. In other words, all individuals' growth trajectories are assumed to be that of the group, but it is unlikely that this assumption holds true with empirical data. GMM is more flexible as it enables specific intercept and slope parameters to be random, in the same manner as the linear mixed modelling framework.

Time in the GMM was treated as the true time since the first measurement in weeks. In this way, missing measurement occasions and random time intervals between two measurement occasions do not bias the final results. Because we expected trajectories to change during the (un)lockdown process for some classes, a quadratic slope was estimated along with the intercept and the linear slope. We used the following steps to select the best number of latent classes. (1) We computed 1 to 7 classes for a set of models with increasingly complex random
<table><caption>**Table 2.** Descriptive statistics and correlation matrix of the study variables as measured in wave 1. All correlations are significant at *p*<0.001. *M* mean, *SD* standard deviation, *VIF* variance inflation factor.</caption><thead><tr><th></th><th>M</th><th>SD</th><th>VIF</th><th>1</th><th>2</th><th>3</th><th>4</th><th>5</th><th>6</th><th>7</th><th>8</th><th>9</th><th>10</th><th>11</th></tr></thead><tbody><tr><td>1. Depression</td><td>10.01</td><td>4.17</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>2. Anxiety</td><td>17.54</td><td>3.96</td><td>-</td><td>0.59</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>3. Psychological flexibility (AAQ-II)</td><td>4.42</td><td>0.97</td><td>2.71</td><td>-0.60</td><td>-0.57</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>4. Psychological inflexibility (AFQ)</td><td>1.82</td><td>0.73</td><td>2.31</td><td>0.55</td><td>0.50</td><td>-0.73</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>5. Gratitude-world (GQ-6)</td><td>4.99</td><td>1.01</td><td>1.93</td><td>-0.28</td><td>-0.41</td><td>0.39</td><td>-0.32</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>6. Self-Transcendence (ASTI)</td><td>4.91</td><td>1.01</td><td>1.39</td><td>-0.14</td><td>-0.19</td><td>0.18</td><td>-0.13</td><td>0.48</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>7. Wisdom (3D-WS)</td><td>4.62</td><td>0.71</td><td>1.89</td><td>-0.38</td><td>-0.42</td><td>0.57</td><td>-0.56</td><td>0.41</td><td>0.29</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>8. Optimism (CPC-12)</td><td>4.72</td><td>1.25</td><td>1.81</td><td>-0.33</td><td>-0.44</td><td>0.41</td><td>-0.30</td><td>0.47</td><td>0.26</td><td>0.29</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>9. Self-efficacy (CPC-12)</td><td>5.32</td><td>1.08</td><td>1.82</td><td>-0.39</td><td>-0.45</td><td>0.49</td><td>-0.38</td><td>0.34</td><td>0.26</td><td>0.49</td><td>0.44</td><td>-</td><td>-</td><td>-</td></tr><tr><td>10. Hope (CPC-12)</td><td>5.00</td><td>1.05</td><td>2.15</td><td>-0.42</td><td>-0.53</td><td>0.55</td><td>-0.44</td><td>0.46</td><td>0.27</td><td>0.44</td><td>0.58</td><td>0.58</td><td>-</td><td>-</td></tr><tr><td>11. Gratitude-being (MW-BS)</td><td>5.23</td><td>1.06</td><td>1.68</td><td>-0.22</td><td>-0.39</td><td>0.37</td><td>-0.24</td><td>0.54</td><td>0.28</td><td>0.26</td><td>0.51</td><td>0.28</td><td>0.42</td><td>-</td></tr><tr><td>12. Peaceful disengagement (MW-BS)</td><td>5.18</td><td>0.96</td><td>1.4</td><td>-0.45</td><td>-0.45</td><td>0.36</td><td>-0.28</td><td>0.31</td><td>0.30</td><td>0.20</td><td>0.34</td><td>0.40</td><td>0.41</td><td>0.34</td></tr></tbody></table>

structures: no random structure; random intercept only; random intercept and linear slope; and random intercept, linear and quadratic slopes. (2) Using the Bayesian information criterion (BIC), the first six models on all 28 possibilities with the best fit were selected and plotted along with their fit indices for comparison. (3) Finally, the best model was selected following these criteria: (a) best fit in terms of BIC; (b) classes not too small (i.e., each class had to represent at least 5% of the total sample); (c) the classes had to represent meaningful trajectories and each new complexity level had to provide relevant new information. Three authors (the first, second and last) deliberated and decided on the best model based on these criteria.

To test H2, class membership was predicted by fitting multinomial logistic regression models using the *multinom* function of the *nnet* package⁸¹ in a two-step process. The multinomial logistic regression models provided odds ratios that indicate the probabilities of being assigned to each class rather than the reference class. We first calculated zero-ordered models for each independent variable as unique predictors of class membership. Only variables that proved to be a significant predictor for at least one class membership in the zero-ordered models were entered in the next models. In the first step, all psychological resources, except psychological flexibility, and control variables such as age and sex were simultaneously entered. In the second step, psychological inflexibility and flexibility were added. A significant effect of a variable in steps 1 and 2 is not reported in the text of the Result section if the corresponding zero-order effect was either (1) non-significant or (2) in the opposite direction. Variance inflation factors (VIF) were calculated with the *car* package's *vif* function⁸².

Lastly, we tested H3 using the method of Iacobucci⁸³, which provides general guidance for the mediation analysis with categorical variables. The method consists in calculating the indirect path ('ab path') using estimates and standard errors of the effect of the independent variable on the mediator ('a path') and of the mediator on the dependent variable ('b path'). In our data, the *a* path parameters were inferred from a linear regression model with psychological flexibility as DV and all psychological resources entered as predictors. The *b* path parameters came from step 2 of the multinomial logistic regression described above. We only tested the mediation model for a combination of IV, mediator, and DV when both the total effect of the IV on the DV (i.e., the effect of the psychological resource on class membership in step 1) and the *b* path (i.e., the effect of psychological flexibility on class membership on step 2) were significant. When one of these paths was not significant, we assumed that the mediation was not significant⁸⁴.

## Results

Means, standard deviations, VIF and correlations of the study variables are presented in Table 2. All VIF were below the cutoff of 3, indicating that multicollinearity was not an issue⁸⁵.

**Analyses of trajectories.** *Depression trajectories.* Table 3 presents the six best models (BIC, parsimony indices, entropy and class distribution). The trajectories of all classes for the six models are provided in the supplemental materials (Fig. S1). The four best-fitting models of depression had random intercepts only, with numbers of classes ranging from 4 to 7. Three out of the six classes of the best model had sample sizes below the 5% cutoff. The second best-fitting model had four classes similar to those in model 1, but two small groups. Only one small group (N=21, 1.5%) was still present in the 4-class model. This small group was systematically present in the four best-fitting models and described a meaningful and relevant trajectory of depression (depression levels increase linearly with time). Although the third and fourth best-fitting models showed parsimony indices very similar to that of the second, they had two or more very small additional clusters. Their additional clusters did not bring substantive new information over the second best-fitting model, which also had the best entropy value (i.e., 77). Therefore, the second best-fitting model, with four classes and random intercept, was identified as the best solution.

Figure 1 presents the trajectories of the selected model. Table 4 provides the fixed parameter estimates for each class. The four clusters identified are described as follows. Cluster D1, 'increasing depression' (N=21, 1.5%), characterises people with initially asymptomatic levels of depression (though close to 8) and a depressive
<table><caption>**Table 3.** Fit indices and class distributions of the six best growth mixture models for depression. The models are sorted by increasing BIC. The 'Random' column indicates the combination of random parameters in the model ('I' stands for intercept, 'S' for linear slope, and 'Q' for quadratic slope). The $N_C$ column gives the number of classes estimated in the model.</caption><thead><tr><th>Rank</th><th>Random</th><th>N<sub>C</sub></th><th>AIC</th><th>BIC</th><th>SABIC</th><th>Entropy</th><th>%C1</th><th>%C2</th><th>%C3</th><th>%C4</th><th>%C5</th><th>%C6</th><th>%C7</th></tr></thead><tbody><tr><td colspan="15">Depression</td></tr><tr><td>1</td><td>I</td><td>6</td><td>21,662.86</td><td>21,793.95</td><td>21,714.53</td><td>0.75</td><td>9.4</td><td>1.1</td><td>2.8</td><td>77.4</td><td>5.4</td><td>3.9</td><td></td></tr><tr><td>2</td><td>I</td><td>4</td><td>21,736.78</td><td>21,825.92</td><td>21,771.91</td><td>0.77</td><td>1.5</td><td>7.9</td><td>79.6</td><td>11.1</td><td></td><td></td><td></td></tr><tr><td>3</td><td>I</td><td>7</td><td>21,675.50</td><td>21,827.56</td><td>21,735.44</td><td>0.75</td><td>3.6</td><td>2.6</td><td>1.0</td><td>69.8</td><td>11.4</td><td>0.0</td><td>11.7</td></tr><tr><td>4</td><td>ISQ</td><td>7</td><td>21,661.97</td><td>21,840.25</td><td>21,732.25</td><td>0.52</td><td>1.0</td><td>2.5</td><td>16.7</td><td>9.4</td><td>0.0</td><td>66.6</td><td>3.7</td></tr><tr><td>5</td><td>I</td><td>5</td><td>21,763.66</td><td>21,873.78</td><td>21,807.07</td><td>0.75</td><td>78.9</td><td>4.6</td><td>2.6</td><td>2.7</td><td>11.2</td><td></td><td></td></tr><tr><td>6</td><td>ISQ</td><td>3</td><td>21,779.88</td><td>21,874.26</td><td>21,817.08</td><td>0.76</td><td>81.7</td><td>7.9</td><td>10.4</td><td></td><td></td><td></td><td></td></tr><tr><td colspan="15">Anxiety</td></tr><tr><td>1</td><td>IS</td><td>3</td><td>22,587.22</td><td>22,665.87</td><td>22,618.22</td><td>0.52</td><td>13.2</td><td>59.0</td><td>27.8</td><td></td><td></td><td></td><td></td></tr><tr><td>2</td><td>IS</td><td>4</td><td>22,569.39</td><td>22,669.01</td><td>22,608.66</td><td>0.61</td><td>56.3</td><td>3.4</td><td>32.9</td><td>7.4</td><td></td><td></td><td></td></tr><tr><td>3</td><td>I</td><td>6</td><td>22,543.54</td><td>22,674.63</td><td>22,595.21</td><td>0.53</td><td>37.0</td><td>31.4</td><td>3.2</td><td>17.5</td><td>6.8</td><td>4.1</td><td></td></tr><tr><td>4</td><td>I</td><td>5</td><td>22,565.88</td><td>22,675.99</td><td>22,609.28</td><td>0.57</td><td>26.2</td><td>4.6</td><td>58.0</td><td>7.4</td><td>3.8</td><td></td><td></td></tr><tr><td>5</td><td>IS</td><td>5</td><td>22,562.23</td><td>22,682.83</td><td>22,609.77</td><td>0.61</td><td>56.6</td><td>2.1</td><td>30.5</td><td>2.4</td><td>8.4</td><td></td><td></td></tr><tr><td>6</td><td>ISQ</td><td>3</td><td>22,591.20</td><td>22,685.59</td><td>22,628.41</td><td>0.53</td><td>13.2</td><td>59.0</td><td>27.8</td><td></td><td></td><td></td><td></td></tr></tbody></table>

<figure><img src="image_4.png" /><figcaption>**Figure 1.** Predicted trajectories from selected growth mixture model of depression. Dashed horizontal lines represent symptomatic thresholds for depression (i.e., 8 and 10). The dashed vertical line depicts the moment unlockdown happened.</figcaption></figure>

tendency that steadily increase, reaching the symptomatic threshold before the date of unlockdown and never ceasing to worsen until the end of data collection. Individuals in cluster D2, referred to as 'persistent depression symptomatology' ($N=110, 7.9$%), have levels of depression above the symptomatic threshold in all waves with a slight initial increase until release from lockdown and a relative recovery, close to the symptomatic level in wave 5. This group represents people who experienced unlockdown negatively and were not relieved by it. Cluster D3, 'no depression symptomatology' ($N=1113, 79.6$%), includes people with non-symptomatic levels of depression throughout the whole data collection period. This group is also characterised by a slight decrease in depression levels over time. Finally, cluster D4, 'decreasing depression' ($N=155, 11.1$%), includes individuals who initially exhibited severe depression but whose symptoms progressively disappeared, and who reached non-symptomatic levels of depression in wave 5.

**Anxiety trajectories.** Table 3 shows the parsimony indices and class distributions of the six best-fitting growth mixture models of anxiety. Class trajectories of these models can be found in the supplemental materials (Fig. S2). The first three best-fitting models had random intercepts and linear slope parameters for three to five clusters. The best-fitting model had three clusters of adequate size (13.2%, 59.0%, 27.8%, respectively). The second model had four classes, three classes identical to the first model and one additional weakly populated class (3.1%). More generally, models 2–6 presented at least one small class. Although not fitting at best in terms of AIC and SABIC, we decided to retain the first model, with three classes, random intercept and slope, as it provides well distributed classes and few categories.
<table><caption>**Table 4.** Intercepts, linear and quadratic time parameters for each class of the selected growth mixture models. Time is coded in weeks.</caption><thead><tr><th></th><th>Parameter</th><th>b</th><th>SE</th><th>Wald</th><th>p</th></tr></thead><tbody><tr><td colspan="6"><strong>Depression class</strong></td></tr><tr><td rowspan="3">D1</td><td>Intercept</td><td>10.9</td><td>0.65</td><td>16.79</td><td>0</td></tr><tr><td>Linear time</td><td>191.97</td><td>17.83</td><td>10.77</td><td>0</td></tr><tr><td>Quadratic time</td><td>5.64</td><td>18.48</td><td>0.3</td><td>0.76</td></tr><tr><td rowspan="3">D2</td><td>Intercept</td><td>12.84</td><td>0.49</td><td>26.43</td><td>0</td></tr><tr><td>Linear time</td><td>-2.72</td><td>11.23</td><td>-0.24</td><td>0.81</td></tr><tr><td>Quadratic time</td><td>-41.93</td><td>9.73</td><td>-4.31</td><td>0</td></tr><tr><td rowspan="3">D3</td><td>Intercept</td><td>5.84</td><td>0.12</td><td>48.33</td><td>0</td></tr><tr><td>Linear time</td><td>-29.61</td><td>2.52</td><td>-11.75</td><td>0</td></tr><tr><td>Quadratic time</td><td>2.6</td><td>2.41</td><td>1.08</td><td>0.28</td></tr><tr><td rowspan="3">D4</td><td>Intercept</td><td>11.29</td><td>0.32</td><td>35.35</td><td>0</td></tr><tr><td>Linear time</td><td>-166.98</td><td>8.77</td><td>-19.05</td><td>0</td></tr><tr><td>Quadratic time</td><td>15.07</td><td>7.56</td><td>1.99</td><td>0.05</td></tr><tr><td colspan="6"><strong>Anxiety class</strong></td></tr><tr><td rowspan="3">A1</td><td>Intercept</td><td>9.19</td><td>0.31</td><td>29.29</td><td>0</td></tr><tr><td>Linear time</td><td>49.35</td><td>14.44</td><td>3.42</td><td>0</td></tr><tr><td>Quadratic time</td><td>-91.11</td><td>11.16</td><td>-8.17</td><td>0</td></tr><tr><td rowspan="3">A2</td><td>Intercept</td><td>5.36</td><td>0.19</td><td>27.49</td><td>0</td></tr><tr><td>Linear time</td><td>-5.88</td><td>5.2</td><td>-1.13</td><td>0.26</td></tr><tr><td>Quadratic time</td><td>-3.55</td><td>3.73</td><td>-0.95</td><td>0.34</td></tr><tr><td rowspan="3">A3</td><td>Intercept</td><td>11.67</td><td>0.26</td><td>44.72</td><td>0</td></tr><tr><td>Linear time</td><td>-47.19</td><td>9.71</td><td>-4.86</td><td>0</td></tr><tr><td>Quadratic time</td><td>-16.04</td><td>6.35</td><td>-2.52</td><td>0.01</td></tr></tbody></table>

<figure><img src="image_5.png" /><figcaption>**Figure 2.** Predicted trajectories from the selected growth mixture model of anxiety. Dashed horizontal lines represent symptomatic thresholds for anxiety (i.e., 8 and 10). The dashed vertical line depicts the moment of unlockdown.</figcaption></figure>

Figure 2 gives the predicted trajectories from the selected model. Table 4 presents the fixed parameter estimates for each class. The A1 cluster, 'anxiety reaction' (N = 184, 13.2%), represents people who started below the symptomatic threshold in anxiety, increased to symptomatic levels around unlockdown, and came back to their initial level two to three weeks later. Cluster A2, 'no anxiety symptomatology' (N = 826, 59.0%), includes people who presented no anxiety problems from the beginning to the end of the assessments. Cluster A3, named 'anxiety symptomatology with improvement' (N = 389, 27.8%), characterised people who started with high levels of anxiety—beyond the symptomatic threshold—and saw their anxiety slowly decrease, particularly after the end of lockdown.

**Multinomial logistic regressions.** Predicting depression trajectories. Table 5 presents the odds ratios from the multinomial logistic models of depression trajectories for classes D1, D2 and D4 with the no depres-
<table><caption>**Table 5.** Odds ratios of being in the depression symptomatology classes (Classes D1, D2, and D4) versus being in the no depression symptomatology class (D3) depending on psychological resources (Step 1) and psychological flexibility (Step 2), controlling for sociodemographic variables. Values in Step 1 and 2 columns are the odds ratios from the multinomial regression models predicting membership of the depression classes against no depression symptomatology class as the reference group (Class D3). The Z-O column gives the variable zero-ordered effects, with other variables not included in the model. *p* < 0.05, *p* < 0.01, *p* < 0.001.</caption><thead><tr><th rowspan="2">Predictor</th><th colspan="3">Class D1 (N=21)<br>Increasing depression</th><th colspan="3">Class D2 (N=110)<br>Persistent depression</th><th colspan="3">Class D4 (N=155)<br>Decreasing depression</th></tr><tr><th>Z-O</th><th>Step 1</th><th>Step 2</th><th>Z-O</th><th>Step 1</th><th>Step 2</th><th>Z-O</th><th>Step 1</th><th>Step 2</th></tr></thead><tbody><tr><td>Gratitude-world</td><td>1.03</td><td>1.06</td><td>1.08</td><td>0.73**</td><td>1.00</td><td>1.08</td><td>0.56***</td><td>0.99</td><td>1.09</td></tr><tr><td>Self-transcendence</td><td>1.21</td><td>1.31</td><td>1.24</td><td>0.98</td><td>1.34*</td><td>1.18</td><td>0.73***</td><td>1.15</td><td>1.02</td></tr><tr><td>Wisdom</td><td>0.95</td><td>0.93</td><td>1.35</td><td>0.47***</td><td>0.50***</td><td>1.03</td><td>0.26***</td><td>0.40***</td><td>0.89</td></tr><tr><td>Optimism</td><td>0.70*</td><td>0.60*</td><td>0.61*</td><td>0.69***</td><td>0.79*</td><td>0.83</td><td>0.53***</td><td>0.75**</td><td>0.77*</td></tr><tr><td>Self-efficacy</td><td>0.98</td><td>1.19</td><td>1.23</td><td>0.73**</td><td>1.16</td><td>1.22</td><td>0.41***</td><td>0.79*</td><td>0.86</td></tr><tr><td>Hope</td><td>0.80</td><td>0.84</td><td>0.97</td><td>0.64***</td><td>0.93</td><td>1.14</td><td>0.39***</td><td>0.68**</td><td>0.89</td></tr><tr><td>Gratitude-being</td><td>1.02</td><td>1.24</td><td>1.34</td><td>0.72***</td><td>0.98</td><td>1.14</td><td>0.67***</td><td>1.29*</td><td>1.41**</td></tr><tr><td>Peaceful disengagement</td><td>1.01</td><td>1.01</td><td>1.10</td><td>0.60***</td><td>0.65***</td><td>0.75*</td><td>0.40***</td><td>0.54***</td><td>0.60***</td></tr><tr><td>Psychological flexibility</td><td>0.58*</td><td></td><td>0.46</td><td>0.25***</td><td></td><td>0.27***</td><td>0.17***</td><td></td><td>0.33***</td></tr><tr><td>Psychological inflexibility</td><td>1.61</td><td></td><td>1.01</td><td>3.79***</td><td></td><td>1.31</td><td>7.41***</td><td></td><td>2.05**</td></tr><tr><td>Age</td><td>0.99</td><td>0.98</td><td>0.99</td><td>0.98*</td><td>0.98</td><td>0.99</td><td>0.97***</td><td>0.98*</td><td>0.99</td></tr><tr><td>Gender-female</td><td>0.67</td><td>0.57</td><td>0.45</td><td>2.02</td><td>1.84</td><td>1.42</td><td>3.34**</td><td>3.03*</td><td>2.39</td></tr><tr><td>Work-newly inactive</td><td>1.07</td><td>1.09</td><td>1.07</td><td>0.91</td><td>0.82</td><td>0.85</td><td>0.91</td><td>0.73</td><td>0.76</td></tr><tr><td>Work-partial teleworking</td><td>0.38</td><td>0.46</td><td>0.42</td><td>0.57</td><td>0.59</td><td>0.50</td><td>0.94</td><td>1.24</td><td>1.09</td></tr><tr><td>Work-working outside home</td><td>0.00</td><td>0.00***</td><td>0.00***</td><td>0.56</td><td>0.56</td><td>0.62</td><td>1.17</td><td>1.13</td><td>1.18</td></tr><tr><td>Work-inactive</td><td>0.61</td><td>0.66</td><td>0.61</td><td>0.70</td><td>0.69</td><td>0.64</td><td>1.00</td><td>0.93</td><td>0.91</td></tr><tr><td>Environment quality</td><td>1.00</td><td>1.10</td><td>1.14</td><td>0.78*</td><td>0.87</td><td>0.96</td><td>0.70***</td><td>0.79*</td><td>0.87</td></tr><tr><td>Relation quality</td><td>1.25</td><td>1.29</td><td>1.29</td><td>0.61***</td><td>0.67**</td><td>0.66**</td><td>0.68***</td><td>0.80</td><td>0.75*</td></tr><tr><td>Solitude</td><td>1.01</td><td>1.22</td><td>1.16</td><td>0.95</td><td>0.72</td><td>0.67</td><td>0.60*</td><td>0.45**</td><td>0.43**</td></tr></tbody></table>

sion symptomatology class (D3) as the reference group. All variables appeared to significantly predict at least one class membership in the zero-ordered models. Therefore, all variables were included in the subsequent models. Note that we do not report or discuss any significant effect on a particular class for a variable that was not significant or in the opposite direction in the respective zero-ordered model. The two steps in the table depict the two nested models with psychological resources and demographic variables in step 1 and adding psychological (in)flexibility in step 2. Odds ratios > 1 indicate that increases in the predictor variable make it likelier to be in the target class than in the reference class. In other words, a significant odds ratio < 1 indicates a protective effect of the predictor against belonging to the corresponding symptomatologic class. In contrast, a significant odds ratio > 1 indicates an adverse effect of that variable, implying a greater probability of belonging to the corresponding symptomatologic class. We only tested whether psychological flexibility would mediate the effects of a specific psychological resource on class membership when the effect of the psychological resource on psychological flexibility in step 1 was significant.

Let us consider the effects of the psychological resources for each of the symptomatologic clusters. Optimism appeared to be a protective variable in reducing the probability of belonging to the group of increasing depression (class D1) in step 1 and 2. Psychological flexibility did not appear as a significant protective variable in step 2 (it was marginally significant) and did not significantly mediate the effects of optimism (*z* = -1.29; *p* = 0.1). Note that as this class included very few people (N = 21), these results should be interpreted with caution.

In step 1, people were less likely to belong to the group with persistent depression symptomatology (class D2) with better initial scores of wisdom, optimism and peaceful disengagement. In step 2, wisdom and optimism effects were no longer significant, and psychological flexibility showed very strong protective effects. Mediation analysis revealed that psychological flexibility mediated class membership for wisdom (*z* = -6.15; *p* < 0.001), optimism (*z* = -1.84; *p* < 0.05) and peaceful disengagement (*z* = -4.35; *p* < 0.001).

Finally, membership of the decreasing depression group (class D4) in step 1 was negatively predicted by wisdom, optimism, self-efficacy, hope and peaceful disengagement. Only psychological flexibility, optimism and peaceful disengagement were significant protective variables in step 2. Again, the effects of wisdom (*z* = -5.44; *p* < 0.001), optimism (*z* = -1.81; *p* < 0.05), self-efficacy (*z* = -2.91; *p* < 0.01), hope (*z* = -4.66; *p* < 0.001) and peaceful disengagement (*z* = -4.35; *p* < 0.001) were significantly mediated by psychological flexibility. In contrast, initial levels of psychological inflexibility and gratitude of being increased the probability of being part of that group (but zero-ordered effect of gratitude of being was in the opposite direction). Psychological inflexibility appeared as a mediator for the effects of wisdom (*z* = -2.99; *p* < 0.01), hope (*z* = -2.64; *p* < 0.01) and peaceful disengagement (*z* = -2.59; *p* < 0.01) but not for optimism (*z* = -0.84; *p* = 0.2) and self-efficacy (*z* = -0.3; *p* = 0.38).
<table><caption>**Table 6.** Odds ratio of being in the anxiety symptomatology classes (Classes A1 and A3) versus being in the no anxiety symptomatology class (A2) depending on psychological resources (Step 1) and psychological flexibility (Step 2), controlling for sociodemographic variables. Values in Step 1 and 2 columns are the odds ratio from the logistic regression models predicting membership of the anxiety classes with no anxiety symptomatology class as the reference group (Class A2). The column Z-0 depicts the zero-ordered effects of the variable, with other variables not included in the model. *p* < 0.05, *p* < 0.01, *p* < 0.001.</caption><thead><tr><th rowspan="2">Predictor</th><th colspan="3">Class A1 (N=169)<br>Anxiety reaction</th><th colspan="3">Class A3 (N=317)<br>Anxiety with improvement</th></tr><tr><th>Z-O</th><th>Step 1</th><th>Step 2</th><th>Z-O</th><th>Step 1</th><th>Step 2</th></tr></thead><tbody><tr><td>Gratitude-world</td><td>0.94</td><td>1.17</td><td>1.20</td><td>0.43***</td><td>0.80*</td><td>0.84</td></tr><tr><td>Self-transcendence</td><td>1.16</td><td>1.43***</td><td>1.38**</td><td>0.73***</td><td>1.40***</td><td>1.28*</td></tr><tr><td>Wisdom</td><td>0.58***</td><td>0.54***</td><td>0.68*</td><td>0.27***</td><td>0.44***</td><td>0.73*</td></tr><tr><td>Optimism</td><td>0.72***</td><td>0.77**</td><td>0.78**</td><td>0.45***</td><td>0.78**</td><td>0.82*</td></tr><tr><td>Self-efficacy</td><td>0.80**</td><td>1.13</td><td>1.14</td><td>0.39***</td><td>0.83</td><td>0.84</td></tr><tr><td>Hope</td><td>0.67***</td><td>0.81</td><td>0.87</td><td>0.27***</td><td>0.56***</td><td>0.64***</td></tr><tr><td>Gratitude-being</td><td>0.79**</td><td>0.88</td><td>0.90</td><td>0.47***</td><td>0.85</td><td>0.87</td></tr><tr><td>Peaceful disengagement</td><td>0.77**</td><td>0.81*</td><td>0.85</td><td>0.37***</td><td>0.53***</td><td>0.58***</td></tr><tr><td>Psychological flexibility</td><td>0.51***</td><td></td><td>0.67**</td><td>0.22***</td><td></td><td>0.59***</td></tr><tr><td>Psychological inflexibility</td><td>1.91***</td><td></td><td>1.07</td><td>5.02***</td><td></td><td>1.68**</td></tr><tr><td>Age</td><td>0.99</td><td>1.00</td><td>1.00</td><td>0.98**</td><td>0.99</td><td>1.00</td></tr><tr><td>Gender-female</td><td>2.39**</td><td>1.92*</td><td>1.66</td><td>1.41</td><td>1.09</td><td>0.84</td></tr><tr><td>Work-newly inactive</td><td>0.72</td><td>0.70</td><td>0.69</td><td>1.04</td><td>0.75</td><td>0.75</td></tr><tr><td>Work-partial teleworking</td><td>0.72</td><td>0.75</td><td>0.72</td><td>0.78</td><td>0.85</td><td>0.81</td></tr><tr><td>Work-working outside home</td><td>0.43**</td><td>0.47*</td><td>0.47*</td><td>0.73</td><td>0.58*</td><td>0.59</td></tr><tr><td>Work-inactive</td><td>0.61*</td><td>0.59*</td><td>0.57*</td><td>1.15</td><td>0.92</td><td>0.87</td></tr><tr><td>Environment quality</td><td>0.86</td><td>0.82</td><td>0.83</td><td>0.59***</td><td>0.69***</td><td>0.72***</td></tr><tr><td>Relation quality</td><td>0.88</td><td>0.87</td><td>0.88</td><td>0.57***</td><td>0.71***</td><td>0.70**</td></tr><tr><td>Solitude</td><td>0.71</td><td>0.55*</td><td>0.54*</td><td>1.15</td><td>0.67</td><td>0.66</td></tr></tbody></table>

*Predicting anxiety trajectories.* Table 6 presents the odds ratios from the two stepped multinomial logistic models with no anxiety problem as the reference group. All variables appeared to significantly predict at least one class membership in the zero-ordered models and were thus included in steps 1 and 2.

Concerning membership of the anxiety reaction group (class A1), wisdom, optimism and peaceful disengagement appeared as protective variables in step 1. In step 2, wisdom effects decreased but was still significant, and optimism and peaceful disengagement effects did not change much. Psychological flexibility appeared to be protective and to significantly mediate the effects of wisdom (*z* = -2.7; *p* < 0.01) and peaceful disengagement (*z* = -2.45; *p* < 0.01) in the expected direction, and marginally for optimism (*z* = -1.52; *p* = 0.06). Psychological inflexibility was not related to membership in this class.

Participants were less likely to be in the anxiety symptomatology with improvement group (class A3) if they exhibited more wisdom, optimism, hope and peaceful disengagement in step 1. In step 2, psychological flexibility emerged as a significant protective variable and psychological inflexibility as a risk factor. Only the wisdom effect appeared to be substantially reduced when controlling for psychological (in)flexibility, although still significant. Psychological flexibility significantly mediated the effects of wisdom (*z* = -3.71; *p* < 0.001), optimism (*z* = -1.68; *p* < 0.05), hope (*z* = -3.42; *p* < 0.001) and peaceful disengagement (*z* = -3.16; *p* < 0.001). Psychological inflexibility significantly mediated the effects of wisdom (*z* = -3.02; *p* < 0.01), hope (*z* = -2.67; *p* < 0.01) and peaceful disengagement (*z* = -2.61; *p* < 0.01) in the expected direction, but not for optimism (*z* = -0.84; *p* = 0.2).

## Discussion

One of the main goals of this longitudinal study was to investigate patterns of individual differences in depression and anxiety in the context of an (un)lockdown process, and then to gain insight into the psychological resources that may promote resilience in such contexts. A preliminary step, therefore, was to test for the existence of such differences and the presence of identifiable patterns of resilience. The next step was to investigate the predictors of membership in the different models. We briefly discuss the results of the preliminary stage before turning to the question of underlying psychological resources.

**Most individuals were resilient to (un)lockdown (H1).** The majority of respondents presented resilient trajectories of depression (79.6%) and anxiety (59.0%) during (un)lockdown. This finding is consistent with previous studies on minimal-impact resilience, in that most people respond to PTE with resilience, with a higher mean prevalence across studies for depression (59.1%) than for anxiety (52.7%)⁸.

Respectively, 7.9% and 27.8% of participants exhibited chronic levels of depression and anxiety. In the chronic anxiety group, anxiety tended to decrease with time, with a steeper slope after lockdown. On the contrary,
chronic depression appeared to increase until the end of lockdown and then to decrease. Another group (11.1% of participants) manifested a drastic decrease in depression during the entire (un)lockdown period. Together, these results indicate that lockdown had a substantive impact on anxiety and depression levels in a significant proportion of people, most of them trending back to a baseline asymptomatic level at about the end of the lockdown or some time afterward. In other words, the lockdown might have had a negative impact on people's mental health, and when people were released from lockdown or anticipated it, they tended to recover. However, in absence of data recorded prior to the lockdown, caution should be exercised before concluding that it was the lockdown itself that had a particular impact on mental health¹⁸. The first lockdown was not predictable, but the pandemic situation seems to persist and new lockdowns may be imposed. An interesting research approach would be to assess people's mental health from the time a lockdown is announced until the lockdown has ended.

Interestingly, 1.5% of depression trajectories showed an increase in symptoms throughout the (un)lockdown process, and 13.2% of anxiety trajectories showed a rapid increase peaking just after unlockdown, followed by a rapid decrease. Analyses of daily activities showed that the participants in these two groups were less likely to work outside their home during the lockdown than telework from home. As a result, these individuals may have enjoyed the experience of lockdown, for example, by being free from external duties, so that the return to normal life became a stressful experience. These results confirm our hypothesis of individual differences in responses to unlockdown, some experiencing it as a stressful event and others not.

This leads to a potential limitation of the methodological approach used here. Some authors argued that resilience must be inferred as a function of the interaction between experienced stressors and mental health over time⁸⁶. Under such a view, one might not agree to characterise as 'resilient' people who displayed good mental health if they had not experienced lockdown as a stressful event in the first place. In contrast, our approach consisted in uniformly inferring resilience from good mental health, regardless of how individuals initially responded to the potential stressor constituted by the pandemic and lockdown situation. A similar approach was applied in a lockdown context³⁸. Our point is to consider that the ability to cope easily with stressful events is an integral part of resilience, which justifies studying the resources underlying this ability and led us to put the following hypothesis to the test. Additionally, the time frame of the study was limited to the first French (un)lockdown. As mentioned in the introduction, only minimal-impact resilience can be studied following acute PTEs—that is, the manner in which individuals tend to see their well-being as not impacted during the process¹². As the pandemic situation appears to be long-lasting, it would be important to evaluate emergent resilience also¹², i.e., how individuals reconfigure their habits and well-being in response to a lasting change in their environment.

**Positive psychological resources predict resilient trajectories (H2).** Wisdom, optimism, hope, peaceful disengagement and to a lesser degree self-efficacy consistently predicted membership of the resilient trajectories over the symptomatologic trajectories, even after controlling for demographic variables (see step 1 in Tables 5 and 6). The other psychological resources showed no effects when controlled by other resources. In most cases, wisdom appeared to be the strongest protective variable among the psychological resources and was associated with improved resilience against almost any other symptomatology classes. To our knowledge, no studies have been specifically dedicated to the evaluation of the impact of wisdom on mental health. Available evidence in the literature has shown that wisdom and well-being are positively related, with a stronger relationship when people are facing adversity⁴³. The second most powerful protective psychological resource was peaceful disengagement, which is a detached and tranquil attitude toward external accomplishments. It was related to resilience against almost all other symptom categories. However, this variable was associated with a greater decline in well-being over time during lockdown³⁹. This suggests that peaceful disengagement may be a good strategy for protecting mental health during (un)lockdown, probably because it helps people to disengage from stressful demands, but this comes at a cost to happiness, perhaps because disengagement reduces the opportunity to enjoy the achievements that could have been attained otherwise. Optimism was consistently associated with increased likelihood of membership in the resilience class over other classes, yet with a lower odds ratio magnitude than wisdom and peaceful disengagement. In particular, the depression with improvement class (D1) was only predicted by optimism. It should be noted that optimism has many denotations. Here, optimism was assessed as a disposition towards positive expectations. It was associated most with fewer depressive episodes, whereas optimism as a sense of invulnerability moderated the effect of life stress on anxiety⁸⁷. Hope was only significantly associated with resilience against the decreasing depression (D4) and the chronic anxiety (A3) trajectory classes. These two classes shared a high initial level of mental illness with a progressive improvement over time. We might assume that hope would be a better predictor of recovery than of resilience, meaning that hope would not protect mental health when the stressful situation has occurred when controlled by other resources, but it does help one to recover more quickly. The last protective resource found was self-efficacy, which significantly protected individuals from experimenting the decreasing depression trajectory (D4). This effect was fully mediated by psychological flexibility.

These findings are consistent with previous research showing that positive mental dispositions are strong predictors of resilient trajectories in the face of PTEs¹². Interestingly, the positive psychological resources we identified as protective were consistent with regard to their relationships to anxiety and depression, but draw a picture that is somewhat different from previous findings related to well-being during lockdown³⁹. In the latter study, emotional well-being was positively predicted by hope, gratitude of being and acceptance; psychological well-being by self-efficacy, personal wisdom and gratitude of being; social well-being only by gratitude toward the world and inner well-being by optimism, gratitude of being and acceptance. However, the earlier study did not attempt to predict resilient trajectories but only the main effects of these resources on well-being intercepts and slopes, as well as their moderation of the effects of perceived health and economic threats. To our knowledge, the present study is the first to jointly test the protective effects of a wide range of psychological resources in response
to PTEs with resilient trajectories as an outcome. A nice avenue of research would be to evaluate whether these psychological resources are consistently protective against other PTEs, as well as promoting other mental health or well-being trajectory outcomes. Indeed, we do not claim exhaustivity; some relevant positive psychological resources, such as mindfulness⁸⁸, self-compassion⁸⁹, etc., were not tested in this study.

Besides psychological resources, certain sociodemographic and environmental factors exhibited a significant positive relationship with resilience. Age, relationship quality and 'not being alone' were positively associated with resilience to depression, whereas being male, being alone and both environment and relationship quality were positively associated with resilience to anxiety (the strength of the effects varied however across symptomatologic classes). Working outside the home appeared as a risk factor for anxiety and depression trajectories. These results add to the literature, which persistently showed that trajectories are moderated by positive psychological resources, demographic characteristics and environmental factors⁸.

**Psychological flexibility mediates the protective effects of psychological resources (H3).** It has been hypothesized that psychological flexibility—the individual disposition to have the capacity to adapt one's psychological thoughts and behaviour to the situation—may mediate the protective effects of psychological resources. We have seen that psychological flexibility appeared to be consistently more powerfully related to resilient trajectories than psychological resources (see step 2 in Tables 5 and 6). The same was true for psychological inflexibility in the expected direction, but it was only significantly related to the decreasing depression and increasing anxiety groups (Classes D4 and A3).

All in all, psychological flexibility appeared to be an important mechanism mediating the relation between psychological resources and depression. However, the number of mediated effects depended on the psychological resources and the mental health outcome considered. We speak of total mediation when the respective psychological resource is not significant in step 2, and of partial mediation otherwise (see Tables 5 and 6).

Wisdom effects were always mediated by psychological flexibility, and fully meditated for the depression groups. Consistently, wisdom was the best predictor of psychological flexibility when controlling for all psychological resources (see Tables S1 and S2). Hope and optimism showed a similar pattern when considering the anxiety and depression classes separately. The mediation of psychological flexibility tended to be stronger with trajectories of depression than with anxiety. Optimism was significantly and fully mediated by psychological flexibility for the persistent and decreasing depression classes (D2 and D4). Hope and self-efficacy also appeared to be totally mediated for the decreasing depression class (D4). In contrast, optimism was not mediated for the increasing depression class (D1) and was only weakly and partially mediated for the anxiety symptomatology classes. This finding is in line with a previous study during the pandemic, where both optimism/pessimism and psychological flexibility significantly mediated coronavirus stress effects on a composite factor of psychological problems, including depression and anxiety⁶⁴. Hope was also only weakly and partially mediated with the improved anxiety class (A3). This suggests that psychological flexibility is an important mechanism in the relationship between optimism and hope with depression trajectories, but not so much for anxiety. Finally, peaceful disengagement was always significantly, but not totally and not strongly, mediated by psychological flexibility. Thus, the mediating mechanism explaining class membership may differ from one psychological resource to another. For some resources, such as wisdom, psychological flexibility mediation appears particularly relevant. Central to personal wisdom, as construed here, is the reflective dimension, which is the individual propensity to step back and look at phenomena from different perspectives⁷¹.

An alternative mechanism between psychological factors and minimal impact resilience, such as the unexplained optimism and hope effects on anxiety trajectories, is the positive appraisal of potential stressors⁹⁰. Accordingly, the positive reappraisal mechanism was found for optimism⁹¹, hope⁹² and gratitude⁹³. Also, mindfulness meditation has been shown to be robustly associated with positive functioning through positive reappraisal⁹⁴,⁹⁵. The combination of the two mediation mechanisms might explain many of the effects of psychological resources. For example, the protective effects of hope on post-traumatic growth in adolescents following an earthquake were found to be mediated by both acceptance and positive reappraisal⁹⁶. However, we are not aware of a study evaluating jointly the two mechanisms with multiple psychological resources, and more longitudinal studies will be needed to better understand the mechanism of resilience factors.

These results are in line with other Covid-19 and lockdown studies that have shown a predominant mediating role of psychological flexibility for the preservation of mental health⁶⁰,⁹⁷. The proposed mediation mechanism was very robust, with most protective effects of psychological resources mediated by psychological flexibility. Psychological inflexibility appeared generally less related to mental health trajectories and mediated the effects of psychological resources to a lesser extent than psychological flexibility. Psychological inflexibility and flexibility are mutually related but independent processes⁵⁶,⁹⁸. According to the Hexaflex model, psychological in/flexibility is respectively underpinned by six interdependent core processes (i.e., 12 dimensions). In this article, the two scales used to assess psychological in/flexibility (i.e., AFQ and AAQ) measured distinct processes: experiential avoidance and cognitive fusion for AFQ, and acceptance and action for AAQ. In the literature, studies showed different implications of these six core dimensions depending on the measure used and the outcomes explored⁹⁸. In addition, these two measures are rarely used simultaneously, which makes it difficult for researchers to distinguish which dimension of in/flexibility influences trajectories of mental health, and which more distal factors (psychological resources in our case) can be involved in this relationship. Our findings are consistent with the distinct role of psychological flexibility and inflexibility and with that of acceptance and action, more than experiential avoidance and cognitive fusion, as protective processes, potentializing the role of the positive psychological resources assessed. Moreover, the majority of our sample followed a resiliency trajectory, suggesting the predominance of a psychological flexibility pattern.
Some researchers have explored the role of psychological in/flexibility on mental health and the factors promoting the different dimensions of psychological in/flexibility. Mindfulness, for example, appears to be one of the resources that can buffer cognitive fusion and promote mental health⁹⁹. Self-compassion also plays a distal role on depressive symptoms through the avoidance process¹⁰⁰. In the case of the Covid-19 pandemic, a mediating role of psychological flexibility has been found between the disposition to be anxious about one's health and health outcomes (anxiety and depression)¹⁰¹. The measure of each psychological in/flexibility dimension and their respective determinants in explaining mental health trajectories appears to be particularly relevant to discriminate what specific treatments can be proposed according to specific mental health trajectories. A global catastrophic event such as the Covid-19 pandemic highlights the importance of exploring the proximal and distal mechanisms explaining interindividual differences in susceptibility to lockdown situations. Concretely, the study by Kashdan¹⁰² is an example consistent with the idea that trauma-related distress can generate health benefits (i.e., post-traumatic growth and meaning) only if individuals do not avoid their thoughts, feelings and sensations following the trauma. Consequently, identifying psychological factors that would reduce experiential avoidance could be a promising avenue to design interventions to foster mental health.

Some limitations of the mediation inference remain to be noted. Psychological resources and flexibility were measured simultaneously in the first wave. This design prevented us from inferring causality and might alter the true longitudinal mediation estimates¹⁰³. For a better test of the mediation mechanism, the independent, dependent and mediating variables should all be measured at least three times, allowing for the estimation of the lagged paths. A more general limitation of this study is that our sample was mainly composed of female and French participants, preventing generalisability of the results to the entire population. It would be important to see if the results could be replicated with more representative samples and other cultures as well.

## Conclusion

In this longitudinal study during and after the first French lockdown, we investigated the protective roles of psychological resources and flexibility on mental health trajectories. Results have shown that the majority of people displayed resilient depression and anxiety trajectories. Five psychological resources, namely wisdom, optimism, self-efficacy, hope and peaceful disengagement, predicted membership of the resilient class, and many of these protective effects appeared to be mediated, at least partially, by psychological flexibility. This study showed how important, in a real situation, individuals' positive psychological dispositions are for the preservation of mental health in lockdown. The results may be relevant to the prevention of mood disorders in such situations. It is our hope that this study has pointed to the necessity of promoting the development of psychological resources in normal times so that mental health can be protected in difficult times to come.

## Data availability

The datasets generated during and/or analysed during the current study are available in the Open Science Network repository, https://osf.io/q2e6h/.

Received: 11 May 2021; Accepted: 4 May 2022

Published online: 23 June 2022

## References

1. Vindegaard, N. & Benros, M. E. COVID-19 pandemic and mental health consequences: Systematic review of the current evidence. *Brain Behav. Immun.* **89**, 531–542 (2020).

2. Flaxman, S. et al. Estimating the effects of non-pharmaceutical interventions on COVID-19 in Europe. *Nature* **584**, 257–261 (2020).

3. Brodeur, A., Clark, A. E., Fleche, S. & Powdthavee, N. Assessing the impact of the coronavirus lockdown on unhappiness, loneliness, and boredom using google trends (2020).

4. Greyling, T., Rossouw, S. & Adhikari, T. A tale of three countries: How did Covid-19 lockdown impact happiness? https://www.econstor.eu/bitstream/10419/221748/1/GLO-DP-0584.pdf (2020).

5. Chen, B., Sun, J. & Feng, Y. How have COVID-19 isolation policies affected young people's mental health? Evidence from Chinese college students. *Front. Psychol.* **11**, 1529 (2020).

6. Rossi, R. et al. COVID-19 pandemic and lockdown measures impact on mental health among the general population in Italy. *Front. Psychiatry* **11**, 790 (2020).

7. White, R. G. & Boor, C. V. D. Impact of the COVID-19 pandemic and initial period of lockdown on the mental health and well-being of adults in the UK. *BJPsych Open* **6**, e90 (2020).

8. Galatzer-Levy, I. R., Huang, S. H. & Bonanno, G. A. Trajectories of resilience and dysfunction following potential trauma: A review and statistical evaluation. *Clin. Psychol. Rev.* **63**, 41–55 (2018).

9. McCleary, J. & Figley, C. R. Resilience and trauma: Expanding definitions, uses, and contexts. *Traumatology* **23**, 1–3 (2017).

10. Luthar, S., Cicchetti, D. & Becker, B. The construct of resilience: A critical evaluation and guidelines for future work. *Child Dev.* **71**(3), 543–562 (2000).

11. Youssef, C. M. & Luthans, F. Positive organizational behavior in the workplace. *J. Manag.* **33**, 774–800 (2007).

12. Bonanno, G. A. & Diminich, E. D. Annual research review: Positive adjustment to adversity—Trajectories of minimal-impact resilience and emergent resilience. *J. Child Psychol. Psychiatry* **54**, 378–401 (2012).

13. Bonanno, G. A. Loss, trauma, and human resilience: Have we underestimated the human capacity to thrive after extremely aversive events? *Am. Psychol.* **59**(1), 20–28 (2004).

14. Pierce, M. et al. Mental health before and during the COVID-19 pandemic: A longitudinal probability sample survey of the UK population. *Lancet Psychiatry* **7**, 883–892 (2020).

15. Shanahan, L. et al. Emotional distress in young adults during the COVID-19 pandemic: Evidence of risk and resilience from a longitudinal cohort study. *Psychol. Med.* **52**, 1–10. https://doi.org/10.1017/S003329172000241X (2020).

16. Brooks, S. et al. The psychological impact of quarantine and how to reduce it: Rapid review of the evidence. *Lancet (London, England)* **395**, 912–920 (2020).

17. Peretti-Watel, P. et al. Attitudes about COVID-19 lockdown among general population, France, March 2020. *Emerg. Infect. Dis.* **27**, 301–303 (2021).
18. Kalisch, R. et al. The resilience framework as a strategy to combat stress-related disorders. *Nat. Hum. Behav.* **1**, 784–790 (2017).

19. Bonanno, G. A., Romero, S. A. & Klein, S. I. The temporal elements of psychological resilience: An integrative framework for the study of individuals, families, and communities. *Psychol. Inq.* **26**, 139–169 (2015).

20. Banks, J., Fancourt, D. & Xiaowei, X. Mental health and the COVID-19 pandemic. In *World Happiness Report 2021* (eds Helliwell, J. F. et al.) 108–130 (Sustainable Development Solutions Network, 2021).

21. Fancourt, D., Steptoe, A. & Bu, F. Trajectories of anxiety and depressive symptoms during enforced isolation due to COVID-19: Longitudinal analyses of 36,520 adults in England. *medRxiv*. https://doi.org/10.1101/2020.06.03.20120923 (2020).

22. Long, K. & Bonanno, G. A. An integrative temporal framework for psychological resilience. In *The Biology of Early Life Stress* (eds Noll, J. G. & Shalev, I.) 121–146 (Springer International Publishing, 2018). https://doi.org/10.1007/978-3-319-72589-5_8.

23. Rzewuska, M., Mallen, C. D., Strauss, V. Y., Belcher, J. & Peat, G. One-year trajectories of depression and anxiety symptoms in older patients presenting in general practice with musculoskeletal pain: A latent class growth analysis. *J. Psychosom. Res.* **79**, 195–201 (2015).

24. Rhebergen, D. et al. Course trajectories of unipolar depressive disorders identified by latent class growth analysis. *Psychol. Med.* **42**, 1383–1396 (2012).

25. Rhebergen, D. et al. Older age is associated with rapid remission of depression after electroconvulsive therapy: A latent class growth analysis. *Am. J. Geriatr. Psychiatry* **23**, 274–282 (2015).

26. Skipstein, A., Janson, H., Stoolmiller, M. & Mathiesen, K. S. Trajectories of maternal symptoms of anxiety and depression. A 13-year longitudinal study of a population-based sample. *BMC Public Health* **10**, 589–589 (2010).

27. Bonanno, G. A. et al. Resilience to loss and chronic grief: A prospective study from preloss to 18-months postloss. *J. Pers. Soc. Psychol.* **83**, 1150–1164 (2002).

28. Bonanno, G. A. & Jost, J. T. Conservative shift among high-exposure survivors of the september 11th terrorist attacks. *Basic Appl. Soc. Psychol.* **28**, 311–323 (2006).

29. Chen, S., Bagrodia, R., Pfeffer, C. C., Meli, L. & Bonanno, G. A. Anxiety and resilience in the face of natural disasters associated with climate change: A review and methodological critique. *J. Anxiety Disord.* **67**, 102297 (2020).

30. Chen, S. & Bonanno, G. A. Psychological adjustment during the global outbreak of COVID-19: A resilience perspective. *Psychol. Trauma Theory Res. Pract. Policy* **12**, S51–S54 (2020).

31. Compton, W. C. & Hoffman, E. *Positive Psychology* (SAGE Publications, 2019).

32. Peterson, C. et al. *Character Strengths and Virtues: A Handbook and Classification* Vol. 1 (Oxford University Press, 2004).

33. Sin, N. L. & Lyubomirsky, S. Enhancing well-being and alleviating depressive symptoms with positive psychology interventions: A practice-friendly meta-analysis. *J. Clin. Psychol.* **65**, 467–487 (2009).

34. Bolier, L. et al. Positive psychology interventions: A meta-analysis of randomized controlled studies. *BMC Public Health* **13**, 119–119 (2013).

35. Avey, J. B., Wernsing, T. S. & Mhatre, K. A longitudinal analysis of positive psychological constructs and emotions on stress, anxiety, and well-being. *J. Leadersh. Organ. Stud.* **18**, 216–228 (2011).

36. Sun, S., Goldberg, S. B., Lin, D., Qiao, S. & Operario, D. Psychiatric symptoms, risk, and protective factors among university students in quarantine during the COVID-19 pandemic in China. *Glob. Health* **17**, 1–14 (2021).

37. Vos, L. M. W., Habibović, M., Nykliček, I., Smeets, T. & Mertens, G. Optimism, mindfulness, and resilience as potential protective factors for the mental health consequences of fear of the coronavirus. *Psychiatry Res.* **300**, 113927 (2021).

38. Veer, I. M. et al. Psycho-social factors associated with mental resilience in the corona lockdown. *Transl. Psychiatry* **11**, 1–11 (2021).

39. Pellerin, N. & Raufaste, E. Psychological resources protect well-being during the COVID-19 pandemic: A longitudinal study during the French lockdown. *Front. Psychol.* **11**, 3200 (2020).

40. Bandura, A. Self-efficacy. In *The Corsini Encyclopedia of Psychology* (eds Weiner, I. B. & Edward Craighead, W.) 1–3 (American Cancer Society, 2010). https://doi.org/10.1002/9780470479216.corpsy0836.

41. Carver, C. S., Scheier, M. F. & Segerstrom, S. C. Optimism. *Clin. Psychol. Rev.* **30**, 879–889 (2010).

42. Snyder, C. R. Hope theory: Rainbows in the mind. *Psychol. Inq.* **13**, 249–275 (2002).

43. Ardelt, M., Pridgen, S. & Nutter-Pridgen, K. L. Wisdom as a personality type. In *The Cambridge Handbook of Wisdom* (eds Sternberg, R. J. & Glück, J.) 144–161 (Cambridge University Press, 2019). https://doi.org/10.1017/9781108568272.008.

44. Levenson, M. R., Jennings, P. A., Aldwin, C. M. & Shiraishi, R. W. Self-transcendence: Conceptualization and measurement. *Int. J. Aging Hum. Dev.* **60**, 127–143 (2005).

45. McCullough, M. E., Emmons, R. A. & Tsang, J.-A. The grateful disposition: A conceptual and empirical topography. *J. Pers. Soc. Psychol.* **82**, 112 (2002).

46. Kan, C., Karasawa, M. & Kitayama, S. Minimalist in style: Self, identity, and well-being in Japan. *Self Identity* **8**, 300–317 (2009).

47. Lindsay, E. K. & Creswell, J. D. Mechanisms of mindfulness training: Monitor and acceptance theory (MAT). *Clin. Psychol. Rev.* **51**, 48–59 (2017).

48. Kashdan, T. B. & Rottenberg, J. Psychological flexibility as a fundamental aspect of health. *Clin. Psychol. Rev.* **30**(7), 865–878 (2010).

49. Bonanno, G. A. & Burton, C. L. Regulatory flexibility. *Perspect. Psychol. Sci.* **8**, 591–612 (2013).

50. Hayes, S., Luoma, J., Bond, F., Masuda, A. & Lillis, J. Acceptance and commitment therapy: Model, processes and outcomes. *Behav. Res. Ther.* **44**(1), 1–25 (2006).

51. Bond, F. et al. Preliminary psychometric properties of the acceptance and action questionnaire-II: A revised measure of psychological inflexibility and experiential avoidance. *Behav. Ther.* **42**, 676–688 (2011).

52. A-Tjak, J. G. L. et al. A meta-analysis of the efficacy of acceptance and commitment therapy for clinically relevant mental and physical health problems. *Psychother. Psychosom.* **84**, 30–36 (2014).

53. Crasta, D., Daks, J. S. & Rogge, R. D. Modeling suicide risk among parents during the COVID-19 pandemic: Psychological inflexibility exacerbates the impact of COVID-19 stressors on interpersonal risk factors for suicide. *J. Context. Behav. Sci.* **18**, 117–127 (2020).

54. Bryan, C., Ray-Sannerud, B. & Heron, E. A. Psychological flexibility as a dimension of resilience for posttraumatic stress, depression, and risk for suicidal ideation among air force personnel. *J. Context. Behav. Sci.* **4**, 263–268 (2015).

55. Masuda, A. & Tully, E. C. The role of mindfulness and psychological flexibility in somatization, depression, anxiety, and general psychological distress in a nonclinical college sample. *J. Evid. Based Complement. Altern. Med.* **17**, 66–71 (2012).

56. Grégoire, S. et al. Validation of the English and French versions of the multidimensional psychological flexibility inventory short form (MPFI-24). *J. Context. Behav. Sci.* **18**, 99–110 (2020).

57. Marshall, E. & Brockman, R. The relationships between psychological flexibility, self-compassion, and emotional well-being. *J. Cogn. Psychother.* **30**, 60–72 (2016).

58. Wesebe, H., Lieb, R., Meyer, A., Hofer, P. & Gloster, A. The link between stress, well-being, and psychological flexibility during an acceptance and commitment therapy self-help intervention. *Int. J. Clin. Health Psychol. IJCHP* **18**, 60–68 (2018).

59. Gentili, C. et al. Psychological flexibility as a resilience factor in individuals with chronic pain. *Front. Psychol.* **10**, 2016 (2019).

60. McCracken, L. M., Badinlou, F., Buhrman, M. & Brocki, K. C. The role of psychological flexibility in the context of COVID-19: Associations with depression, anxiety, and insomnia. *J. Context. Behav. Sci.* **19**, 28–35 (2021).
61. Woldgabreal, Y., Day, A. & Ward, T. Linking positive psychology to offender supervision outcomes. *Crim. Justice Behav.* **43**, 697–721 (2016).

62. Uğur, E., Kaya, Ç. & Tanhan, A. W. Psychological inflexibility mediates the relationship between fear of negative evaluation and psychological vulnerability. *Curr. Psychol. (New Brunswick, N.J.)* **40**, 1–13 (2020).

63. Makriyianis, H. M. *et al*. Psychological inflexibility mediates the relationship between adverse childhood experiences and mental health outcomes. *J. Context. Behav. Sci.* **14**, 82–89 (2019).

64. Arslan, G., Yıldırım, M., Tanhan, A., Buluş, M. & Allen, K.-A. Coronavirus stress, optimism–pessimism, psychological inflexibility, and psychological health: Psychometric properties of the coronavirus stress measure. *Int. J. Mental Health Addict.* **19**, 1–17 (2020).

65. Arslan, G. & Allen, K.-A. Exploring the association between coronavirus stress, meaning in life, psychological flexibility, and subjective well-being. *Psychol. Health Med.* **27**, 1–12. https://doi.org/10.1080/13548506.2021.1876892 (2021).

66. Wąsowicz, G., Mizak, S., Krawiec, J. & Białaszek, W. Mental health, well-being, and psychological flexibility in the stressful times of the COVID-19 pandemic. *Front. Psychol.* **12**, 649795 (2021).

67. Zigmond, A. S. & Snaith, R. P. The hospital anxiety and depression scale. *Acta Psychiatr. Scand.* **67**, 361–370 (1983).

68. Razavi, D., Delvaux, N., Farvacques, C. & Robaye, E. Validation de la version française du HADS dans une population de patients cancéreux hospitalisés. *Rev. Psychol. Appl.* **39**, 295–308 (1989).

69. Lorenz, T., Beer, C., Pütz, J. & Heinitz, K. Measuring psychological capital: Construction and validation of the Compound PsyCap scale (CPC-12). *PLoS ONE* **11**, 1–17 (2016).

70. Thomas, M. L., Bangen, K. J., Ardelt, M. & Jeste, D. V. Development of a 12-item abbreviated three-dimensional wisdom scale (3D-WS-12): Item selection and psychometric properties. *Assessment* **24**, 71–82 (2017).

71. Ardelt, M. Empirical assessment of a three-dimensional wisdom scale. *Res. Aging* **25**, 275–324 (2003).

72. Koller, I., Levenson, M. R. & Glück, J. What do you think you are measuring? A mixed-methods procedure for assessing the content validity of test items and theory-based scaling. *Front. Psychol.* **8**, 126 (2017).

73. Shankland, R. & Martin-Krumm, C. Évaluer le fonctionnement optimal: Échelles de psychologie positive validées en langue française. *Prat. Psychol.* **3867**, 103–204 (2012).

74. Monestès, J.-L., Villatte, M., Mouras, H., Loas, G. & Bond, F. W. Traduction et validation française du questionnaire d'acceptation et d'action (AAQ-II). *Eur. Rev. Appl. Psychol.* **59**, 301–308 (2009).

75. Schmalz, J. E. & Murrell, A. R. Measuring experiential avoidance in adults: The avoidance and fusion questionnaire. *Int. J. Behav. Consult. Ther.* **6**, 198–213 (2010).

76. Corman, M., Dambrun, M., Bay, J. & Tour, R. D. L. French adaptation and analysis of psychometric properties of the avoidance and fusion questionnaire (AFQ) in an adult sample. *Ann. Med. Psychol.* **177**, 358–363 (2018).

77. R Core Team. *R: A Language and Environment for Statistical Computing* (R Foundation for Statistical Computing, 2020).

78. Proust-Lima, C., Philippis, V. & Liquet, B. Estimation of extended mixed models using latent classes and latent processes: The R package lcmj. *J. Stat. Softw.* **78**, 1–56 (2017).

79. Palardy, G. & Vermunt, J. Multilevel growth mixture models for classifying groups. *J. Educ. Behav. Stat.* **35**, 532–565 (2010).

80. Berlin, K. S., Parra, G. R. & Williams, N. A. An introduction to latent variable mixture modeling (part 2): Longitudinal latent class growth analysis and growth mixture models. *J. Pediatr. Psychol.* **39**, 188–203 (2013).

81. Venables, W. N. & Ripley, B. D. *Modern Applied Statistics with s* (Springer, 2002).

82. Fox, J. & Weisberg, S. *An R Companion to Applied Regression* (Sage, 2019).

83. Iacobucci, D. Mediation analysis and categorical variables: The final frontier. *J. Consum. Psychol.* **22**, 582–594 (2012).

84. Baron, R. M. & Kenny, D. The moderator-mediator variable distinction in social psychological research: Conceptual, strategic, and statistical considerations. *J. Pers. Soc. Psychol.* **51**(6), 1173–1182 (1986).

85. O'Brien, R. M. A caution regarding rules of thumb for variance inflation factors. *Qual. Quant.* **41**, 673–690 (2007).

86. Kalisch, R. *et al*. A generic solution for the operationalization and measurement of resilience and resilience processes in longitudinal observations: Rationale and basic design of the MARP and LORA studies. https://doi.org/10.31234/osf.io/jg238 (2020).

87. Kleiman, E. M. *et al*. Optimism and well-being: A prospective multi-method and multi-dimensional examination of optimism as a resilience factor following the occurrence of stressful life events. *Cogn. Emot.* **31**, 269–283 (2015).

88. Hanley, A. W., Garland, E. L. & Tedeschi, R. G. Relating dispositional mindfulness, contemplative practice, and positive reappraisal with posttraumatic cognitive coping, stress, and growth. *Psychol. Trauma Theory Res. Pract. Policy* **9**, 526–536 (2017).

89. Karatzias, T. *et al*. Is self-compassion a worthwhile therapeutic target for ICD-11 complex PTSD (CPTSD)? *Behav. Cogn. Psychother.* **47**, 257–269 (2018).

90. Kalisch, R., Müller, M. B. & Tüscher, O. A conceptual framework for the neurobiological study of resilience. *Behav. Brain Sci.* **38**, e92 (2014).

91. Slattery, É., McMahon, J. & Gallagher, S. Optimism and benefit finding in parents of children with developmental disabilities: The role of positive reappraisal and social support. *Res. Dev. Disabil.* **65**, 12–22 (2017).

92. Laslo-Roth, R., George-Levi, S. & Margalit, M. Social participation and posttraumatic growth: The serial mediation of hope, social support, and reappraisal. *J. Community Psychol.* https://doi.org/10.1002/jcop.22490 (2020).

93. Bryan, J. L., Young, C. M., Lucas, S. & Quist, M. C. Should I say thank you? Gratitude encourages cognitive reappraisal and buffers the negative impact of ambivalence over emotional expression on depression. *Personal. Individ. Differ.* **120**, 253–258 (2018).

94. Hanley, A. W. *et al*. Modeling the mindfulness-to-meaning theory mindful reappraisal hypothesis: Replication with longitudinal data from a randomized controlled study. *Stress. Health* https://doi.org/10.1002/smi.3035 (2021).

95. Garland, E. L., Kiken, L. G., Faurot, K., Palsson, O. & Gaylord, S. A. Upward spirals of mindfulness and reappraisal: Testing the mindfulness-to-meaning theory with autoregressive latent trajectory modeling. *Cogn. Ther. Res.* **41**, 381–392 (2016).

96. Zhou, X. & Wu, X. The mediating roles of acceptance and cognitive reappraisal in the relation between hope and posttraumatic growth among adolescents after the yaan earthquake. *J. Pac. Rim Psychol.* **12**, e25 (2018).

97. Hernández-López, M., Cepeda-Benito, A., Díaz-Pavón, P. & Rodriguez-Valverde, M. Psychological inflexibility and mental health symptoms during the COVID-19 lockdown in Spain: A longitudinal study. *J. Context. Behav. Sci.* **19**, 42–49 (2021).

98. Rolffs, J. L., Rogge, R. D. & Wilson, K. G. Disentangling components of flexibility via the hexaflex model: Development and validation of the multidimensional psychological flexibility inventory (MPFI). *Assessment* **25**, 458–482 (2016).

99. Nitzan-Assayag, Y., Aderka, I. M. & Bernstein, A. Dispositional mindfulness in trauma recovery: Prospective relations and mediating mechanisms. *J. Anxiety Disord.* **36**, 25–32 (2015).

100. Krieger, T., Altenstein, D., Baettig, I., Doerig, N. & Holtforth, M. G. Self-compassion in depression: Associations with depressive symptoms, rumination, and avoidance in depressed outpatients. *Behav. Ther.* **44**, 501–513 (2013).

101. Landi, G., Pakenham, K. I., Boccolini, G., Grandi, S. & Tossani, E. Health anxiety and mental health outcome during COVID-19 lockdown in Italy: The mediating and moderating roles of psychological flexibility. *Front. Psychol.* **11**, 2195 (2020).

102. Kashdan, T. B. & Kane, J. Q. Post-traumatic distress and the presence of post-traumatic growth and meaning in life: Experiential avoidance as a moderator. *Person. Individ. Differ.* **50**, 84–89 (2011).

103. Maxwell, S. E., Cole, D. A. & Mitchell, M. A. Bias in cross-sectional analyses of longitudinal mediation: Partial and complete mediation under an autoregressive model. *Multivar. Behav. Res.* **46**, 816–841 (2011).
**Author contributions**

M.D., N.P. and E.R. conceptualized the study, and all authors designed the study protocol. N.P. collected and analysed the data. N.P., E.R., and M.D. interpreted the data to select the ideal growth mixture model. All authors interpreted the main results. N.P. wrote the first draft of manuscript. E.R., M.C., F.T., and M.D. revised the manuscript. All authors approved the final version of the manuscript.

**Competing interests**

The authors declare no competing interests.

**Additional information**

**Supplementary Information** The online version contains supplementary material available at https://doi.org/10.1038/s41598-022-14572-5.

**Correspondence** and requests for materials should be addressed to N.P.

**Reprints and permissions information** is available at www.nature.com/reprints.

**Publisher's note** Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

<figure><img src="image_6.png" /></figure>

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

© The Author(s) 2022