What this document is about
For your researchThis guide follows one example from the first section to the last, so that you can see what each section adds when it is applied to the same data. The example topic is emotion regulation (ER), chosen because it is one of the most widely studied topics in psychology of the past decade and is familiar to most readers. PubMed alone lists more than 18,000 articles with "emotion regulation" in their title or abstract, and the yearly count rose from fewer than 20 in 2000 to about 2,500 in 2025 (PubMed search, October 2026). ER is studied in developmental, social, personality, and clinical psychology and in cognitive and affective neuroscience (Rahaman et al., 2024), and in organizational psychology, for example in research on emotional labor (Grandey, 2000). Our example is simple: 150 adults answer a short smartphone questionnaire six times a day for 30 days, reporting how much they used one regulation strategy, reappraisal, and how much positive affect (PA) and negative affect (NA) they feel (Section 1).
The minimum you need to know about ER. Emotion regulation refers to the processes by which people influence which emotions they have, when they have them, and how they experience and express them (Gross, 1998). People do this with cognitive strategies, such as reappraisal (rethinking what a situation means, for example "this criticism is useful feedback"), and with behavioral strategies, such as seeking support or leaving a situation, most often to reduce negative affect or increase positive affect. Whether a strategy helps depends on the person and the situation. In daily life, regulation and emotion also influence each other: distress tends to trigger regulation, and regulation may then reduce distress. Because this two-way relationship unfolds over time, ER is a useful example for the models in this guide.
Imagine that you repeatedly measure emotion regulation (ER), positive affect (PA), and negative affect (NA) in everyday life. You want to know whether using an emotion regulation strategy is associated with people's emotions, whether it predicts their emotions later, whether people differ in these relationships, and whether emotions and regulation influence one another over time.
Several methods could be relevant:
- Multilevel modeling (MLM), including mixed-effects regression using R's
lmer(). - Multilevel structural equation modeling (MSEM).
- Random-intercept cross-lagged panel modeling (RI-CLPM).
- Dynamic structural equation modeling (DSEM).
The capabilities of these four methods overlap more than their names suggest. An appropriately specified mixed model can include lagged effects, an MSEM can be dynamic, and a simple RI-CLPM can express almost the same within-person process as a constrained DSEM. For this reason, the guide compares the methods by what each statistical model estimates.
Five distinctions organize the guide:
- Contemporaneous associations versus temporal dependencies: Are two variables associated at the same occasion, or does an earlier observation help predict a later one?
- Within-person versus between-person differences: Are we comparing a person with themselves over time, or comparing different people?
- Common versus person-specific temporal relationships: Must an ER-NA relationship have the same coefficient for everyone, or can that coefficient vary between individuals?
- Separate equations versus a dynamic system: Do we model NA alone, or the jointly evolving relationships among ER, PA, and NA?
- Measurement error and temporal covariance: How do inaccurate measures, correlated shocks, and serial dependence influence what the coefficients mean and how uncertain we are about them?
Time is a sixth, practical concern throughout the guide. EMA prompts are not equally spaced (there is a long gap every night), and moments are nested within days. Section 14 treats unequal spacing, and Section 15 introduces three-level DSEM, which became available in Mplus 9 (2025) and was extended in Mplus 9.1 (2026). Section 13 collects practical advice for estimating DSEM in the current version of Mplus. Section 10.8 explains, through the Kalman filter, how DSEM handles missed and unevenly spaced prompts. A second tab at the top of this page, the walkthrough tab, presents the supplementary materials of the DSEM chapter by Hamaker et al. (2023) in simplified form, translated into our emotion regulation example. Many explanations also draw on chapters of The Open Handbook of Experience Sampling Methodology (Myin-Germeys & Kuppens, 2026). ESM (experience sampling method) is another name for EMA, and the two terms are used largely interchangeably.
The discussion gradually introduces formal notation. All numerical observations and coefficient estimates are invented for teaching purposes and are not empirical findings. Where the guide reports a calculation or a simulation, the numbers were computed, and the assumptions behind them are stated next to them.
1Our hypothetical emotion regulation study
For your researchEvery example in the guide uses this study: 150 people answering six short questionnaires a day for 30 days about reappraisal, PA, and NA.
We recruit 150 participants and assess them six times a day for 30 days using ecological momentary assessment (EMA). Assuming complete participation, that yields:
In plain EnglishSix questionnaires a day for 30 days gives each person up to 180 answers.
Across the sample, that is 27,000 person-occasion records. Real studies will usually have some missing prompts. In two meta-analyses, participants answered about 79% of prompts on average (Cloos et al., 2026, p. 63), so a realistic expectation for our design is roughly 140 answered prompts per person.
Strictly speaking, these data have three levels: prompts are nested within days, and days are nested within persons. Most of this guide follows common practice and treats the data as two-level (occasions within persons). Section 15 explains what is lost when the day level is ignored and how three-level DSEM handles it.
EMA data compared with other research designs
For your researchAn EMA design can show what a one-time survey cannot. Because you measure the same people many times, you can follow each person's NA as it rises and falls around their own usual level, and check whether reappraisal tends to come before those changes.
All psychological data can be represented as a box with three sides, persons, variables, and occasions, known as Cattell's data box (Hamaker et al., 2017). Each research design takes a different slice of it:
- A cross-sectional study measures many persons once. It is a thin slice: many persons, one occasion.
- A panel study measures many persons a few times, for example four waves over a year.
- A time-series (N = 1) study measures one person very many times.
- An intensive longitudinal study, such as our EMA study, measures many persons many times. It fills most of the box.
Time-series analysis can be described as "looking at the movie" (Hamaker et al., 2017). A cross-sectional study gives one snapshot of many people. Many occasions per person show how each person's states change from one moment to the next. Only designs with many occasions per person can show within-person dynamics directly: to study a process within individuals, "we need to observe the process as it is taking place" (Hamaker, 2012, p. 4 of the preprint).
At every occasion, participants report:
- ER: How much they engaged in cognitive reappraisal, a strategy involving changing how they interpret a situation.
- PA: How much positive affect they are experiencing.
- NA: How much negative affect they are experiencing.
To simplify the example, all scores range from 0 to 100. Here are illustrative observations:
| Person | Measurement occasion | ER | PA | NA |
|---|---|---|---|---|
| Jayce | Day 1, 10 a.m. | 20 | 30 | 80 |
| Jayce | Day 1, noon | 70 | 35 | 75 |
| Jayce | Day 1, 2 p.m. | 80 | 65 | 40 |
| Jayce | Day 1, 4 p.m. | 40 | 75 | 25 |
| Jayce | Day 1, 6 p.m. | 10 | 70 | 30 |
| Vi | Day 1, 10 a.m. | 60 | 70 | 20 |
| Vi | Day 1, noon | 30 | 65 | 30 |
| Vi | Day 1, 2 p.m. | 70 | 75 | 25 |
| Vi | Day 1, 4 p.m. | 50 | 80 | 15 |
The questions we might investigate include:
- At moments when people use more reappraisal, do they also have less NA or more PA?
- Does greater-than-usual reappraisal predict lower NA two hours later?
- Is NA persistent over time? Does PA predict later ER use, or does NA trigger more ER use?
- Do the temporal relationships differ across people?
- Can we describe ER, PA, and NA as an interacting system rather than isolated outcomes?
Before choosing software or a model family, we need to specify what each question is estimating.
A brief notation guide
For your researchThis list defines the symbols used in the equations, and you can return to it whenever a symbol is unclear. Most equations are built from two quantities: a person's usual level (their long-run average) and a moment's distance from that usual level.
Throughout:
- identifies a person: Jayce, Vi, and so forth.
- identifies a measurement occasion for that person.
- is person 's ER score at occasion .
- is that person's NA score at the preceding occasion.
- is person 's true long-run mean of ER. It is a latent (unobserved) quantity: the value that person's average would approach if we could observe them indefinitely under the same conditions.
- A bar, as in , denotes the observed average across that person's occasions. It is an estimate of , not the same thing.
- A superscript , as in , denotes the within-person deviation from the true mean. This is the conceptual quantity used in most equations in this guide.
- A superscript , as in , denotes the observed person-mean-centered score: the deviation from the observed average. It is what we compute ourselves before running
lmer(), and it serves as an estimate of . - generally denotes variation that remains unexplained after accounting for variables in an equation. Its exact meaning depends on the model.
When and differ. With many occasions per person, the two are nearly identical. With few occasions, or in models that contain lagged outcomes, the difference produces bias (Sections 3.5 and 5.4). MSEM and DSEM can work with directly by treating the person mean as a latent variable, a technique called latent centering (or latent mean centering).
The expression "ER subsequent NA" will mean a lagged predictive coefficient. It does not, by itself, mean that ER causes NA to change.
2First distinction: Contemporaneous associations versus temporal dependencies
For your researchThis section helps you decide which kind of question you are asking: whether reappraisal and NA go together at the same prompt, or whether reappraisal at one prompt predicts NA at the next one. The two questions can have different answers without either analysis being wrong.
The two kinds of question target two different estimands.
2.1What is an estimand?
For your researchBefore you run any model, write down in one sentence the exact number you want to learn, for example "how much lower is NA two hours after a person reappraises more than usual?" That sentence is your estimand, and it tells you which model fits.
An estimand is the exact quantity that a statistical analysis is trying to learn about. It is the target of inference, not the particular numerical estimate produced by our sample.
For example, we might want to estimate:
- The association between ER and NA at the same measurement occasion, within people.
- The association between ER at one occasion and NA at the next occasion, controlling for previous NA.
Both involve ER and NA, but they are not the same estimand. Consequently, the models could legitimately produce different answers.
2.2Contemporaneous association: "What happens at the same time?"
For your researchUse this kind of analysis when your question is "at prompts where people reappraise more than usual, is their NA lower at that same prompt?" It describes what goes together. It cannot tell you whether reappraisal lowered NA or whether high NA led people to reappraise.
Contemporaneous means at the same occasion. It does not imply that the underlying experiences occurred at the same instant, because the items of one EMA prompt may ask about different recall windows.
Same prompt does not always mean same moment. When one item asks about "right now" (as NA usually does) and another asks about the time "since the last prompt" (as ER items often do), their association at the same prompt is mostly prospective: it links reappraisal during the preceding interval to NA at the moment of the prompt (Eisele et al., 2026, pp. 79-80). For example, an event recalled from a roughly 90-minute interval happened, on average, about 45 minutes before the affect rating if it was equally likely to occur at any point in the interval (Viechtbauer, 2026b, pp. 180-181). The same arithmetic applies to reappraisal. Section 14.4 returns to this design issue.
Suppose Jayce reports the following at 2 p.m.:
- ER = 80.
- NA = 40.
An analysis of contemporaneous association addresses this question:
On occasions when Jayce reports more ER than is usual for him, does he also tend to report more or less NA than is usual for him?
A simplified regression would be:
In plain EnglishHow far a person's NA is from their usual level at this prompt is predicted from how far their reappraisal is from their usual level at the same prompt. The number says how much NA differs, on average, per extra point of reappraisal at that prompt. The term is the part of NA at that prompt that reappraisal does not account for.
If , a 10-point higher-than-usual ER score is associated with an expected 2-point lower NA score at that same occasion (assuming these are unstandardized coefficients on the original scales).
What we have not established: whether ER preceded NA, NA preceded ER, the two evolved together, or a third event influenced both. Perhaps Jayce used reappraisal because he was distressed. Perhaps he used it after his distress had started declining. The contemporaneous coefficient cannot resolve that ordering.
Contemporaneous associations can also be conditional. For instance, a same-occasion ER-NA coefficient adjusted for PA is different from the unadjusted same-occasion correlation. Always state what the association is conditional on, that is, which other variables are held constant.
2.3Temporal dependency: "Does what happened earlier predict what happens later?"
For your researchUse this when your question is "does reappraising more than usual predict lower NA at the next prompt, beyond what the person's earlier NA already predicts?" In an observational EMA study, this is the most direct evidence available about which comes first.
Temporal means involving time. A dependency means that the distribution or expected value of a later observation depends statistically on earlier information.
Suppose we ask:
When Jayce uses more ER than usual at 2 p.m., is his NA at 4 p.m. lower than we would predict from his affective state at 2 p.m.?
A simple model is:
In plain EnglishA person's NA (relative to their usual level) at this prompt is predicted by two things from the previous prompt: their NA then, weighted by (the carry-over), and their reappraisal then, weighted by . The term is the new part that these two earlier scores do not predict.
It contains two kinds of temporal coefficients:
- : an autoregressive coefficient. Does previous NA predict subsequent NA?
- : a cross-lagged coefficient. Does previous ER predict subsequent NA?
For illustration, let and . Holding previous NA constant, 10 additional points of ER at the earlier occasion predict 3 points lower NA at the later occasion.
The lagged coefficient is a different estimand from the contemporaneous coefficient. It has a specified direction in time and a specified time horizon.
The lagged model as a model of change. Subtracting from both sides of the equation gives an equivalent model for the change in NA:
In plain EnglishThe same model, rewritten to predict how much NA went up or down since the last prompt. The reappraisal weight stays the same. Only the weight on earlier NA changes, decreasing by exactly 1.
The left side is now a change score, and the coefficient is numerically identical in both versions. Only the coefficient on prior NA changes, from to . So the statement "earlier ER predicts change in NA, conditional on earlier NA" describes the lagged model exactly.
An unconditional change-score model is different. It regresses on earlier ER without adjusting for prior NA. Algebraically, that model fixes the coefficient on prior NA at exactly 1 instead of estimating it. It targets a different estimand, and the two models can legitimately disagree, which is the logic behind Lord's paradox (Lord, 1967). When a paper says that a variable "predicts change," check which of the two models was fitted.
2.4Why contemporaneous and lagged results can disagree
For your researchPeople may report more reappraisal at the same prompts where their NA is high (for example, because distress prompts regulation), and reappraisal may still predict lower NA at the next prompt. Both findings can hold in the same data, because they answer different questions.
Suppose Jayce tends to use reappraisal during emotionally difficult moments:
- At the same occasion: More ER accompanies higher NA, because distress prompts strategy use.
- At the next occasion: More ER predicts lower NA, because the episode may subsequently subside, or because the regulation strategy may help, or for another reason.
It is therefore possible to estimate:
In plain EnglishAt the same prompt, more reappraisal can go with higher NA, while reappraisal at one prompt can predict lower NA at the next prompt.
The two parameters do not contradict each other, because they answer different questions.
Checking the idea against Jayce's first day. The five day-1 prompts in Section 1 were constructed to show this pattern. At noon, Jayce reports ER = 70 together with NA = 75 (regulation deployed under distress), and his NA then falls to 40 and 25. Computing simple correlations on these five prompts:
- Same-prompt ER-NA correlation: (5 pairs).
- ER at one prompt with NA at the next prompt: (4 pairs).
With 5 and 4 pairs, these correlations cannot support any inference, and they are not adjusted for prior NA. They only illustrate the pattern in raw numbers.
A simulated illustration. Consider a person whose within-person deviations follow two rules: (a) ER is deployed in response to current NA (a same-occasion effect of +0.60), and (b) ER at one prompt lowers NA at the next prompt (a lagged effect of ), while NA also persists (). In a long simulated series generated from exactly these rules, the same-occasion ER-NA correlation was about +0.63, the unadjusted correlation between earlier ER and later NA was about +0.04, and the lagged ER coefficient adjusted for prior NA was about , recovering the generating value.
Without adjustment, the lagged association between earlier ER and later NA is close to zero (+0.04), because people use more ER when NA is high, and high NA persists. The negative lagged relationship appears only after conditioning on prior NA. For this reason, the lagged model in Section 2.3 includes .
The same lesson in real data. In an example dataset of 328 adults (10 prompts a day for 6 days), the pleasantness of the most important event reported at the previous prompt predicted current positive affect with an average coefficient of 0.08. After the model also included the previous prompt's positive affect and the time of day, the coefficient for the healthy control group was close to zero (, ) (Viechtbauer, 2026b, pp. 180 and 185-186). In those data, conditioning on the outcome's own past made a lagged association disappear. In our simulation, the same conditioning made a lagged association appear. A lagged coefficient therefore cannot be interpreted without knowing which earlier variables it was adjusted for.
Statisticians call this kind of lagged predictive relationship Granger-type predictability: earlier ER "Granger-predicts" NA if it improves the prediction of NA beyond what earlier NA already provides. In econometrics the same idea is called "Granger causality," but it describes predictability only, not an effect of intervening on ER (Section 17).
2.5A lag is part of the estimand
For your researchWhen you report a lagged effect of reappraisal on NA, always say over what time span it holds (for example, about two hours). With a different prompt schedule, the same underlying process can produce a different number.
"Previous ER predicts later NA" is incomplete without saying how much later. A two-hour association and a 14-hour association need not be the same. A process unfolding over 15 minutes might have disappeared by the next two-hour prompt. The sampling schedule and the lag length are therefore part of the research question. Section 14 shows how much a lag coefficient can change with the length of the interval.
A rule of thumb for design is that the time between prompts should be shorter than the time the process needs to change. Otherwise, for example, a person may fully recover from a stressor between two prompts, and the recovery is never observed (Cloos et al., 2026, p. 70).
3Second distinction: Within-person versus between-person differences
For your researchEMA papers often confuse "people who reappraise a lot" with "moments when a person reappraises more than usual." The answer to your research question depends on which of these two comparisons you mean.
Repeated-measures data contain at least two kinds of variation, and relationships at the two levels can have different signs and meanings.
3.1Between-person differences: "How do people differ from other people?"
For your researchUse this comparison when you want to know whether people who generally reappraise more also generally feel more (or less) NA. It compares people with each other, using each person's average over the whole study.
Imagine that we calculate each participant's average ER and average NA over the full month.
Suppose, for illustration:
| Person | Mean ER across the month | Mean NA across the month |
|---|---|---|
| Jayce | 65 | 60 |
| Vi | 25 | 25 |
| Ekko | 55 | 50 |
These monthly means are computed over all 180 occasions, so they need not resemble the handful of day-1 values shown in Section 1.
A between-person question is:
Do people who generally use more reappraisal also generally experience more negative affect?
In this example, the between-person relationship might be positive. People with more difficult emotional experiences might have more reasons to regulate.
The target is the relationship between people's true mean levels:
In plain EnglishPeople whose true average reappraisal is higher also tend to have a higher true average NA.
The correlation of the observed means, , estimates this quantity. Because observed means contain sampling error, it tends to be somewhat attenuated, more so when people have few observations (Section 3.5).
The between-person correlation does not describe what happens within Jayce when his ER goes up or down.
3.2Within-person differences: "How does a person differ from their own usual level?"
For your researchUse this comparison when you want to know what happens inside a person: at moments when someone reappraises more than they usually do, is their NA different from their own usual level? Most emotion regulation theories make claims about this within-person comparison.
Now focus only on Jayce. Suppose his mean ER across the month is 65.
- At one prompt, ER = 80: 15 points above his usual level.
- At another prompt, ER = 40: 25 points below his usual level.
A within-person question is:
When Jayce reports more ER than is typical for him, does he also report more or less NA than is typical for him?
To construct this deviation using the observed person mean:
In plain EnglishEach reappraisal score minus that person's own average. A positive value means more reappraisal than usual for that person, and a negative value means less.
If Jayce's observed mean ER is 65, his ER of 80 becomes . This observed deviation is our estimate of the conceptual deviation .
Similarly:
In plain EnglishThe same for NA: each NA score minus that person's own average NA.
Within-person association concerns how these deviations covary over occasions. Between-person association concerns how people's overall levels covary across individuals.
3.3Why within-person and between-person associations can differ
For your researchThis shows how a study can find that frequent reappraisers have more NA overall, while people tend to feel less NA at moments when they reappraise more than usual. Both findings can be true at the same time, and they mean different things.
It is possible that:
- Between people: Individuals who use more reappraisal on average also report more NA on average.
- Within people: At times when an individual uses more reappraisal than usual, they report lower NA than usual, or perhaps lower NA later.
The two findings concern different units of comparison: people versus occasions within people.
Fear and anger provide a hypothetical example. People might rarely feel fear and anger at the very same moment, so the two might be unrelated or even negatively related within persons. Yet it is possible that people who often feel fear also often feel anger, for example because both reflect neuroticism, in which case the two are positively related between persons (Eisele et al., 2026, p. 93).
Inferring a within-person relationship from a between-person one is called the ecological fallacy. The reverse error, inferring a between-person relationship from within-person data, is sometimes called the atomistic fallacy. A coefficient from a regression that mixes both sources of variation can fail to represent either relationship.
3.4Separating the two in a model
For your researchThis gives you a model, and the R code, that estimates the "people" comparison and the "moments" comparison in one analysis, so that neither one contaminates the other.
A common within-between mixed model is:
In plain EnglishNA at a prompt is predicted from three pieces: the person's own baseline (), how far their reappraisal at that prompt is from their usual level (weight ), and how their usual reappraisal compares with other people's (weight ). The term is what is left over.
Here:
- relates occasion-to-occasion ER deviations to NA, for comparisons within people.
- relates person-mean ER differences to differences in expected NA between people, subject to the model's covariate and random-effects assumptions.
- lets people have different remaining baseline NA levels after accounting for the predictors.
If we also want the within-person association to vary across people, replace with .
A practical warning about R before any code. NA is a reserved word in R: it is the constant for a missing value. In a formula such as NA ~ ER_cwc, R reads the logical constant NA, not your column, and the call fails. In addition, read.csv() silently renames a column called "NA" to "NA." on import. Use a different name, such as neg_aff, everywhere in code. (The prose of this guide keeps "NA" for negative affect.)
Preparing the variables:
Rlibrary(dplyr)
library(lme4)
ema <- ema |>
rename(neg_aff = `NA`) |> # or `NA.` if read.csv() renamed the column
group_by(id) |>
mutate(
ER_pm = mean(ER, na.rm = TRUE), # observed person mean
ER_cwc = ER - ER_pm # person-mean-centered ER (ER^c)
) |>
ungroup()
The corresponding lmer() specification is:
fit_same_time <- lmer(
neg_aff ~ ER_cwc + ER_pm + (1 + ER_cwc | id),
data = ema
)
The model separates the ER association into two components and estimates a random intercept and a random within-person ER slope.
The contextual effect: same model, different coefficient. The model above enters person-mean-centered ER together with the person mean. In that parameterization, the coefficient on the person mean is the between-person slope . A second common parameterization enters raw ER together with the person mean:
In plain EnglishThe same model, written with raw reappraisal scores instead of deviations. It fits the data exactly as well. Only the meaning of the coefficient on the person's average changes.
Because , the two models are identical, with and . The coefficient is called the contextual effect: the expected difference in NA between two people who report the same raw ER at that occasion but whose mean ER differs by one unit. The two parameterizations fit equally well, but the coefficient on the person mean answers a different question in each. Always state which parameterization you used before interpreting that coefficient.
3.5Random intercepts versus within-person centering
For your researchThis explains why adding a random intercept is not enough to isolate the within-person link between reappraisal and NA, and shows that with many prompts per person the practical damage is small. Centering each predictor on the person's own mean remains the safe default.
A random intercept means that people can have different predicted baseline or mean levels. For example, Jayce can have generally higher NA than Vi.
A random intercept alone does not guarantee that the coefficient for raw, uncentered ER cleanly represents a within-person association. In a random-intercept model with raw ER, the fixed slope is a weighted blend of the within-person and between-person slopes. To target within-person and between-person ER associations separately, include an appropriate decomposition or use an equivalent multilevel latent-variable formulation.
Also, observed person means are estimates, not error-free knowledge of the person's underlying long-run mean. With few observations, substantial missingness, trends, or strong temporal persistence, these estimates may be noisy. The resulting bias is largest in models containing lagged outcomes (Section 5.4). MSEM and DSEM can use latent person-level components rather than treating observed averages as perfectly known. A further problem arises when prompts are missed for reasons related to the person's state, for example when NA is high. The observed mean then describes the moments at which the person answered, and it can be biased, not only noisy. Latent centering does not solve this on its own, because it also assumes that prompts are missed at random given the modeled data (Section 10.8).
The size of these two problems in our design. The calculations below assume an intraclass correlation (ICC) of 0.30 for both ER and the NA residuals. The ICC is the proportion of total variance that lies between persons (here, 30% between and 70% within). This is a realistic value: ICCs between 0.2 and 0.4 are typical in ESM studies (Bolger & Laurenceau, 2013, as cited in Eisele et al., 2026, p. 91). In EMA data the ICC is almost always well above zero, so a formal test of "ICC = 0" before fitting a multilevel model is not informative (Viechtbauer, 2026b, p. 166).
Reliability of an observed person mean. The reliability of a mean of independent occasions is often called ICC(2):
In plain EnglishHow well the observed person averages reflect real differences between people, on a scale from 0 to 1: the share of the variation in observed averages that is due to differences in true averages. With 180 prompts and an ICC of 0.30, the observed averages are almost perfectly reliable.
Positive autocorrelation reduces the amount of independent information (Section 8.4). With an autoregression of 0.70, 180 occasions contain roughly as much information as 32 independent ones, which lowers the reliability to about 0.93, still a high value.
Contamination of a raw-ER slope. In a random-intercept model, the between-person information is down-weighted by the factor , where is the within-person residual variance and is the random-intercept variance. With the factor is about 0.013, and the between-person slope ends up receiving about 0.5% of the weight in the blended estimate. With (a two-week daily diary) it receives about 6%, and with panel waves about 12%.
Real data show the same small contamination. In an example dataset with up to 60 prompts per person, the slope of positive affect on raw event pleasantness was 0.194, and the purely within-person slope from the decomposed model was 0.192, even though the between-person slope (0.626) was more than three times larger (Viechtbauer, 2026b, pp. 176-178).
So, in this particular design, both problems are numerically small. Their practical consequences are much larger in designs with few occasions per person. Explicit decomposition is still the right default: it costs nothing, it makes the estimand explicit, and it is required whenever between-person effects or random within-person slopes are of interest.
3.6Why this distinction changes research conclusions
For your researchThis helps you word your conclusions correctly, so that readers know whether your finding is about differences between people or about changes within a person.
Compare two statements:
"People who use more reappraisal experience more NA."
"When a person uses more reappraisal than they usually do, their NA is lower at the same occasion."
The first concerns between-person differences. The second concerns within-person fluctuation. They are different claims and require different estimands. Neither claim describes what happens later, which requires a model of time.
3.7Ergodicity: when could results across people describe each individual?
For your researchThis explains why results found across people, for example in a cross-sectional survey, may not describe what happens inside any single person, and what you would need to check before claiming that your ER-NA finding holds for each individual.
Typing speed and typing errors illustrate the problem (Hamaker, 2012). Across people, those who type faster make fewer typing errors, because skilled typists are both faster and more accurate. Within any one person, typing faster than usual produces more errors. The relationship is negative between people and positive within every person. A cross-sectional study would therefore suggest the wrong advice: "type faster to make fewer mistakes." Our ER and NA example in Section 3.3 has the same structure. A health example shows the same reversal: older adults who take more steps overall experience less intense pain, but when a person takes more steps than usual, their risk of pain goes up (Davis et al., 2023, as cited in Lachowicz et al., 2026, p. 267).
The formal condition under which results found across people can be transferred to each individual is called ergodicity (Molenaar, 2004). In plain terms, ergodicity requires that there is no structural change over time (so developmental processes are non-ergodic by definition), and that every person has:
- the same mean, so there are no stable differences between people,
- the same amount of within-person variation,
- the same same-occasion covariances between variables, and
- the same lagged covariances, that is, the same dynamics,
and that all of these are equal to the values found across people. These conditions are almost never plausible in psychology. People differ in their average NA, in how much their NA fluctuates, and in how strongly their ER and NA go together. Most, if not all, psychological phenomena are likely to be non-ergodic (Hamaker, 2012). Results from cross-sectional or standard panel analyses therefore cannot be taken as descriptions of processes inside individuals without further evidence.
How a cross-sectional correlation mixes the two levels. Suppose both variables have the same intraclass correlation (ICC, the proportion of variance that lies between persons). Then the correlation found in one cross-section of people is a weighted average of the within-person and between-person correlations:
In plain EnglishA correlation computed across people at a single moment is a mix of the within-person correlation and the between-person correlation. Each part counts in proportion to how much of the variance lies at its level.
Three scenarios show how the two levels combine (Hamaker, 2012, Figure 5.2):
- With equal variance at both levels (ICC = 0.5), a within-person correlation of and a between-person correlation of give a cross-sectional correlation of .
- With ICC = 0.5, a within-person correlation of and a between-person correlation of cancel out to .
- With four times as much variance between persons as within (ICC = 0.8), the same two correlations give : the opposite sign of what happens inside every person.
General law, homology, and ergodicity.
- A general law means that every person has the same within-person relationship, for example the same NA inertia.
- Homology means that the within-person relationship and the between-person relationship are the same.
- Ergodicity means that everything matches, including means and variances, so there are no stable differences between people at all.
A general law can hold without homology or ergodicity. Positive and negative affect are an example: they may be negatively related within every person, while people's average PA and average NA are unrelated (Hamaker, 2012). To find out whether a general law holds, a model must allow within-person relationships to differ across people (random slopes) and then check whether they do.
4Third distinction: Can people have different temporal relationships?
For your researchThis section is about whether the link between reappraisal and later NA is the same for everyone. If you suspect that reappraisal predicts later NA more strongly for some people than for others, this section shows how to model that idea and how to test it.
Consider the question:
Does greater-than-usual ER at one occasion predict subsequent NA equally strongly for everyone?
The coefficient may differ across people, and statistical models differ in whether they represent such heterogeneity explicitly.
4.1What is a temporal relationship here?
For your researchThis turns "the link between reappraisal and later NA" into one concrete number, and shows why that number might differ from person to person.
The ER subsequent NA coefficient describes how much later NA differs, on average, for a difference in earlier ER, after adjusting for the specified covariates.
Suppose the estimated relationship is:
In plain EnglishTen more points of reappraisal than usual at one prompt go with 3 fewer points of NA at the next prompt, on average, holding earlier NA and the other predictors in the model constant.
But perhaps that relationship is not the same for everyone:
| Participant | Illustrative ER subsequent NA coefficient |
|---|---|
| Jayce | -0.40 |
| Vi | -0.05 |
| Ekko | -0.30 |
| Jynx | +0.10 |
| Viktor | -0.45 |
Jayce exhibits a substantial negative lagged relationship, Vi's is close to zero, and Jynx's is slightly positive. These are imagined person-specific values, not reliably estimated individual effects from the small example table.
4.2What does it mean to allow these coefficients to vary?
For your researchThis shows how to give each person their own reappraisal-NA link while still learning about the average link and about how much people differ around it.
A statistical model is a set of equations and assumptions. To allow individual differences in a coefficient, we explicitly include a person-specific coefficient in those equations and specify how it varies across people.
Common-slope model:
In plain EnglishOne shared carry-over weight () and one shared reappraisal weight () for everybody in the study.
Here there is one for the sample. The model assumes the same modeled conditional ER-NA slope applies to all participants (unless interactions or other varying coefficients have been specified). Different people may still have different observed NA trajectories and unexplained outcomes. They do not have distinct fitted ER slopes in this specification.
Random-slope model:
In plain EnglishThe same equation, but now each person has their own carry-over weight () and their own reappraisal weight ().
In this model, each person's slope can be written, for example, as
In plain EnglishEach person's reappraisal weight equals the average weight plus that person's own deviation. The deviations follow a bell curve centered on zero, and describes how wide that bell curve is.
Now the model contains:
- : the mean lagged ER-NA coefficient across the modeled population.
- : the between-person variance in that coefficient. Its square root, , is the standard deviation of the slopes and is usually easier to interpret.
- Person-specific slopes , obtained with uncertainty and with partial pooling toward the population distribution (Section 4.5 explains what "obtained" means in frequentist versus Bayesian terms).
If is substantial, the model represents meaningful variation in lagged relationships across people. If it is near zero, little variation is supported under the assumed model.
A quick way to read . If slopes are roughly normally distributed, about 95% of people's slopes lie within . With and , that range runs from about to : from a strong negative association to almost none. In an example dataset, the average same-prompt slope of positive affect on event pleasantness was 0.19, and the range expected to contain 95% of people's slopes ran from about 0 to 0.40, that is, from no association to one twice as strong as average (Viechtbauer, 2026b, p. 170). This range describes how much people differ. It is not a confidence interval for the average slope, which is far narrower.
Partial pooling. Each person's slope is a compromise between that person's own data and the population average. Approximately,
In plain EnglishEach person's estimated slope is a weighted average of the slope from their own data and the group's average slope. The more precise their own data (small ), the more weight their own slope gets.
Here is the slope we would get by fitting person alone and is its standard error. A person with many informative observations has a small , so is close to 1 and their estimate stays near their own data. A person with few or noisy observations has a large , so their estimate is pulled ("shrunk") toward the population mean. For this reason, individual slopes from a mixed model are less extreme than slopes from separate per-person regressions. The same pull applies to person means. In an example dataset, three participants with observed average positive affect of 6.45, 2.07, and 3.08 received model-based estimates of 6.41, 2.11, and 3.11, each moved slightly toward the group average of 4.55. With up to 60 prompts per person, the pull is small. It is larger for a person who answered few prompts (Viechtbauer, 2026b, p. 164).
Real EMA data from 129 people show the same shrinkage. Slopes from separate per-person analyses and person-specific slopes from one multilevel model correlated strongly (0.66 to 0.91), but the multilevel estimates varied much less, because extreme per-person values were pulled toward the average. The average autoregression from the per-person analyses (0.36) was also lower than the multilevel average (0.47), a difference consistent with Nickell bias in the short per-person series of at most 60 prompts each (Hamaker et al., 2023).
4.3What does it mean not to allow slope variation?
For your researchA model that gives everyone the same slope assumes that people are alike, so a common slope should be reported as an assumption of the model, not as a finding that people respond alike.
Not allowing slope variation means that we have constrained a parameter to be common across individuals. It does not demonstrate that the true relationship is identical for everyone. We might impose the constraint because of our substantive hypothesis, limited data, computational considerations, or a desire for a parsimonious model.
Conversely, allowing random slopes does not guarantee that the study contains enough information to estimate each person's slope precisely.
4.4"Random" does not mean arbitrary
For your researchA "random" slope is a spread of person-specific values with a shape you can describe. Once you have it, you can ask questions such as "do people whose NA lingers longer show a weaker link between reappraisal and later NA?"
A random slope has a probabilistic distribution. A common assumption is that people's slopes follow an approximately normal distribution. More elaborate models can use other distributions or mixtures.
A model can also estimate covariances among person-specific slopes. For example, the model can estimate whether people whose NA is more persistent show weaker lagged ER-NA associations (Section 10.5).
In an example dataset, people with a high average level of positive affect had flatter slopes of positive affect on event pleasantness (a correlation of between intercepts and slopes). This correlation could mean that happy people are less affected by events, or that their ratings were already near the top of the scale, leaving little room to move (a ceiling effect) (Viechtbauer, 2026b, p. 172).
4.5What is a person-specific slope? Frequentist and Bayesian answers
For your researchThis tells you what you can and cannot report about one participant's own reappraisal-NA slope, depending on whether you used lmer() or Bayesian DSEM in Mplus.
The same model gives person-specific slopes a different status in the two inferential frameworks, which changes what you can report or test about them.
- Frequentist mixed models (
lmer()). The parameters are and (plus the other fixed effects and variance components). The person-specific deviations are treated as random variables, not parameters. Their values are therefore predicted, not estimated. In linear mixed models, these predictions are called best linear unbiased predictors (BLUPs). Thelme4package calls them conditional modes and returns them withranef().ranef(fit, condVar = TRUE)also returns the conditional variance of each prediction, so person-specific values come with an uncertainty, which is often large when a person has few prompts. Standard practice does not attach a p-value to each person's slope. - Bayesian DSEM (Mplus). All unknowns, including each , are sampled at every iteration of the Markov chain Monte Carlo (MCMC) algorithm. Each person's slope therefore has a full posterior distribution, which Mplus can save and plot.
4.6Testing whether slopes vary: a boundary problem
For your researchIf your hypothesis is that people differ in how strongly reappraisal relates to later NA, this explains how to test it without the usual mistakes, both in lmer() and in Mplus.
The natural null hypothesis for "do slopes vary?" is . That value lies on the boundary of the parameter space, because a variance cannot be negative. As a result, the standard likelihood ratio test (LRT) does not have its usual reference distribution:
- Adding a single random variance with no covariances: the reference distribution is a 50:50 mixture of and . The 5% critical value is 2.71, not 3.84.
- Adding one random slope together with its covariance with the random intercept (the usual case): the reference distribution is a 50:50 mixture of and . The 5% critical value is 5.14, not 5.99 (Self & Liang, 1987; Stram & Lee, 1994).
Using the naive critical value makes the test conservative and lowers its power.
These two reference distributions hold under specific conditions: many persons, and two nested models that differ only in the tested variance (and covariance) and have the same fixed effects. For other comparisons, for example testing several random slopes at once, the mixture weights differ, and a parametric bootstrap is safer: simulate data from the smaller model many times, fit both models to each data set, and use the resulting distribution of the test statistic (pbkrtest::PBmodcomp() does this for lmer() models; Halekoh & Højsgaard, 2014). In lme4, anova() refits REML models with ML before comparing them unless refit = FALSE is given. When the fixed effects are identical, the REML comparison is the usual choice for testing variance components.
In Bayesian DSEM, the analogous shortcut fails in a different way. A variance's posterior distribution only has support on positive values, so its credible interval can never contain zero, and the "one-tailed p-value" Mplus prints for a variance is essentially zero by construction. "The interval excludes zero" therefore provides no evidence about heterogeneity. Practical alternatives include comparing models with and without the random effect, inspecting how much posterior mass lies near zero, and a screening heuristic of adding a random effect only when its variance estimate is large relative to its posterior standard deviation (a ratio above about 3; Muthén & Asparouhov, 2023).
Under a Neyman-Pearson framing, a more informative question is often whether the data can rule out slope variability large enough to matter: pre-specify the smallest standard deviation of slopes that would be of practical interest, and ask whether the estimate and its interval exclude values above it.
5Ordinary multilevel modeling with lmer()
For your researchThis section shows that the familiar lmer() can already answer many emotion regulation questions, including questions about what happens at the next prompt, and which questions it cannot answer.
Multilevel modeling is a natural starting point because observations are nested within individuals. Measurements from Jayce are likely more similar to one another than measurements from Jayce and Vi, even before modeling specific temporal processes.
5.1A simple contemporaneous multilevel regression
For your researchUse this model when your question is about reappraisal and NA at the same prompt. It gives you the average link and lets each person have their own link.
Consider:
In plain EnglishEach person gets their own intercept (, the NA expected at a prompt with a reappraisal score of 0) and their own slope linking reappraisal to NA at the same prompt ().
Here:
- is Jayce's, Vi's, or another person's intercept.
- is that person's ER-NA slope.
- is unexplained occasion-specific variation.
This equation permits person-specific intercepts and slopes, but does not automatically separate within-person and between-person ER associations. The centered variables from Section 3 separate the two, which is needed when within-person variation is the target.
For a contemporaneous within-between analysis (with neg_aff standing for NA, as explained in Section 3.4):
fit_same_time <- lmer(
neg_aff ~ ER_cwc + ER_pm + (1 + ER_cwc | id),
data = ema
)
This model tests whether higher-than-usual ER is associated with higher or lower NA at the same occasion, while also modeling differences in mean ER between individuals. It does not test what happens two hours later.
A simple effect size for within-person predictors. Compare the within-person residual variance of a model without ER (only a random intercept) with that of the model including ER. The proportional reduction is an -type measure: the share of moment-to-moment fluctuation in NA that ER accounts for. In an example dataset, event pleasantness accounted for about 12% of the momentary fluctuation in positive affect at the same prompt, but only about 3% as a predictor from the previous prompt (Viechtbauer, 2026b, pp. 173 and 180). In a sample, this proportion can come out slightly negative, and negative values are then reported as 0 (p. 168).
5.2Adding lagged variables
For your researchThis shows how to ask "does reappraisal at one prompt predict NA at the next one?" in lmer(), and how to build lagged variables without common errors such as linking the last prompt of one evening to the first prompt of the next morning.
Multilevel regression can model temporal dependencies. Consider:
In plain EnglishA person's NA (relative to their usual level) is predicted by their own NA, reappraisal, and PA at the previous prompt. Each of the three has its own person-specific weight.
Autoregression, . This coefficient describes how strongly previous NA predicts subsequent NA, controlling for earlier ER and PA. Suppose . If a person's NA is 10 points above their own mean at one occasion, it is expected to be 7 points above their mean at the next occasion, with earlier ER and PA held at their usual levels. In that limited sense, "70% of a deviation is expected to remain after one interval" is a correct reading. Three other readings are incorrect:
- Reading 0.70 as a probability (it is a regression coefficient).
- Applying it to raw NA levels rather than to deviations from the person's own mean (a person whose NA is 60 does not expect 42 next time).
- Treating it as standardized when it is not, or forgetting that it is partial, that is, conditional on the other lagged predictors in the equation.
A related quantity is the half-life: the number of intervals after which a deviation is expected to have halved, . For it is about 1.9 intervals, roughly four hours with two-hour prompts. This value assumes that ER and PA stay at their usual levels at every later prompt. In real data, a rise in NA may also change later ER and PA, which then feed back into NA, so the actual return can be faster or slower. A single equation for NA cannot show this. It requires the joint model of Section 10.3, in which NA returns faster than the coefficient 0.70 alone implies.
The same coefficient is described in several ways (Hamaker, 2012; Hamaker et al., 2023):
- Inertia: the tendency to stay in the current emotional state.
- Carryover: how much of one occasion's state carries into the next. The term spillover is used both for this coefficient (Hamaker, 2012) and for effects of one variable on another (Hamaker et al., 2023).
- Regulatory weakness: the inverse of how strongly a person is pulled back to their usual level.
- Self-predictability: a highly autocorrelated variable is produced by a system that is not much affected by outside influences and is "running its own course." A weakly autocorrelated variable is largely driven by outside influences. A negative autocorrelation signals a zigzag pattern that alternates from one prompt to the next (Kuppens & Myin-Germeys, 2026, p. 30).
The regulatory-weakness description comes from viewing each person as a system with an equilibrium, their own mean, which acts like the bottom of a bowl. When something pushes the person away from it, they roll back. A coefficient close to 0 means a steep bowl: the person returns quickly. A coefficient close to 1 means a shallow bowl: the person stays away from their usual level for a long time.
These labels describe a statistical pattern. "Regulatory" is meant in this dynamical-systems sense of returning to equilibrium: the coefficient does not measure a person's emotion-regulation ability. A high autoregression can also arise when a stressor persists across several prompts, or when a slow process that the model does not include keeps NA high.
Cross-lagged ER coefficient, . This coefficient describes how strongly earlier ER predicts later NA after adjusting for earlier NA and PA. If in unstandardized units, 10 additional ER points predict 3 fewer NA points at the next occasion, other modeled predictors held constant.
Cross-lagged PA coefficient, . This coefficient describes how strongly earlier PA predicts later NA, over and above earlier ER and NA. If , greater earlier PA predicts lower subsequent NA.
Constructing lagged variables correctly. A lag must be taken within a person, in the correct temporal order, and it should not silently cross the night or skip over a missed prompt. A sketch with dplyr, assuming day numbers the study days and prompt numbers the prompts 1 to 6 within each day:
ema_lagged <- ema |>
arrange(id, day, prompt) |>
group_by(id, day) |> # lags never cross the night
mutate(
gap_ok = (prompt - lag(prompt)) == 1, # previous prompt was answered
lag_NA = if_else(gap_ok, lag(neg_aff), NA_real_),
lag_ER = if_else(gap_ok, lag(ER), NA_real_),
lag_PA = if_else(gap_ok, lag(PA), NA_real_)
) |>
group_by(id) |> # center on the person's mean
mutate(
lag_NA_cwc = lag_NA - mean(neg_aff, na.rm = TRUE),
lag_ER_cwc = lag_ER - mean(ER, na.rm = TRUE),
lag_PA_cwc = lag_PA - mean(PA, na.rm = TRUE)
) |>
ungroup()
A simplified model:
Rfit_lagged <- lmer(
neg_aff ~ lag_NA_cwc + lag_ER_cwc + lag_PA_cwc +
(1 + lag_ER_cwc | id),
data = ema_lagged
)
Starting the lags afresh each morning is a common rule (Viechtbauer, 2026a, p. 155; 2026b, p. 181). It costs rows: in one example dataset, the lagged analysis could use 23% fewer rows than the same-prompt analysis (10,923 instead of 14,119), with 1,178 rows lost to the night and 2,018 to the prompt after a missed one (Viechtbauer, 2026b, pp. 181-182). Section 10.8 shows how DSEM recovers most of these rows.
In the code, the outcome is entered raw, and the random intercept absorbs each person's mean level. This is equivalent in spirit to modeling and avoids centering the outcome on an estimated mean. As written, the model also allows the ER lag coefficient to vary across people, but not the NA and PA lag coefficients. These are choices of this particular specification, and other MLM specifications can make different ones.
5.3Questions the lagged multilevel model can answer
For your researchLagged lmer() models are dynamic models. If your question concerns one outcome, such as NA, you may not need DSEM at all.
The lagged model can answer a substantive question similar to the one answered by the NA equation in a basic DSEM:
Does higher-than-usual earlier ER predict lower-than-expected later NA, conditional on earlier NA and PA, and does that relationship vary across people?
The claim that MLM cannot model dynamics while DSEM can is therefore false. MLM can incorporate lagged outcomes, lagged predictors, random temporal slopes, and covariances among random slopes.
5.4Limitations of the lagged lmer() model
For your researchA lagged lmer() model does not model ER, PA, and NA jointly, does not offer autocorrelated residuals, can be biased in short series, and does not distinguish uneven time gaps (a problem that discrete-time DSEM shares). If your study needs any of these, consider MSEM or DSEM.
One outcome at a time. The displayed lmer() equation predicts NA. We could fit separate models for ER and PA, but these would not generally estimate a joint cross-outcome innovation covariance. Other multivariate mixed-model frameworks can do so.
Limited within-person residual covariance options in lmer(). The lme4::lmer() implementation does not offer an AR(1) or other time-series residual correlation structure. Other R software does:
nlme::lme()acceptscorrelation = corAR1()for equally spaced occasions andcorrelation = corCAR1()for a continuous-time AR(1), which uses the actual elapsed time between observations and therefore handles unequal spacing.glmmTMBoffersar1()and an Ornstein-Uhlenbeckou()covariance structure (the continuous-time analogue of AR(1)).
A lagged outcome may explain some serial dependence, but it does not guarantee independent residuals. A model that includes both a lagged outcome and autocorrelated residuals is a richer (ARMA-type) structure. Most analyses use one or the other.
Dynamic-panel bias (Nickell bias). When a lagged outcome is centered on the observed person mean, the estimated autoregressive coefficient is biased downward in finite series. The reason is that the observed mean is computed from the same observations, including the current innovation, which induces a small negative correlation between the centered lagged predictor and the error. For an AR(1) with coefficient and occasions per person, the bias is approximately
In plain EnglishWhen each person's lagged NA is centered on their observed average, the estimated carry-over comes out too small, on average, by roughly : a lot with few prompts per person, very little with many, and somewhat more when the true carry-over is strong.
Values of this approximation (Hamaker & Grasman, 2015; Nickell, 1981) for :
| Occasions per person, | Approximate bias | Expected estimate |
|---|---|---|
| 10 | -0.19 | 0.51 |
| 20 | -0.09 | 0.61 |
| 50 | -0.035 | 0.67 |
| 180 | -0.009 | 0.69 |
A simulation with 300 persons per study agreed: across 100 simulated studies, the average estimates were 0.60 for and 0.69 for (Monte Carlo standard errors of 0.001 or less; R code in Section 21.1). In this study's design the bias is therefore negligible, but it is substantial for short series, and it can also distort cross-lagged coefficients. Latent centering, as used by DSEM, avoids Nickell bias because the person mean is estimated as part of the model rather than plugged in. This removes the specific plug-in mechanism behind Nickell bias. It does not remove every small-sample problem: with short series, the treatment of the first observation (see "Initial conditions" below) and the priors (Section 13.3) can still affect the estimates. The same mechanism becomes severe if one centers on day means with only six prompts per day (Section 15).
Centering the lagged outcome in lmer(). Published examples differ on this choice. Some enter the lagged outcome uncentered, with a random intercept (e.g., Viechtbauer, 2026b, p. 183). In simulations, person-mean centering the lagged outcome biased the average autoregressive effect downward, which is a problem mainly when the question is whether there is an autoregressive effect on average. When the question is whether a person-level variable predicts individual differences in autoregression (a cross-level interaction), person-mean centering performed better. The choice should therefore follow the main question (Hamaker & Grasman, 2015). Latent centering in DSEM removes the need for this choice, and with 180 prompts per person, as here, the practical difference is small.
When a lagged dependent variable, person-specific effects, and observed person means appear together, the results also depend on finite-sample bias and on how the first observation of each series is treated.
Initial conditions. The first observation of each person (or each day) has no preceding observation. Models differ in how they treat it: dropping it, treating its missing lag as data to be imputed within the model (as Mplus does), or modeling it from the stationary distribution. With 180 occasions the choice makes little difference, but with short series it can change the estimates.
Unequal time intervals. Ordinary "previous observation" lags do not automatically distinguish two-hour gaps from overnight gaps. This problem applies to discrete-time DSEM too. Section 14 discusses the options, including TINTERVAL and continuous-time models in Mplus.
5.5When would lmer() be sufficient?
For your researchIf you only need the average lagged link between reappraisal and NA, and you have many prompts per person, lmer() is usually enough.
If the question is modest, for example, whether earlier ER predicts later NA on average, and a carefully specified single-outcome mixed model represents the temporal dependencies adequately, lmer() or another mixed-model approach may be sufficient. There is no methodological requirement to use a framework labeled DSEM.
6Multilevel structural equation modeling (MSEM)
For your researchThis section shows what multilevel SEM adds to an emotion regulation study: it treats each person's usual level as something to estimate rather than a known average, and it can model measurement error in reappraisal and affect, either with several items per construct or, under extra assumptions, with single items.
6.1What is structural equation modeling?
For your researchSEM lets you write several connected equations at once, and lets a construct such as reappraisal be measured by several questionnaire items instead of one.
Structural equation modeling (SEM) is a framework for specifying relationships among observed or latent variables, often using multiple connected equations. It can also include a measurement model: a description of how observable questionnaire items reflect less directly observable psychological constructs.
Multilevel SEM (MSEM) extends these ideas to hierarchical data, for example, EMA observations within individuals. MSEM is a broad family of models, not one fixed statistical equation.
6.2MSEM can estimate the same within-between relationships as MLM
For your researchFor the basic questions ("within a person, does more reappraisal go with less NA?" and "do people who reappraise more have less NA?"), MSEM and a well-built lmer() model give nearly the same answer. MSEM's advantage is that it treats each person's average as estimated, not as known exactly.
A simple two-level SEM decomposes each variable into a latent between-person component (superscript , the person's true mean) and a latent within-person component (superscript ). It might specify, at the within-person level:
In plain EnglishWithin each person, NA at a prompt is predicted by reappraisal and PA at the same prompt, each measured relative to the person's usual level.
At the between-person level, it might specify:
In plain EnglishBetween people, a person's usual NA is predicted by their usual reappraisal and their usual PA. The term is what makes this person's usual NA differ from that prediction.
The first equation compares occasions within the same person. The second compares people who differ in their typical levels.
A simple MSEM and a correctly specified multilevel regression can express nearly equivalent within-between relationships. The main technical difference is that MSEM treats the person means as latent (the multilevel latent covariate approach; Lüdtke et al., 2008), whereas the lmer() model plugs in observed means. The psychological quantity being estimated is the same in both.
6.3What does measurement error mean?
For your researchEach EMA rating of reappraisal or NA contains some measurement error, which can make real links look weaker in your results or distort them in other ways.
Measurement error means that an observed score is not a perfect representation of the construct or quantity we care about.
Suppose Jayce's actual level of cognitive reappraisal at a prompt is conceptually 60 on some latent scale. He might select a response equivalent to 50 because he misunderstands an item, forgets part of the relevant interval, answers hurriedly, or the item captures only one aspect of the strategy.
An intuitive decomposition is:
In plain EnglishWhat a person selects on the screen equals the part that reflects their real experience plus an error.
The decomposition is a simplification: error can be random, systematic, person-specific, context-dependent, or shared across items.
When variables are measured unreliably, the statistical relationships among them can be distorted. Under classical measurement-error assumptions, error in a single predictor attenuates its regression coefficient toward zero. With multiple variables, correlated errors, autocorrelated measurement errors, or more complicated assumptions, the direction of the bias is harder to predict. In time-series models specifically, ignoring measurement error biases autoregressive coefficients toward zero, so observed affect appears less persistent than the underlying affective state, and cross-lagged coefficients can shrink, disappear, reverse sign, or appear spuriously (Schuurman & Hamaker, 2019).
6.4Example: ER measured with three items
For your researchIf you ask about reappraisal with several items, this shows how to combine them into one latent reappraisal score that keeps what the items share and sets aside what is specific to each item, which includes measurement error but can also include meaningful item-specific content.
Instead of asking a single ER question, we might use:
- "I tried to reinterpret what happened."
- "I tried to think about the situation differently."
- "I tried to change how I understood the situation."
A latent-factor model could be:
In plain EnglishEach of the three reappraisal items reflects one shared, unobserved reappraisal level at that prompt (), rescaled by its loading and shifted by its intercept , plus its own noise .
Here:
- represents the latent ER construct at that occasion.
- are factor loadings, describing how strongly each item relates to the factor.
- are item intercepts.
- are item-specific residuals, which may include measurement error and item-specific meaningful content.
We could construct analogous latent PA and NA variables. The temporal model could then relate the latent constructs, rather than treating noisy questionnaire averages as exact measures.
Many conventional latent-variable specifications need multiple indicators. A factor model also makes assumptions about dimensionality and the structure of residuals. Repeated measurement raises measurement invariance questions: whether items have comparable meanings and loadings across occasions and people. In a multilevel factor model there is also a within-person factor and a between-person factor, and their loadings need not be equal. Equal loadings across the two levels (cross-level invariance) are required before the between-person factor can be read as the person mean of the within-person factor. The reliability of a scale can also differ greatly between levels. A latent factor removes only the error that is unique to each item, not error shared by all items.
The two levels can differ considerably: in one ESM dataset, two factors were enough to describe affect between persons, but five were needed within persons (Eisele et al., 2021, as cited in Eisele et al., 2026, p. 93). Newer methods, such as latent Markov factor analysis and DSEM, can let the factor structure itself change across moments and across people, which is one way to study measurement invariance over time (Eisele et al., 2026, pp. 92-93).
6.5Measurement error versus a process innovation
For your researchA real surge in NA, for example after an argument, carries over to the next prompts, whereas a careless answer affects only the prompt at which it was given. Models that tell the two apart give more accurate estimates of how long NA lingers.
Measurement error and process innovations are different quantities:
- Measurement error: The discrepancy between an observed item response and the latent or intended measured quantity.
- Process innovation: A real, new departure in the psychological process that the dynamic model did not predict from earlier observations.
Imagine Jayce has a real increase in NA because of an unexpected argument. That can be a process innovation. If he accidentally selects 80 when his underlying NA would correspond more closely to 60, the discrepancy may reflect measurement error.
The two differ in what happens at later prompts. An innovation enters the psychological process itself, so the dynamics carry it forward. With , a +30 innovation in NA at 2 p.m. is still expected to be +21 at 4 p.m. and +14.7 at 6 p.m. A measurement error affects only the recorded response at the occasion where it occurs. It is not carried forward, because the underlying state did not change. A model that confuses the two can misrepresent temporal persistence and cross-lagged associations.
This difference makes measurement error estimable even with a single item. In the AR(1) plus white noise model (AR(1)+WN; Schuurman & Hamaker, 2019), each observed score is a latent AR(1) process plus independent measurement error. Its autocorrelation function has a characteristic form. For lags ,
In plain EnglishWith measurement error, the correlation between two ratings prompts apart equals the reliability times the carry-over multiplied by itself times. The one-time drop by the factor is the pattern that identifies measurement error.
Here is the within-person reliability: the proportion of within-person observed variance due to the latent process rather than to error. The autocorrelation drops by the factor immediately after lag 0 and then decays at the true rate . A pure AR(1) process, by contrast, decays smoothly from 1. Because of this pattern, DSEM can estimate the measurement-error variance with one indicator per construct. Identification requires nonzero dynamics: if , innovations and measurement errors cannot be told apart. For the same reason, the separation is weak when the autoregression is close to zero or the series are short, and the reliability estimate can then be imprecise. If the measurement errors are themselves correlated from one prompt to the next, the model mistakes them for dynamics, and the reliability estimate is biased.
Many EMA constructs are measured with a single item, and the usual internal-consistency reliability (such as Cronbach's alpha or omega) needs several items. The (test-retest) reliability of single items can be assessed with estimates based on components of multilevel (vector-)autoregressive models (Schuurman & Hamaker, 2019), or by presenting the same item twice at or near the same moment (Dejonckheere et al., 2022; see also Eisele et al., 2026, p. 96).
6.6Does MSEM have to be contemporaneous?
For your researchMSEM can also include lagged effects, so it can also test whether reappraisal predicts later NA. At that point it is already close to DSEM.
MSEM can include lagged effects, for example:
In plain EnglishWithin each person, NA is predicted from their own NA, reappraisal, and PA at the previous prompt.
With analogous equations for ER and PA, the model becomes a dynamic multilevel SEM.
7Fourth distinction: What is a "dynamic system"?
For your researchThis section explains what it means to call ER, PA, and NA a "dynamic system," and when you need a model that predicts all three together rather than NA alone.
7.1What does dynamic mean?
For your researchA model is "dynamic" when it uses earlier prompts to predict later ones. Even a model of NA alone, with NA's own carry-over, is dynamic.
A process is dynamic when we explicitly model how its state evolves over time. The present is related to the past, and we want to characterize that temporal evolution.
For example:
A person who feels unusually high NA at noon may still feel unusually high NA at 2 p.m.
That persistence is a dynamic feature: previous NA helps predict current NA.
A process can be dynamic even if it contains only one variable. An autoregressive NA model is dynamic because NA changes over time in a statistically structured way.
7.2What does system mean?
For your researchCalling ER, PA, and NA a "system" means that you care about how they predict one another over time, not only about one of them.
A system is a set of components that are considered together because their relationships matter to the behavior of the whole.
For our study, the components are ER, PA, and NA.
We might hypothesize:
- Elevated NA is followed by more ER use.
- Greater ER is followed by lower NA.
- Greater ER is followed by higher PA.
- Greater PA is followed by less NA.
- PA and NA also persist from one occasion to the next.
Because of these connections, a model of one component alone cannot describe how the variables evolve together.
7.3What does a dynamic system mean in our study?
For your researchOne everyday sequence (distress, then reappraisal, then relief) illustrates what a dynamic system looks like in daily life.
A dynamic system is a collection of variables whose values evolve over time in ways that may depend on their own past and on the past of other variables in the collection.
Think of a sequence:
- Jayce's NA is unusually high at noon.
- This elevated NA predicts greater ER use at 2 p.m.
- Greater ER at 2 p.m. predicts lower NA at 4 p.m.
- Lower NA at 4 p.m. may change the predicted ER and PA levels at 6 p.m.
The example is a set of hypothesized predictive relationships, not a claim that these influences are established or causal.
7.4Modeling one outcome versus modeling the system jointly
For your researchIf you want to know not only what predicts later NA but also what predicts later reappraisal (for example, whether high NA predicts more reappraisal at the next prompt), you need an equation for each of the three variables.
A single-equation model might predict NA using earlier ER, PA, and NA:
In plain EnglishNA at this prompt is predicted from reappraisal, PA, and NA at the previous prompt.
This single equation is a dynamic model of NA, but it does not estimate what predicts later ER or later PA.
A joint system also models the other outcomes:
In plain EnglishThree equations, one per variable. Each of reappraisal, PA, and NA at this prompt is predicted from all three at the previous prompt. The nine weights describe every carry-over and every cross-influence.
Now every variable may help predict itself and the others. This is a vector autoregressive model of order 1, or VAR(1). "Order 1" means that only the immediately preceding occasion is used as a predictor.
7.5Why is joint modeling useful?
For your researchA joint model lets you test feedback loops, such as "high NA predicts more reappraisal, which in turn predicts lower NA," in one analysis.
Joint modeling lets us describe reciprocity and feedback. For example:
- : distress may be followed by greater regulation use.
- : prior regulation use may predict later distress.
Those are two different lagged coefficients. Both can be nonzero, and they need not be equal or even have the same sign. When they have opposite signs, as in this example (NA raises later ER, ER lowers later NA), they form a negative feedback loop, which tends to pull the system back toward its usual state and can produce damped oscillations (Section 10.3).
A joint model also permits correlations among same-occasion innovations (Section 8.6). It also supports questions about how an earlier departure in one variable propagates through the system over several occasions (Section 10.3).
7.6Is joint estimation the only way to study a system?
For your researchYou can often get the same cross-lagged numbers from separate models. The joint model is needed mainly for quantities that depend on all equations at once, and it is worth its cost only when your question requires it.
Separate regressions can also be useful and, under particular assumptions, can even produce the same point estimates for equation-specific slopes as joint estimation. In single-level linear regression, when every equation contains the same predictors, equation-by-equation least squares gives the same coefficients as joint estimation (the seemingly unrelated regressions result; Zellner, 1962). Nevertheless, separate regressions do not ordinarily furnish the full joint innovation model, all cross-equation restrictions, and parameter uncertainty for functions of the complete system in one integrated fit. Multivariate mixed models and SEM approaches offer other ways to do this.
A larger model is not automatically a better description. In a comparison of how well models predicted new, unseen data from typical ESM datasets, person-specific VAR(1) models predicted worst, and multilevel VAR(1) models did not outperform simpler multilevel AR(1) models in which each variable is predicted only by its own past (Bulteel et al., 2018, as cited in Lafit, 2026a, p. 216). Cross-lagged effects in affect data are often small, so a full system model is worth its cost when the question is about the cross-influences themselves, not as a default.
7.7"Dynamic system" does not mean "causal system"
For your researchA model can show that NA predicts later reappraisal without showing that NA causes reappraisal. Keep the word "predicts" in your conclusions unless your design supports a stronger claim.
A VAR equation can accurately describe predictability without identifying a mechanism of influence.
If earlier NA predicts later ER, that does not prove that manipulating NA would change ER. Unmeasured situations, stressors, anticipation, trends, and other variables might explain the statistical association. Arrows in a predictive VAR diagram are not automatically causal arrows.
8Fifth distinction: What is a temporal covariance structure?
For your researchThis section explains why prompts that are close in time resemble each other, and how that resemblance affects both your standard errors and the meaning of your reappraisal coefficients.
A temporal covariance structure describes two facts: observations close together in time may be more similar than observations far apart, and different variables may share unexpected changes.
8.1What does covariance mean?
For your researchCovariance describes whether two things go up and down together, and the rest of this section builds on that definition.
Covariance describes how two quantities vary together.
- Positive covariance: When one variable is above its expected level, the other tends to be above its expected level as well.
- Negative covariance: When one is above its expected level, the other tends to be below its expected level.
- Near-zero covariance: There is little linear co-movement, although other kinds of dependence could remain.
Unlike correlation, covariance depends on the variables' measurement scales. Correlation standardizes covariance to a scale between -1 and +1.
8.2What makes a covariance structure temporal?
For your researchYour NA ratings from the same afternoon are not independent pieces of information, and the temporal covariance structure describes how they are linked.
Consider Jayce's NA at noon, 2 p.m., and 4 p.m. These measurements are not three independent draws. Noon NA may be associated with 2 p.m. NA; 2 p.m. NA may be associated with 4 p.m. NA; and noon NA may even be associated with 4 p.m. NA.
The temporal covariance structure specifies the expected variances and covariances across times, potentially for several variables.
For one person, it concerns quantities such as:
In plain EnglishHow much NA at one prompt varies together with NA one prompt earlier, and with NA two prompts earlier.
In a multivariate model, it also concerns quantities such as:
In plain EnglishHow much reappraisal at one prompt varies together with NA at the previous prompt.
It also concerns the same-occasion covariance between PA and NA.
8.3A simple AR(1) illustration
For your researchThis shows with simple numbers how NA's carry-over makes ratings a few hours apart resemble each other. It also explains why "NA fluctuates a lot" and "NA changes abruptly" are two different properties of a person.
Suppose a centered NA process follows:
In plain English70% of the previous prompt's deviation in NA () is expected to remain at this prompt, and a new surprise () is added.
Assume that the innovations are independent over time and that the process is stationary, meaning its mean, variance, and autocorrelations do not change over time.
Then the lag-one autocorrelation is . The lag-two autocorrelation is:
In plain EnglishTwo prompts apart, the carry-over is applied twice: 0.70 times 0.70.
And the lag-three autocorrelation is:
In plain EnglishThree prompts apart, it is applied three times, so the resemblance keeps fading.
In this simple example, observations become less correlated as their separation grows:
| Time separation | Correlation in this AR(1) illustration |
|---|---|
| One interval | 0.70 |
| Two intervals | 0.49 |
| Three intervals | 0.343 |
This pattern is one possible temporal correlation structure. The corresponding covariance values additionally depend on the stationary variance of NA, which for an AR(1) process is
In plain EnglishHow widely a person's NA swings around their own usual level: the size of the new surprises (), enlarged because past surprises pile up through the carry-over.
With , the total within-person variance is about twice the innovation variance (). Persistence accumulates past innovations, so a persistent process fluctuates more widely than its individual shocks.
Real data may require other structures: AR(2), moving-average components, trends, periodicity (for example, daily cycles), time-varying variances, or continuous-time models.
A slow trend can also make NA look more persistent than it is. If NA drifts slowly over the study, successive prompts look more alike than the moment-to-moment process alone would make them, and an autoregressive coefficient estimated without accounting for the trend is typically too large (Viechtbauer, 2026b, p. 184). One common trend in EMA data is the initial elevation bias: many participants report higher values in their first few assessments, followed by a slight decrease that then stabilizes. Its cause is unknown, and it is one reason why some researchers set aside the first few assessments (Kuppens & Myin-Germeys, 2026, p. 29, citing Shrout et al., 2018). Section 13.5 includes checking for trends in the model-building sequence.
Variability and instability are different properties. A person's within-person variance is sometimes used as a measure of emotional instability. However, a strongly persistent process (high ) can wander far from its mean, and so have a large variance, while changing only a little from one prompt to the next (Jahng et al., 2008). As a measure of moment-to-moment instability, Jahng and colleagues proposed the mean squared successive difference (MSSD), the average squared change between consecutive prompts. For a stationary AR(1) process with total variance :
In plain EnglishThe average squared jump between consecutive prompts. It grows with the overall spread and shrinks when the carry-over is high.
Two people can therefore have the same variance and very different instability. For example, a person who feels good during the first half of the week and bad during the second half shows the same variability as a person who alternates between feeling good and bad all week, but a very different pattern of change (Kuppens & Myin-Germeys, 2026, p. 30). The MSSD is useful, and it also works for data with trends, but it does not provide a model of the actual process (Hamaker, 2012). A dynamic model, by contrast, separates persistence () from the size of new shocks (the innovation variance).
8.4Why does temporal covariance matter for inference?
For your researchThis explains why 180 prompts from one person are worth less than 180 independent answers, and when that makes your p-values too small or your intervals too narrow.
If 180 observations from Jayce are strongly correlated, they do not contain the same information as 180 independent observations. The effective sample size summarizes this loss: it is the number of independent observations that would contain the same information. For estimating a mean from an AR(1) series, it is approximately
In plain EnglishHow many fully independent answers a person's correlated answers are worth when estimating their average. The stronger the carry-over , the fewer.
With and , . Jayce's 180 prompts contain roughly as much information about his mean NA as 32 independent ones.
Whether this dependence biases the standard errors depends on the model. If the model's lagged terms capture the dependence, so that the innovations are uncorrelated over time, the regression standard errors are valid. The problem arises when dependence remains in the residuals, for example in a purely contemporaneous model that ignores temporal structure while both predictor and outcome are autocorrelated. Treating the observations as independent then makes standard errors too small, intervals too narrow, and p-values too small.
The temporal structure also changes the substantive interpretation of the coefficients. If NA has strong persistence, an apparent association between ER and later NA may partly reflect the fact that people use ER during episodes that were already changing. Incorporating relevant lagged variables changes what an ER coefficient is conditioned on (Section 2.4).
8.5Three related but different sources of covariance
For your researchThree kinds of "going together" can occur in the same data: people who are high on both variables, moments that resemble nearby moments, and surprises that hit two variables at the same prompt.
(a) Stable between-person covariance. People who generally have higher ER may also generally have higher NA. This is covariance between people's typical levels.
(b) Temporal covariance within a person. Jayce's NA at 2 p.m. may resemble his NA at noon. This is covariance between occasions.
(c) Contemporaneous innovation covariance. Jayce may experience a sudden rise in NA and a sudden fall in PA at the same prompt, beyond what the model predicted from earlier measurements. These unexpected deviations may be correlated.
A model may represent one, two, or all three of these covariances.
8.6What is an innovation?
For your researchAn innovation is the surprise part of NA at a prompt: what the earlier prompts could not predict. This section explains what such surprises contain, why some people have bigger surprises than others, and where the word comes from.
In a dynamic model, an innovation is the part of an outcome at the current time that the model did not predict from earlier information and the other included predictors.
Imagine the model predicts Jayce's NA at 4 p.m. will be 35, but he reports NA = 65 after an unexpected conflict. His NA innovation is +30 on this simplified interpretation.
At the same occasion, perhaps his PA is 25 points below its predicted value and his ER is 15 points above its predicted value.
Those departures might be correlated:
- NA innovation: +30.
- PA innovation: -25.
- ER innovation: +15.
A joint dynamic model may specify:
In plain EnglishAt each prompt, the surprises in reappraisal, PA, and NA are drawn together from a bell-shaped distribution centered on zero. The matrix describes, for person , how large the surprises tend to be and how they move together.
The matrix is:
In plain EnglishA three-by-three table. The diagonal cells are the variances of each variable's surprises (how large they tend to be). The other cells are covariances: they say whether, at the same prompt, a surprise in one variable tends to come with a surprise in the same direction (positive) or in the opposite direction (negative) in another variable. The table is symmetric because "PA with NA" is the same as "NA with PA."
The diagonal elements are innovation variances: how much unexplained fluctuation each variable has. The off-diagonal elements are innovation covariances: how those unexpected fluctuations co-occur.
For example, a negative would mean that occasions with unexpectedly elevated PA tend to have unexpectedly reduced NA, after conditioning on the model's predictors.
The subscript on means that each person may have their own innovation variances and covariances. Mplus has long allowed random innovation variances, modeled on the log scale so they stay positive. Since Mplus 8.9 (2023), it also allows random innovation correlations: each person's correlation is modeled through the Fisher transformation, , which is normally distributed across persons, and the median person-level correlation is recovered as of the mean of . Before version 8.9, this required workarounds.
The content of an innovation. The innovation is the combined effect of everything that happened between two prompts and influenced the process: conversations with colleagues or family, a stressful email, coffee or alcohol, news, a memory that came to mind, a worry about tomorrow (Hamaker, 2012). The model does not need to name these influences. It only describes how large their combined impact tends to be (the innovation variance) and how it carries forward over time (through the dynamics).
People can differ in innovation variance for two reasons (Jongerling et al., 2015): some people are exposed to more or larger events, and some people react more strongly to the same events. For this reason, DSEM allows the innovation variance to differ between people.
Origin of the word "innovation." The term comes from engineering and the mathematics of prediction, not from psychology. An innovation is the part of the current observation that is new: the part that could not have been predicted from everything observed before.
- Origin. The idea goes back to Wold (1938), who showed that any well-behaved stationary series can be written as a weighted sum of past unpredictable shocks (the Wold decomposition), and to work on predicting stationary processes by Kolmogorov (1939-1941) and Wiener (1942, published 1949). Bode and Shannon (1950), and independently Zadeh and Ragazzini (1950), simplified Wiener's prediction theory by first turning a signal into the series of its unpredictable parts. Each of those parts is new information that arrives at that moment, hence the later name "innovation." The name itself was apparently first used by Wiener and Masani in the mid-1950s (Kailath, 1974).
- Spread. The "innovations approach" papers by Kailath (from 1968 onward) made the term standard in filtering. In the Kalman filter, the innovation is the gap between a new measurement and its prediction: the "compare" step in Section 10.8.
- In time-series models. Because the lagged terms already capture what the past predicts, the residual of a model such as is exactly this unpredictable new part. That is why time-series texts call it the innovation. Econometricians also call it a shock. Other names include random shock, disturbance, residual, and dynamic error (Hamaker, 2012; Hamaker et al., 2017).
- What the name conveys. Calling it an innovation rather than just an error signals the point of Section 6.5: an innovation enters the process and is carried forward by the dynamics, whereas a measurement error is not.
A note on sources: Wikipedia's entry Innovation (signal processing) credits Bode and Shannon (1950) with the word itself, but the word does not appear in their paper. So we do not know for certain who coined the term. The account above follows Kailath (1974), "A view of three decades of linear filtering theory" (doi.org/10.1109/TIT.1974.1055174), who says only that the name was "apparently" first used by Wiener and Masani. The later mathematical theory of "innovation representations" is reviewed in a 1989 survey in the Bulletin of the American Mathematical Society.
8.7Are contemporaneous innovation covariance and contemporaneous ER-NA association identical?
For your research"Reappraisal and NA go together at the same prompt" can mean three different things, depending on what has been removed first. This helps you say which one your model estimated.
A raw contemporaneous association relates measured ER and NA at the same occasion and can reflect stable person differences, predictable temporal evolution, and occasion-specific co-movement.
A within-person contemporaneous association removes stable person differences but may still reflect predicted temporal structure.
A contemporaneous innovation covariance concerns what remains associated after the model has accounted for earlier information.
These three quantities are different estimands. A residual innovation covariance does not determine the direction of an instantaneous causal relationship.
8.8Residual autocorrelation: A diagnostic warning
For your researchAfter fitting a dynamic model, check whether the leftovers still show a pattern over time. If they do, the model has missed part of how NA changes.
Even after including and other lagged predictors, the residuals might still be temporally correlated. Remaining autocorrelation suggests that the specified dynamics have not captured all temporal dependence, or that the innovation assumptions are incomplete. Plotting the autocorrelation function (ACF) of the residuals is the standard check. Mplus provides ACF and partial autocorrelation (PACF) plots for time-series models.
9The random-intercept cross-lagged panel model (RI-CLPM)
For your researchThis section is for the case where you have a few waves of data months apart rather than daily prompts, for example ER and depressive symptoms measured four times over a year. It shows how the RI-CLPM separates "who is generally high" from "who is higher than usual at a given wave," and how it relates to DSEM.
The RI-CLPM separates stable between-person differences from within-person temporal processes.
9.1The problem with a traditional cross-lagged panel model
For your researchA traditional cross-lagged panel model can make stable differences between people look like effects of reappraisal over time.
A conventional cross-lagged panel model can mix stable individual differences with within-person dynamics. For example, a finding that people with generally high ER later tend to have high NA does not establish that increases in ER within a person predict later increases in that person's NA.
The RI-CLPM addresses this problem by explicitly separating trait-like or stable person-specific components from within-person deviations. The distinction was motivated by a methodological critique of the traditional model (Hamaker et al., 2015).
9.2Decomposing an observed score
For your researchEach person's score at a wave is split into three parts: the average of everyone at that wave, the person's stable difference from that average, and the person's temporary deviation at that wave. Only the temporary deviations are used to study change within people.
For ER and NA, write:
In plain EnglishA person's reappraisal score at wave equals the group average at that wave, plus the person's stable difference from the group, plus a temporary deviation at that wave.
In plain EnglishThe same three-part split for NA.
Here:
- and are the population means at wave .
- and are stable person-specific deviations from those means: the random intercept factors. In the SEM, each is a latent factor whose loadings on that variable's observed scores are all fixed to 1.
- and are the within-person deviations at occasion . They are latent variables too. With a single indicator per wave, they also absorb any measurement error.
For example, Jayce may generally experience higher NA than Vi, represented by his stable NA component. On a particular day he may feel unusually distressed relative to himself, represented by a positive .
9.3Modeling the within-person temporal process
For your researchThe within-person part of the RI-CLPM answers the question: when a person reappraises more than usual at one wave, is their NA lower than expected at the next wave, given their NA at the earlier wave?
A simple two-variable RI-CLPM specifies:
In plain EnglishA person's temporary reappraisal deviation at this wave is predicted by their own reappraisal deviation and their NA deviation at the previous wave.
In plain EnglishA person's temporary NA deviation at this wave is predicted by their own NA deviation and their reappraisal deviation at the previous wave.
Read the second equation as:
Jayce's deviation in NA at the current occasion is predicted by his deviation in NA at the previous occasion and his deviation in ER at the previous occasion.
The RI-CLPM can also allow:
- Covariance between the two stable random intercept factors.
- Covariance between within-person innovations at the same wave.
- Time-specific means and, in conventional specifications, time-specific dynamic parameters or variances.
9.4Why is it called random-intercept rather than random-slope?
For your researchA standard RI-CLPM lets people differ in their usual levels, but it gives everyone the same reappraisal-NA link over time. If you expect that link to differ between people, you need an extended model.
The random intercepts let people have different stable levels of ER and NA. They do not automatically give each person their own lagged ER-NA coefficient.
A conventional RI-CLPM might estimate one common cross-lagged coefficient for a given interval:
In plain EnglishOne shared number for everyone: a reappraisal deviation 10 points higher at one wave predicts an NA deviation 2.5 points lower at the next wave, holding the earlier NA deviation constant.
The model therefore does not estimate a separate coefficient for each person, such as -0.40 for Jayce and -0.05 for Vi. To represent random temporal slopes, we would need an extended model with that additional structure.
As in Section 4, random intercepts and random slopes answer different questions: random intercepts describe differences in stable levels, and random slopes describe differences in temporal relationships.
9.5RI-CLPM versus DSEM: Similarities
For your researchFor the core within-person question about reappraisal and later NA, the RI-CLPM and DSEM can write down the same lagged equations.
Both can describe:
- Within-person autoregressive relationships.
- Within-person cross-lagged relationships.
- Stable between-person differences.
- Covariance among stable person-level components.
- Same-occasion innovation covariance.
A constrained RI-CLPM and a corresponding simple DSEM can express the same lagged within-person equations (Section 9.7).
9.6RI-CLPM versus DSEM: Usual differences
For your researchIn practice, the choice usually follows from your design: a few waves months apart point to the RI-CLPM, many prompts per day point to DSEM. The other differences concern time-specific parameters, random slopes, richer time-series structures, and estimation.
Typical sampling designs. RI-CLPMs are commonly used for panel studies with a relatively small number of waves, for example, baseline, 3 months, 6 months, and 9 months. DSEM is particularly oriented toward intensive longitudinal data, such as 180 EMA occasions per person. The difference lies in common application. Mathematically, either model can be specified for either design, subject to the practical limits described in Section 9.7.
Some studies combine both time scales. A measurement-burst design repeats a week or so of EMA several times, months apart. One study used three one-week bursts spread over a year (Dejonckheere et al., 2018, as cited in Cloos et al., 2026, pp. 39-40). DSEM suits the moment-to-moment dynamics within each burst, and panel models suit the change between bursts. The pre-post model in Part 3 of the walkthrough tab shows one way to model two EMA periods together.
Time-specific parameters. Traditional RI-CLPM implementations often allow wave-specific means and other wave-specific parameters. Analysts can constrain paths to be equal if stationarity is plausible. Basic intensive longitudinal DSEM formulations often use time-invariant dynamic parameters and stable person-specific means, while allowing extensions for trends and other nonstationarity.
Random dynamic coefficients. DSEM accommodates hierarchical variation in autoregressive or cross-lagged coefficients. Conventional RI-CLPM random intercepts account for stable level differences, not necessarily person-specific slopes. Extended RI-CLPMs relax some of these restrictions, for example with multiple indicators, multiple groups, and time-invariant predictors and outcomes (Mulder & Hamaker, 2021).
Richer time-series structures. DSEM frameworks are designed for features such as higher-order lags, dynamic latent variables, and subject-specific innovation variances. SEM can also be extended to contain many of these structures, although some of these extensions are less convenient computationally.
Parameterization and estimation. Different software may use different constraints, latent-variable parameterizations, priors, treatments of initial observations, and estimators. Those differences can affect results even when the conceptual questions are similar.
Both models share a further limitation: cross-lagged panel models can fail to recover cross-lagged effects, for example when the true process involves feedback at a faster time scale than the measurement interval (Muthén & Asparouhov, 2024). A cross-lagged coefficient is always relative to the chosen interval and model.
9.7When could RI-CLPM and DSEM be effectively equivalent?
For your researchIn theory, an RI-CLPM fitted to your EMA data could give the same answer as a simple DSEM. In practice, with 180 prompts per person, the RI-CLPM is impractical to estimate in its usual form, which is the main practical reason for using DSEM with EMA data.
Suppose we fit a three-variable RI-CLPM to all 180 occasions, constrain corresponding lagged coefficients to be equal across intervals, and use an appropriate treatment of stable person differences and innovation covariances.
Now suppose we fit a DSEM with the same dynamic equations, the same initial-condition assumptions, compatible variance structures, and no random temporal slopes. The two models can then encode the same substantive process and may imply the same population covariance structure. With latent centering, the DSEM person means play exactly the role of the RI-CLPM random intercepts, and the DSEM within-person components play the role of the RI-CLPM within-person deviations.
Equivalent structural equations do not guarantee numerically identical estimates if the actual likelihoods, prior distributions, missing-data assumptions, or initialization differ.
The wide-format RI-CLPM is not practical with 180 occasions. An RI-CLPM is usually estimated in wide format, with one column per variable per wave. With 3 variables and 180 occasions that is 540 observed variables for 150 persons: more variables than people, so the sample covariance matrix cannot be of full rank. A heavily constrained model can in principle still be fitted to the raw data, but the unrestricted covariance matrix cannot be estimated, so the usual chi-square test of fit is unavailable, and estimation becomes difficult. Wide format also requires that "occasion 37" means the same moment for everyone, which EMA schedules with random prompts and missed beeps rarely satisfy. DSEM avoids both problems by working in long format, with occasions as rows and a model whose number of parameters does not grow with the number of occasions. This practical limit, and not a difference in the processes the two models can describe, is the main reason DSEM is used for intensive longitudinal data.
10Dynamic structural equation modeling (DSEM)
For your researchThis section explains what DSEM adds to an emotion regulation study: one model in which ER, PA, and NA predict each other over time, each person can have their own dynamics, missed prompts are handled within the model, and the person-specific results can be related to other variables such as depression.
Dynamic structural equation modeling (DSEM) integrates three modeling traditions:
- Time-series modeling: Describe dependence across occasions, including autoregressive and cross-lagged processes.
- Multilevel modeling: Describe variation between people in levels and, when specified, temporal coefficients or variances.
- Structural equation modeling: Represent multiple equations, covariances, latent variables, and measurement models within an integrated framework.
The name does not imply that every DSEM automatically has latent questionnaire factors, correlated innovations, random slopes, or multiple outcomes. Those are modeling choices.
10.1The ordinary multivariate DSEM baseline
For your researchThis writes the whole three-variable system for one person in compact form. You can read it as: each person has usual levels, and their moment-to-moment departures from those levels follow a set of carry-over and cross-influence rules.
Collect our three variables into a vector:
In plain EnglishThe three scores of person at prompt , stacked into one column so they can be handled together.
Decompose each person's observed scores into their characteristic levels and within-person departures:
In plain EnglishEach score equals the person's usual level plus their departure from that level at this prompt.
The vector of person means is:
In plain EnglishThe person's three usual levels: one for reappraisal, one for PA, and one for NA.
The vector represents person-specific expected levels under this simplified stationary model, and represents deviations from those levels. In DSEM, is latent: it is estimated as part of the model (latent centering), not computed beforehand as an observed average. The elements of are the , , and from the notation guide.
A multilevel VAR(1) model is:
In plain EnglishThe departures at this prompt equal a table of weights () applied to the departures at the previous prompt, plus new surprises. This one equation describes the whole dynamic system.
The lag matrix is:
In plain EnglishA three-by-three table of weights for person . Each row is an outcome at this prompt, and each column is a predictor at the previous prompt.
Rows correspond to later outcomes, and columns correspond to earlier predictors. The matrix therefore contains nine potential lagged relationships.
10.2Expanding the three equations
For your researchThis spells out the compact form as three ordinary-looking regressions, so you can see which number answers "does reappraisal predict later NA?" and which answers "does NA predict later reappraisal?"
In plain EnglishThe same system written out as three regressions, one per variable. Each uses all three variables from the previous prompt, with person-specific weights.
For example:
- : Earlier ER later ER (ER autoregression).
- : Earlier PA later PA (PA autoregression).
- : Earlier NA later NA (NA autoregression, often called emotional inertia).
- : Earlier ER later NA.
- : Earlier NA later ER.
- : Earlier ER later PA.
Other off-diagonal entries similarly describe cross-lagged relationships.
10.3A hypothetical lag matrix and its interpretation
For your researchThis interprets a full set of example numbers and shows how to see what the system does over several prompts: for example, how a spike in NA is followed by more reappraisal and then fades away.
Suppose, for illustration, that the modeled population-average coefficients are:
In plain EnglishExample weights, with rows and columns in the order reappraisal, PA, NA. For instance, the bottom-left cell () says that reappraisal at one prompt predicts lower NA at the next, and the top-right cell () says that NA at one prompt predicts more reappraisal at the next.
The row and column order is ER, PA, NA. Interpret four examples:
NA later ER = +0.30. Occasions with greater-than-usual NA predict greater-than-expected ER at the following occasion, adjusting for the other earlier variables. This is consistent with people deploying strategies when distressed, but not proof of that mechanism.
ER later NA = -0.30. Greater-than-usual ER predicts lower later NA, conditional on the modeled prior state.
ER later PA = +0.25. Greater-than-usual ER predicts higher later PA, conditional on the modeled prior state.
NA later NA = +0.70. NA exhibits substantial conditional persistence over one interval.
All of these are partial predictive coefficients. They are not automatically standardized. Their interpretation in units depends on whether the data were standardized and on the measurement scales used.
These invented values are deliberately large so that the dynamics are easy to see. For comparison, a multilevel VAR(1) model fitted to a synthetic illustration dataset (200 people, 10 prompts a day for 6 days) gave autoregressions of 0.38 for PA and 0.27 for NA and cross-lagged coefficients of only (NA to later PA) and (PA to later NA) (Lafit, 2026a, pp. 211-214). Small cross-lagged effects are typical of affect data (Section 7.6), which is one reason why EMA studies need many prompts and many people.
The behavior of the system over time. Individual coefficients do not show how the system behaves as a whole, but two tools do: the impulse response and the eigenvalues of the lag matrix.
The first is the impulse response: start from everyone at their usual levels, add a one-time departure to one variable, and apply the lag matrix repeatedly to see how the departure spreads to the other variables over the following occasions. Suppose NA is 10 points above its usual level at occasion 0, while ER and PA are at their usual levels. Multiplying by step by step gives the expected departures:
| Occasions later | ER | PA | NA |
|---|---|---|---|
| 0 | 0.00 | 0.00 | 10.00 |
| 1 | +3.00 | -1.00 | +7.00 |
| 2 | +3.25 | -0.55 | +4.15 |
| 3 | +2.52 | +0.07 | +2.01 |
| 4 | +1.61 | +0.47 | +0.64 |
| 5 | +0.86 | +0.62 | -0.10 |
| 6 | +0.34 | +0.60 | -0.42 |
| 7 | +0.04 | +0.49 | -0.49 |
After the NA spike, expected ER rises, NA falls faster than its autoregression alone would imply, expected PA rises a few occasions later, and NA briefly undershoots its usual level around five to seven occasions later before returning. These are implications of the invented matrix, not data. This simple impulse also assumes that a shock to NA arrives alone. When innovations are correlated, a realistic NA shock comes with simultaneous ER and PA shocks, and impulse responses then depend on how that correlation is handled.
The second tool is the set of eigenvalues of . Eigenvalues are numbers that summarize how strongly the system as a whole amplifies or damps departures from the usual state. If every eigenvalue has a modulus (absolute size) below 1, departures die out and the system is stable. Complex eigenvalues indicate oscillation. For this matrix the eigenvalues are and , with moduli and . The system is stable, and the complex pair produces the damped oscillation seen in the table. The oscillation comes from the negative feedback loop described in Section 7.5: NA later ER is positive while ER later NA is negative.
10.4What makes this DSEM specifically multilevel?
For your researchThe multilevel part lets each participant have their own set of dynamics, so that you can learn how much people differ in, for example, how strongly reappraisal predicts later NA.
The matrix can differ between participants:
In plain EnglishTwo different people, and , can have different tables of weights.
Consider these illustrative values:
| Participant | ER later NA | NA later ER | NA autoregression |
|---|---|---|---|
| Jayce | -0.40 | +0.35 | +0.60 |
| Vi | -0.05 | +0.10 | +0.85 |
| Ekko | -0.30 | +0.50 | +0.45 |
| Jynx | +0.10 | +0.15 | +0.75 |
One possible random-effect equation is:
In plain EnglishEach person's reappraisal-to-later-NA weight equals the average weight () plus that person's own deviation. The deviations follow a bell curve centered on zero with variance . Its standard deviation, , describes how much people differ.
The model estimates the population-average ER NA slope, the between-person variance in that slope, and person-specific slopes with uncertainty.
Other entries can also vary by person if data and model complexity permit.
Normally distributed random coefficients have one technical side effect: nothing prevents a particular person's matrix, in a particular MCMC draw, from being nonstationary (an eigenvalue with modulus of 1 or more). Mplus reports a warning in such cases and excludes those draws when computing standardized estimates. Occasional warnings are usually harmless. Frequent warnings indicate that, for some persons, a substantial share of the sampled lag matrices is unstable.
10.5Can we relate individual differences in two dynamic parameters?
For your researchThis lets you ask questions such as "do people whose NA lingers longer show a weaker link between reappraisal and later NA?" or "does baseline depression predict how long a person's NA lingers?"
Suppose we ask:
Do individuals with stronger NA persistence tend to show weaker negative ER later NA associations?
The statistical quantity could be:
In plain EnglishAcross people, this covariance says whether a stronger NA carry-over goes together with a stronger or weaker reappraisal-to-later-NA weight.
- is person 's ER subsequent NA coefficient.
- is person 's NA autoregressive coefficient.
A covariance between them describes a between-person relationship between two within-person dynamic parameters. The parameters summarize within-person processes, and the covariance describes how those summaries co-vary across individuals.
An appropriately specified multilevel random-effects model can also estimate a covariance among random slopes, so this covariance is not exclusive to DSEM. DSEM estimates it within a multivariate time-series model, together with the other dynamic parameters.
Using person-specific parameters as predictors and outcomes. The SEM part of DSEM treats each person's mean, inertia, slopes, and innovation variance as latent variables at the between level. These latent variables can then enter any between-level structural model (Hamaker et al., 2023):
- Predicting the parameters: does baseline depression predict higher mean NA, stronger NA inertia, or a weaker ER NA slope?
- A common factor: do several person-specific parameters share one underlying dimension, for example a general affective vulnerability? Indices of affect dynamics tend to cluster into a few dimensions across people (Dejonckheere et al., 2019, as cited in Kuppens & Myin-Germeys, 2026, p. 33).
- Mediation through dynamics: does baseline depression predict later depression through NA inertia?
An example of the third type used daily NA from 101 young adults in the COGITO study (Hamaker et al., 2017). In standardized terms, baseline depressive symptoms predicted mean NA (0.43) and NA inertia (0.38). Controlling for baseline symptoms, inertia predicted depressive symptoms at follow-up (0.44), but mean NA did not (0.04, with a credible interval that included zero). When each person's innovation variance was added as a third mediator, the pattern was the same (inertia to later symptoms 0.37; mean NA ). In this sample, the persistence of NA, and not its average level, predicted later depressive symptoms. The walkthrough tab shows how such models are specified in Mplus.
10.6Correlated innovations in DSEM
For your researchCorrelated innovations describe surprises that affect several variables at the same prompt, such as a conflict that raises NA, lowers PA, and is met with more reappraisal, all at the same prompt.
The three current outcomes can contain correlated unexpected changes:
In plain EnglishThe surprises in the three variables at each prompt come from one joint bell curve, so they can be correlated with each other.
For instance, a surprising conflict might coincide with higher-than-expected NA, lower-than-expected PA, and higher-than-expected ER, even after accounting for the previous occasion. The innovation covariance matrix describes these conditional same-occasion associations. As noted in Section 8.6, current Mplus versions allow both the innovation variances and the innovation correlations to vary across persons.
An innovation is distinct from measurement error: it can reflect a real, unforeseen psychological event. A DSEM can represent measurement error separately in two ways: with item-level latent factors when several items per construct are available (Section 6.4), or with a single indicator per construct through the AR(1)+WN structure, which is identified by the dynamics (Section 6.5).
10.7Extensions of DSEM
For your researchA list of extensions you may need later, for example to handle trends, daily cycles, skewed NA ratings, yes/no items, or effects that span more than one prompt.
Depending on the specification and software, DSEM frameworks can also incorporate:
- Higher-order lags, such as AR(2): .
- Dynamic latent factors, such as a time-varying latent PA construct measured by several indicators.
- Person-specific innovation variances and correlations, allowing some individuals to have more unpredictable, or more tightly coupled, moment-to-moment affect than others.
- Covariates and trends, including context, time of day, stressors, and other predictors.
- Residual DSEM (RDSEM), in which the autoregressive structure is placed on the residuals rather than on the outcomes themselves. In RDSEM, covariate effects are purely "direct" (a lagged outcome does not carry a covariate's effect forward), which makes it convenient for modeling time trends as covariates. Without covariates, RDSEM and DSEM coincide (Asparouhov & Muthén, 2020).
- Cycles such as daily or weekly rhythms (Muthén, Asparouhov, & Keijsers, 2025), floor effects in skewed symptom ratings (Muthén, Asparouhov, & Shiffman, 2025), missing-not-at-random mechanisms (McNeish, 2025), and intensive longitudinal mediation (McNeish & MacKinnon, 2025).
- Non-normal outcomes. NA ratings are often skewed, with many low values, and some EMA items are yes/no or counts. In Mplus, binary and ordinal items can be declared categorical in DSEM. For mixed models in R, options include logistic models for yes/no items (such as "Are you alone?"), Poisson models for counts (such as the number of stressful events since the last prompt), Gamma models for positively skewed scores, and negative binomial, zero-inflated, hurdle, and two-part models (Lafit, 2026a, pp. 189-205 and 216-217). Emotion regulation items raise the same issue. An item such as "Since the last prompt, how much did you use reappraisal?" often has many zeros, because at many prompts no regulation was attempted, and a normal model can then fit poorly. Options include the floor-effects approach for DSEM (Muthén, Asparouhov, & Shiffman, 2025) or splitting the item into two parts: whether the strategy was used, and how much when it was. Check the distribution of each item before choosing a model.
- Complex time-series dependence, when justified and supported by the available information.
In a multivariate VAR(1), stability depends on the eigenvalues of the lag matrix, not on whether each coefficient lies between -1 and +1. A matrix whose individual entries are all modest can still be unstable, and vice versa. Parameter plausibility and system stability should be assessed jointly, as illustrated in Section 10.3.
10.8How DSEM handles missing and unevenly spaced prompts: the Kalman filter idea
For your researchYour participants will miss prompts, and every night creates a long gap. This explains in everyday terms how DSEM fills those gaps using the surrounding answers instead of throwing data away, and why that gives better estimates of how long NA lingers and of what reappraisal predicts.
Real EMA data contain gaps. People miss prompts, and prompts are not equally spaced: two hours during the day, fourteen hours overnight. Lagged models need "the previous occasion," so every gap leaves a lagged predictor missing. DSEM handles these gaps in a way that ordinary lagged regression cannot. Its approach can be understood through the Kalman filter, a method engineers have used since 1960 (Kalman, 1960; Harvey, 1989).
The Kalman filter in plain words
Imagine you want to know Jayce's true level of negative affect at every moment. You never see it directly. You only have two imperfect sources of information:
- A prediction. From Jayce's NA at the previous prompt and his inertia, you can predict where his NA should be now. With , if he was 10 points above his usual level two hours ago, you predict about 7 points above it now. The prediction is uncertain, because new things may have happened since then (innovations).
- A measurement. Jayce's new self-report. It is also imperfect, because of measurement error.
The Kalman filter combines the two, giving more weight to whichever source is more precise. At every prompt it repeats three steps:
- Predict. Move the previous best guess forward with the model (multiply its deviation by ) and widen the uncertainty, because innovations may have occurred.
- Compare. See how far the new report is from the prediction.
- Update. Move the guess part of the way toward the report. The fraction moved is called the Kalman gain:
In plain EnglishThe Kalman gain is the weight given to the new report. The more uncertain the prediction is compared with the report, the further the guess moves toward the report.
If the self-reports are very precise, is close to 1 and the guess jumps almost all the way to the report. If the reports are noisy, is small and the guess moves only a little. The updated guess is also more certain than either source alone, because two independent pieces of information have been combined.
Missing prompts. When a prompt is missing, there is nothing to compare, so the filter skips steps 2 and 3. It keeps the prediction and lets the uncertainty grow. At the next observed prompt it compares and updates again. The information from before the gap is therefore carried across it, discounted by the dynamics ( for a two-step gap), with correspondingly larger uncertainty.
A companion tool, the Kalman smoother, goes back over the whole series afterwards and also uses the prompts that came after a gap. The estimate for a missing prompt then uses information from both sides of the gap.
What DSEM does
DSEM turns an unequal-interval problem into a missing-data problem. TINTERVAL places the prompts on a regular time grid, empty grid cells become missing values, and these are handled with "a discrete-time Kalman filter approach, which is known to perform well in case of data missing at random" (Hamaker et al., 2023, p. 580).
Strictly speaking, Mplus does the equivalent work inside its Bayesian sampler. Missing values are treated like unknown parameters: at every iteration, the sampler draws new values for them given the model, the current parameter values, and the surrounding data (Asparouhov et al., 2018). Over many iterations, for a linear model with normally distributed errors and given the parameters, these draws follow the same distribution that a Kalman smoother computes. The sampler also averages over uncertainty in the parameters. For missing prompts, the plain-words description above therefore describes what DSEM achieves, even though Mplus does not run a separate filter. The grid approach "tends to work quite well up to 80% of missing data" (Hamaker et al., 2023, p. 581). Here the missing data are mainly the empty grid cells that TINTERVAL inserts, not prompts that participants skipped, and the figure comes from simulations under specific conditions (Asparouhov et al., 2018). It is not a general tolerance for nonresponse. Inserting too many missing values between observations can also destabilize the estimation (Asparouhov et al., 2018).
Which part of the filter applies depends on the model. The plain-words description assumed that each report contains measurement error. A DSEM without a measurement-error term, such as the main input in Section 13.2, assumes instead that each report is the person's exact state at that moment. Its measurement-error variance is 0, so : the model takes every observed report at face value and uses the prediction step only to fill in missing prompts. The weighting between prediction and report happens only when a measurement-error term is added (Section 6.5). Filling in missing prompts, separating measurement error from the true state, and handling unequal gaps are therefore three different problems. DSEM can address all three, but the default model addresses only the first, and the third when TINTERVAL is used.
This approach assumes that prompts are missed "at random." This means that, once the observed data are taken into account, whether a prompt is missed does not depend on the unobserved values themselves. Missed prompts can follow a pattern, for example when a participant consistently misses the first prompt of the day, or depend on the very phenomenon under study, as when a patient skips prompts during panic (Cloos et al., 2026, p. 62). Time-of-day patterns can be handled by including time in the model. In a study that recorded short audio snippets at missed prompts, there was little evidence that missing a prompt was related to emotions or social interactions (Sun et al., 2021, as cited in Cloos et al., 2026, p. 62). When missingness depends on the unobserved NA itself, models for data missing not at random are needed (McNeish, 2025; Section 10.7).
What ordinary lagged regression cannot do
Consider an ordinary lagged multilevel regression in lmer(). Each row needs an observed outcome and an observed lagged predictor, which creates three problems.
- Every missed prompt removes two pieces of information. A missed 2 p.m. prompt removes the pair (noon, 2 p.m.) and the pair (2 p.m., 4 p.m.). With 30% of prompts missing at random, only about half of the consecutive pairs remain (). The noon report still contains information about 4 p.m., but lagged regression cannot use it. DSEM can, because the model links the noon report to 4 p.m. through the dynamics. (In the example dataset described in Section 5.2, this rule and the overnight rule cost the lagged analysis 23% of its rows.)
- Using the last available prompt silently changes the lag. If the analyst lags to the previous available row, some "one-step" lags span four or six hours. The coefficient then blends different intervals. In this example, with positive inertia that fades over time, the blend pulls the coefficient toward zero. For cross-lagged coefficients, which can rise and then fall as the interval grows (Section 14.1), the direction of the bias can differ. Filling a missing lag with an earlier prompt "would again require further adjustments to the model" for the longer lag (Viechtbauer, 2026b, p. 182).
- A lagged predictor measured with error is treated as error-free. Regression takes the predictor at face value, so measurement error in NA at attenuates the estimated inertia. A state-space model (the Kalman framework, or DSEM with a measurement-error term) separates the latent state from the noisy report and estimates the inertia of the latent state.
A simulation shows the size of all three problems. 150 simulated persons each had 180 prompts and a true NA inertia of 0.50. "Within-person reliability" is the share of within-person variance in the reports that comes from the true state rather than measurement error. Each cell is the average estimate over 20 simulated studies. Because each simulated study is large, the estimates varied little from study to study: the Monte Carlo standard error of each cell (the uncertainty that comes from averaging a limited number of studies) is between 0.001 and 0.004. The R code is in Section 21.2.
| Condition | Lagged regression, complete pairs | Lagged regression, last available prompt | Model-based, no measurement-error term | Model-based, with measurement-error term |
|---|---|---|---|---|
| Complete data, no measurement error | 0.49 | 0.49 | 0.50 | 0.50 |
| 30% of prompts missing | 0.49 | 0.40 | 0.50 | 0.50 |
| Within-person reliability 0.70, complete data | 0.34 | 0.34 | 0.35 | 0.50 |
| Within-person reliability 0.70, 30% missing | 0.34 | 0.28 | 0.36 | 0.50 |
"Model-based" means maximum likelihood with a Kalman filter and a latent person mean, which targets the same quantities as DSEM with latent centering.
- Missing at random, complete pairs only: lagged regression remains approximately unbiased but is less precise. In a separate set of 200 simulated studies with 40% of prompts missing, the standard deviation of the complete-pair estimates across studies was about 1.25 times that of the model-based estimates (bootstrap 95% interval 1.15 to 1.35). Since precision grows with sample size, complete-pair regression would need roughly 1.5 times as many persons to be as precise.
- The large biases come from lagging to the last available prompt and from ignoring measurement error. The Kalman approach removes the first bias without further specification. The second requires the model to include a measurement-error term (Section 6.5).
- The small difference in the first row (0.49 versus 0.50) is Nickell bias, which is small with 180 prompts per person (Section 5.4).
Comparison with other approaches.
lmer()has all three problems above and uses observed rather than latent person means.- Lagged regression with the interval as a moderator. One can compute the time since the previous prompt and let it interact with the lagged predictor, so that the lagged association can weaken over longer gaps (Selig et al., 2012; suggested in Viechtbauer, 2026b, p. 181). This takes unequal spacing into account, but it still drops the pairs around missed prompts and treats the lagged predictor as error-free.
nlmeorglmmTMBwith continuous-time residual structures (corCAR1(),ou()) handle unequal spacing in the residuals. The lagged predictors, however, must still be observed, and measurement error in them is not separated.- RI-CLPM in wide format uses full-information maximum likelihood, which also uses all available data. It requires the same waves for everyone, which EMA schedules do not provide.
- Continuous-time models, such as
ctsemin R (which uses the Kalman filter directly) or continuous-time RDSEM in Mplus, use the exact time stamps instead of a grid. They are "the most truthful way to handle unequal intervals" (Hamaker et al., 2023, p. 580), although the grid-with-missing-data approach performed about equally well in simulations (De Haan-Rietdijk et al., 2017).
The Kalman approach is therefore not unique to DSEM. DSEM combines it with random effects for every person, latent centering, optional measurement-error terms, and a between-level SEM in one model.
11Comparison of the four approaches
For your researchThis section puts the four approaches side by side, so that you can match your emotion regulation question to the simplest approach that answers it.
This table concerns common implementations, not absolute mathematical limits. Whether a capability is present depends on the actual model specified.
| Capability | MLM via lmer() |
MSEM | Conventional RI-CLPM | Multilevel DSEM |
|---|---|---|---|---|
| Handles repeated observations | Yes | Yes | Yes | Yes |
| Separates within- and between-person associations | If specified appropriately (observed person means) | Yes, with latent person means | Core design feature | Core feature (latent centering) |
| Estimates same-occasion ER-NA association | Yes | Yes | Can represent within-wave association/covariance | Yes |
| Estimates lagged ER NA association | With lagged predictors | With lagged structure | Yes | Yes |
| Estimates NA autoregression | With lagged NA (Nickell bias in short series) | With lagged structure | Yes | Yes (no Nickell bias) |
| Estimates random lagged ER NA slopes | Yes, if specified | Possible | Not in a conventional RI-CLPM | Yes, if specified |
| Estimates ER, PA, and NA jointly | Not with three ordinary separate lmer() fits |
Yes | Yes | Yes |
| Estimates cross-outcome innovation covariance | Not with ordinary separate lmer() fits |
Possible | Yes | Yes, including person-specific (random) correlations |
| Represents item-level latent measurement models | Not natively | Yes | With an appropriate measurement extension | Yes; also single-indicator AR(1)+WN |
| Separates day-level from moment-level variation | Three-level random intercepts, e.g., (1 | id/day) |
Three-level SEM | No | Three-level DSEM (Mplus 9 and later) |
| Handles unequal spacing directly | With nlme corCAR1() or glmmTMB ou() residuals |
No | No (wave-based) | TINTERVAL approximation; continuous-time RDSEM for two-level observed-variable models |
| Naturally oriented toward very dense EMA | Less specialized | Depends on specification | Less commonly used for dense EMA (wide format) | Yes |
| Accommodates rich time-series structures | Limited in lmer() itself |
With extensions | With extensions | A central design goal |
| Bayesian estimation required? | No | No | No | Not mathematically; in Mplus, yes (ESTIMATOR = BAYES); the R package mlts is also Bayesian |
A "yes" in the table means the framework can represent it, not that every analysis automatically does. A "no" or "not conventional" does not mean that an equivalent model is impossible through extensions or other software.
The table should not be read as a ranking in which DSEM is always best. A simpler model that answers the intended question under defensible assumptions is preferable to an unnecessarily complex model.
11.1When the four approaches agree and when they differ
For your researchIf your question is "on average, does reappraisal predict lower NA at the next prompt?", all four approaches can give the same answer. Their answers differ when you ask about differences between people, volatility, measurement error, or gaps.
When the four approaches give the same answer. Suppose the question is: "On average, when a person's ER is higher than usual at one prompt, is their NA lower than expected at the next prompt, holding their previous NA constant?" The estimand is one fixed within-person cross-lagged coefficient , with stable person means removed. Suppose also that the data are complete, the prompts are equally spaced, measurement error is negligible, each person has many occasions, and the same equation is fitted. Then a lagged MLM, a dynamic MSEM, a constrained RI-CLPM, and a DSEM without random slopes all estimate the same . In the analogous simulation for inertia in Section 10.8, run under exactly these conditions, lagged regression gave 0.49 and the model-based estimate 0.50 (true value 0.50). The small differences that remain come from Nickell bias, priors, and the handling of the first observation.
When they give different answers. The approaches give different answers when the question concerns a quantity that only some of them estimate in their usual form:
- Do people differ in how strongly ER predicts later NA? A random-slope MLM or DSEM gives the average slope and the spread of slopes, whereas a conventional RI-CLPM gives one slope for everyone.
- Does NA also predict later ER, and do the two variables share surprises? A joint model (MSEM, RI-CLPM, DSEM) estimates both directions and the innovation covariance, whereas two separate
lmer()fits do not estimate the covariance. - Are some people more emotionally volatile? Only DSEM routinely gives each person their own innovation variance.
- Is inertia underestimated because of measurement error? DSEM can include a measurement-error term even with single items, whereas a lagged MLM cannot.
- How are missed prompts and overnight gaps handled? DSEM carries information across them through the model, whereas a lagged MLM drops the affected pairs.
- What if the data are four waves, months apart? The RI-CLPM is the natural choice, because DSEM needs many occasions per person.
- complete data
- equally spaced prompts
- negligible measurement error
- many occasions per person
- the same equation in every model
neg_aff ~ lag_NA_cwc + lag_ER_cwc + (1 | id)within: NA = φ·NA(t−1) + β·ER(t−1) + εna(t) = φ·na(t−1) + β·er(t−1) + ε, equal over wavesnegaff ON negaff&1 er&1;| Question | MLM (lmer) | MSEM | RI-CLPM | DSEM |
|---|---|---|---|---|
| Do people differ in β? | average β and its spread | random slopes possible | one β for everyone | average, spread, and each βᵢ |
| Does NA also predict later ER, with shared surprises? | two separate fits, no shared-surprise covariance | joint model | joint model | joint model |
| Are some people more volatile? | one residual variance | not standard | varies by wave, not person | each person's innovation variance |
| Is inertia biased by measurement error? | lagged score taken as error-free | with multiple items | multiple-indicator extension | single- or multi-item error model |
| Missed prompts and overnight gaps? | affected pairs dropped | uses available data, no time grid | FIML, but needs the same waves | gaps bridged by the model |
| Four waves, months apart? | possible, strong Nickell bias | possible | the natural choice | needs many occasions |
11.2Practical requirements of each approach
For your researchBefore choosing DSEM, check what it will cost you in data, decisions, computing time, software, and learning, compared with simpler options that may already answer your question.
Each gain in flexibility requires more data, assumptions, decisions, time, or money. The table summarizes typical costs for a design like ours. The thresholds are rough rules of thumb from the sources cited in Sections 5, 9, and 13, not hard limits.
| Cost | MLM via lmer() |
MSEM | RI-CLPM | DSEM (Mplus) |
|---|---|---|---|---|
| Data format | Long format; lagged variables built by hand | Long format | Wide format; the same waves for everyone | Long format; a time variable for the grid |
| How much data | Contemporaneous models: modest. Lagged models: many occasions per person, or Nickell bias grows | Tens to hundreds of persons for stable between-level estimates | At least 3 waves; usually hundreds of persons | Roughly 50 or more persons and 20 or more observed occasions each; 25 or more for random slopes and variances |
| Missing prompts | Rows with a missing outcome or lag are dropped | Maximum likelihood or Bayes uses available data | Full-information maximum likelihood | Handled within the Bayesian sampler (Section 10.8) |
| Unequal spacing | Ignored unless coded (or continuous-time residuals in nlme) |
Usually ignored | Each interval gets its own parameters, or equal intervals are assumed | Time grid (TINTERVAL) or continuous-time RDSEM |
| Key assumptions | Linear, normal residuals; observed person means and lagged predictors treated as error-free | Linear, normal; measurement model correct | Stable trait plus within-person process; comparable measurement across waves | Linear, normal at both levels; stationarity unless trends are modeled; normal random effects; priors |
| Estimation | REML or ML | ML or Bayes | ML (FIML) | Bayesian MCMC only (in Mplus) |
| Decisions to make and report | Centering, lag construction, which slopes are random | Latent or observed covariates, measurement model | Equality constraints across waves, invariance | Time grid, priors, iterations, convergence checks, which effects are random |
| Computing time (our design) | Seconds | Seconds to minutes | Not feasible with 180 waves | Minutes to hours |
| Software | lme4, free |
lavaan (free; random intercepts only) or Mplus (commercial) |
lavaan (free) or Mplus |
Mplus (commercial) or mlts in R (free, Stan-based) |
| Learning effort | Low | Medium | Medium | High |
| Typical failure | Silent lag errors; Nickell bias in short series | Non-convergence with complex between-level models | Inadmissible solutions; impractical with many waves | Slow or failed convergence; nonstationary draws; prior sensitivity with few persons |
| Cost | MLM (lmer) | MSEM | RI-CLPM | DSEM |
|---|---|---|---|---|
| Data needed | ||||
| Assumptions and decisions | ||||
| Computing time | ||||
| Learning effort | ||||
| Software cost |
12Statistical model versus estimation method
For your researchThis section separates two things that are often confused: the model (what you assume about how reappraisal and NA relate) and the estimation method (how the computer finds the numbers). It also shows how to read Bayesian output if you are used to p-values.
A statistical model describes the mathematical relationships and probability assumptions. For example:
In plain EnglishThe model: each person's NA departure is predicted from their own previous NA and previous reappraisal, with person-specific weights. How the numbers are found from the data is a separate choice.
A complete statistical specification also states how the random effects are distributed, how innovations behave, what conditions apply to initial observations, how missing data are handled, and so forth.
An estimation method describes how we use data to learn the model's parameters. Examples include:
- Maximum likelihood.
- Restricted maximum likelihood (REML, for appropriate mixed-model settings). Plain maximum likelihood treats the fixed effects as known when it estimates the variance components, so with few persons the variance estimates are biased. REML reduces this bias (Lafit, 2026b, p. 226). The ML bias is downward: the variances come out too small.
- Bayesian estimation with Markov chain Monte Carlo.
R's lmer() is a software implementation for particular mixed models; MSEM and DSEM are modeling frameworks; and "Bayesian" describes an inferential approach, not a unique psychological model.
If two implementations specify the same likelihood and parameter restrictions, they can represent the same underlying process even if one is called a mixed model and another is called SEM. Bayesian results can differ because of priors and uncertainty conventions. Frequentist implementations can differ because of estimators, approximation, and finite-sample behavior.
The estimation method also changes what the output means, even for the same model:
| Output | Frequentist (e.g., lmer()) |
Bayesian (e.g., Mplus DSEM) |
|---|---|---|
| Point estimate | Maximum likelihood (or REML) estimate | Posterior median (Mplus default) or mean |
| Uncertainty | Standard error; confidence interval with a long-run coverage guarantee | Posterior standard deviation; credible interval containing 95% of posterior probability |
| "p-value" | Probability of data at least as extreme under | Mplus prints a one-tailed p-value: the proportion of posterior draws on the other side of zero. It is a posterior probability, not a frequentist p-value |
| Person-specific slopes | Predictions (BLUPs, conditional modes) | Posterior distributions |
With diffuse priors and large samples, the Bayesian one-tailed value is often numerically close to half of a two-sided frequentist p-value, but the two answer different questions and should not be used interchangeably in a Neyman-Pearson decision rule without saying so.
The choice among the four approaches should follow from the assumptions and estimands implied by the fitted equations.
13Estimating DSEM in Mplus in practice (as of Mplus 9.1.1)
For your researchThis is the hands-on part: which Mplus version to use, a starting model for ER, PA, and NA, how to read the output, how much data you need, and a safe order in which to build up your model.
This section collects practical information that the conceptual sections leave out. It reflects the Mplus documentation and methodological papers available in October 2026. Software changes, so check the version history on the Mplus website before relying on any detail.
13.1Mplus versions and DSEM-related changes
For your researchCheck your Mplus version before running DSEM: one recent version had a bug that can distort results under a common setting.
The current release is Mplus 9.1.1 (September 16, 2026). It is a corrective release: in Mplus 9.1, two-level DSEM models with lagged observed variables gave distorted results when PROCESSORS exceeded the number of MCMC chains (for example, PROCESSORS = 8 without a matching CHAINS setting). If you ran such models in 9.1, rerun them in 9.1.1.
DSEM-relevant milestones:
- Mplus 8.0April 2017Two-level and cross-classified time series; random variances and autocorrelations; ACF and PACF plots
- Mplus 8.1June 2018DSEM and RDSEM; latent centering with random slopes
- Mplus 8.3April 2019Large speed gains for DSEM and RDSEM
- Mplus 8.7November 2021RI-CLPM and RI-ARMA helpers; residual regressions
- Mplus 8.9February 2023Random correlations (person-specific innovation correlations); TINTERVAL changes
- Mplus 8.10June 2023Histograms and saved values of cluster-specific random effects
- Mplus 8.11May 2024Continuous-time RDSEM (CTIME, DRIFT plots)
- Mplus 9.0October 2025Three-level DSEM (experimental, continuous variables); ESS output; censored outcomes in DSEM
- Mplus 9.1May 2026DSEM3: random residual (co)variances, day-to-day autoregression, joint updating; better short-series estimation
- Mplus 9.1.1September 2026Fixes distorted two-level DSEM results with lagged observed variables when PROCESSORS exceeded CHAINS (9.1 bug)
13.2A minimal two-level DSEM for our three variables
For your researchA ready-to-adapt Mplus input for the three-variable ER-PA-NA model, with notes on its main parts.
The input below sketches the ER-PA-NA VAR(1) from Section 10 with two random dynamic coefficients. It is illustrative: check it against the DSEM examples in the Mplus User's Guide and a primer on DSEM in Mplus (McNeish & Hamaker, 2020) before use. As in R, the variable is renamed negaff to avoid any confusion with missing-value codes.
Check the time grid before you run it. With TINTERVAL = hours(2) and time counted in hours since the start of the study, this input places all of a person's prompts on one two-hour grid that runs through the nights. Each night becomes six missing grid rows, and the model carries the same dynamics through them, which implies an overnight carryover of about (Section 14.2). The process does not start afresh each morning. If your question concerns only consecutive prompts within a day, use three-level DSEM (Section 15) or one of the other options in Section 14.2.
TITLE: ER-PA-NA multilevel VAR(1) with two random coefficients;
DATA: FILE = ema.dat;
VARIABLE: NAMES = id day prompt hours er pa negaff;
USEVARIABLES = er pa negaff;
MISSING = ALL (-999); ! missing-value code in ema.dat
CLUSTER = id;
LAGGED = er(1) pa(1) negaff(1);
TINTERVAL = hours(2); ! hours since study start
ANALYSIS: TYPE = TWOLEVEL RANDOM;
ESTIMATOR = BAYES;
CHAINS = 2;
PROCESSORS = 2; ! never more than CHAINS in 9.1
BITERATIONS = (5000); ! minimum number of iterations
MODEL: %WITHIN%
s31 | negaff ON er&1; ! random ER -> later NA
s33 | negaff ON negaff&1; ! random NA inertia
negaff ON pa&1;
er ON er&1 pa&1 negaff&1;
pa ON er&1 pa&1 negaff&1;
er WITH pa negaff; ! innovation covariances
pa WITH negaff;
%BETWEEN%
er WITH pa negaff s31 s33;
pa WITH negaff s31 s33;
negaff WITH s31 s33;
s31 WITH s33; ! Cov(a31_i, a33_i), Section 10.5
OUTPUT: TECH1 TECH8 STANDARDIZED;
PLOT: TYPE = PLOT3;
Notes on the main pieces:
MISSINGdeclares the code that marks missing values in the data file. Change it to the code your file uses.LAGGEDcreates the lagged versions of observed variables (er&1, and so on). For a latent variable, the lag is declared in itsBYstatement with(&1)and then used asf&1, as in the measurement-error model below.TINTERVALplaces observations on a regular time grid (here, two-hour bins) and inserts missing rows where no observation falls. If two observations fall in the same bin, Mplus moves one of them to an adjacent bin (Hamaker et al., 2023). Section 14.2 explains what the grid implies for overnight gaps.- On the between level, the person means of
er,pa, andnegaffare latent variables (latent centering), ands31ands33are the person-specific coefficients. - Mplus computes standardized coefficients for each person and averages them across persons when the model contains random slopes or variances. For significance statements about the average of a random slope, use the unstandardized mean.
A single-indicator measurement-error model (AR(1)+WN, Section 6.5) for NA alone has this core:
Mplus input (illustrative)MODEL: %WITHIN%
f BY negaff@1(&1); ! latent NA state; (&1) creates its lag f&1
f ON f&1; ! latent autoregression
negaff; ! measurement-error variance
%BETWEEN%
negaff;
13.3Reading Bayesian output as a Neyman-Pearson statistician
For your researchHow to translate Mplus's Bayesian output (posterior medians, credible intervals, one-tailed p-values) into the terms you would use in a frequentist analysis, and which checks to report in your paper.
- Point estimates are posterior medians by default. Posterior standard deviations play the role of standard errors.
- 95% credible intervals are the 2.5th and 97.5th percentiles of the posterior draws. They are probability statements about the parameter given the data and prior, not long-run coverage statements, although with diffuse priors and adequate data they often behave similarly.
- The one-tailed p-value is the proportion of posterior draws on the opposite side of zero from the estimate (Section 12). For variances it is always close to zero by construction (Section 4.6).
- Convergence is judged with the potential scale reduction factor (PSRF), which compares variability between chains to variability within chains. Values close to 1 indicate that independent chains agree. Mplus 9 also reports the effective sample size (ESS) of the posterior draws: how many independent draws the autocorrelated chain is worth. Inspect trace plots (
PLOT: TYPE = PLOT3) and, as a robustness check, rerun with a fixed, larger number of iterations to confirm that the estimates do not change. - Priors. Mplus defaults are intended to be diffuse: flat or very wide normal priors for intercepts, slopes, and loadings; an inverse-gamma prior IG(-1, 0), equivalent to a uniform prior on (0, infinity), for single variances; and inverse-Wishart priors for covariance matrices. With many persons and many occasions, as here, the data usually dominate the estimates of fixed effects. Random-effect variances are a partial exception: the inverse-Wishart prior "tends to be informative when variances are close to zero" (Schuurman, Grasman, & Hamaker, 2016), which is typical for the variance of an autoregressive or cross-lagged coefficient across persons, and its influence grows as the number of persons falls. Run a prior sensitivity analysis and preregister priors and the sensitivity set, which limits researcher degrees of freedom.
- Model comparison. The main index Mplus reports for DSEM is the deviance information criterion (DIC). DIC is known to be unstable in models with many random effects, so combine it with convergence checks, substantive plausibility, and sensitivity analyses rather than treating small DIC differences as decisive.
- Standardized estimates. A recommended approach standardizes each person's coefficients with that person's own within-person standard deviations (Schuurman, Ferrer, et al., 2016). Mplus does this within every MCMC iteration and reports "Within-Level Standardized Estimates Averaged Over Clusters." The posterior SD of this average describes uncertainty about the average, not how much people differ. In addition, standardized and unstandardized person-specific slopes can rank people differently, so correlations among random effects can change, or even disappear, after standardization. In one EMA study, a clear negative correlation between the unstandardized slopes linking events and negative affect disappeared after standardization. Which version is more informative depends on the purpose (Hamaker et al., 2023).
- Overall model fit. Unlike ordinary SEM, DSEM has no saturated model to compare against, so there is no overall fit test like the chi-square. The practical checks are: residual autocorrelation (any that remains means the dynamics are not fully captured), comparison of rival models with DIC (which can be unstable), the Bayesian Wald test for sets of parameters, and credible intervals for individual parameters. Bayes factors exist but are sensitive to the priors (Hamaker et al., 2023). A useful additional check is predictive: simulate data from the fitted model (in R, or with Mplus's Monte Carlo facility using the estimates as population values) and compare features that matter for your question, such as each person's autocorrelations, standard deviations, and share of responses at the scale floor, between the simulated and the observed data. Convergence diagnostics (PSRF, ESS, trace plots) only show whether the sampler has settled; they say nothing about whether the model fits.
13.4How much data does DSEM need?
For your researchRough numbers for how many participants and answered prompts you need for the model you have in mind, and how to plan your sample size more precisely.
Simulation studies and practical guidance can be summarized as follows (McNeish, 2019; Muthén & Asparouhov, 2023; Schultzberg & Muthén, 2018). These are rough benchmarks, not guarantees.
- Occasions per person: at least about 15 to 20 observed occasions for basic models; at least about 25 for random slopes and random innovation variances; around 50 for good single-person (N = 1) performance.
- Persons: about 50 at a minimum, and precise estimates of between-person variances and covariances may require several hundred.
- Trade-off: more persons compensate for fewer occasions more effectively than the reverse.
- Inserted rows do not count: rows inserted by
TINTERVALare missing data and contain no information. Count observed occasions per person.
Our design (150 persons, up to 180 occasions each) exceeds these benchmarks for random dynamic coefficients, provided compliance is reasonable. Exceeding them does not guarantee precise estimates of every parameter: the variance of the random ER-NA slope and its covariance with inertia are the parameters most likely to remain uncertain, and a simulation of the planned model (below) is the way to check.
Planning by simulation. For a specific hypothesis, simulation-based power analysis is recommended: generate many datasets from the model you expect, fit the planned model to each, and count how often the effect is detected (Lafit, 2026b, pp. 221-222). The free PowerAnalysisIL app (Lafit et al., 2021) covers common multilevel questions, including multilevel autoregressive models, group differences in autoregression, and person-level predictors of autoregression, and it builds in the autocorrelation of EMA data. Practical points (Lafit, 2026b):
- The app assumes equally spaced prompts and no missing data, so enter the number of prompts you expect people to answer, not the number you plan to send (p. 235).
- Whether more persons or more prompts helps more depends on the hypothesis. For a difference between groups of people, adding prompts helped little: with 20 persons per group, power rose only from about 0.49 to about 0.57 when the number of prompts went from 20 to 200 (p. 234, Table 11.3).
- When the expected effect is uncertain, compute power over a range of plausible values (a sensitivity power analysis), or use safeguard power analysis (Lafit et al., 2025; Lafit, 2026b, p. 236).
For DSEM itself, the same logic can be applied with Mplus's Monte Carlo facility (Schultzberg & Muthén, 2018).
13.5Building the model step by step
For your researchA safe order in which to build up your DSEM, so that problems are caught early and your final model is not the result of undisclosed trial and error.
- Look at the data first. Plot each person's ER, PA, and NA over time (Viechtbauer, 2026a, pp. 155-157). Check for trends over the study and over the day, and for an initial elevation in the first prompts (Section 8.3). Model trends as covariates when present. RDSEM is convenient for this (Section 10.7).
- Start with random intercepts only (person means) and fixed dynamic coefficients.
- Add random slopes one at a time, retaining those whose variance is supported by the data (for example, a variance estimate that is large relative to its posterior standard deviation, Section 4.6). Avoid estimating all covariances among random effects at once.
- Keep the number of random effects well below the number of observed occasions per person.
- Remove persons with no within-person variation on an outcome, because they contribute nothing to within-person dynamics and can impede convergence. If you also exclude participants with low compliance, remember that any such cutoff is arbitrary, and a sensitivity analysis can check whether the conclusions change with a different cutoff (Viechtbauer, 2026a, p. 151). State the cutoff in advance (step 6).
- Preregister the sequence and the decision rules, so that the final model is not the product of undisclosed specification search. A preregistration template written specifically for ESM studies is available, with a tutorial (Kirtley et al., 2021), and post-registration is an option when the data already exist (Kirtley, 2026, pp. 102-103).
13.6Alternatives in R
For your researchFree R alternatives if you do not have Mplus, with what each one can and cannot do.
mlts(version 2.0.1, CRAN, December 2025) fits multilevel manifest and latent time-series models, including DSEM-type models, using Stan.brmscan fit multivariate multilevel models with manually created lagged predictors (using observed centering unless latent centering is coded explicitly).ctsemanddynrfit continuous-time and state-space dynamic models.nlmeandglmmTMBprovide AR(1) and continuous-time residual structures for single-outcome mixed models (Section 5.4).mlVARandgraphicalVARestimate multilevel and person-specific VAR models and display them as networks (Lafit, 2026a, p. 215). With its defaultlmerestimator,mlVARcenters on observed person means, so Nickell bias applies to short series. Itsestimator = "Mplus"option instead runs Bayesian DSEM in Mplus. Network "centrality" indices computed from such models have been criticized as unstable and hard to interpret for psychological variables (Bringmann et al., 2019, as cited in Lafit, 2026a, p. 215).- Data preparation. R code for the data checks and analyses in Chapters 8 and 9 of Myin-Germeys and Kuppens (2026) is available at www.real-leuven.be, and a step-by-step preprocessing framework with an R package and tutorial website is available at preprocess.esmtools.com (Revol et al., 2024, as cited in Viechtbauer, 2026a, p. 147).
14Time spacing, missing prompts, and the meaning of a lag
For your researchThis section explains why the time between prompts is part of your result. A link between reappraisal and NA two hours later need not equal the same link across a night, and missed prompts can silently change the lag.
Our example uses six prompts per day. Suppose they arrive at 10 a.m., noon, 2 p.m., 4 p.m., 6 p.m., and 8 p.m.
- The gap from 2 p.m. to 4 p.m. is 2 hours.
- The gap from 8 p.m. to 10 a.m. is 14 hours.
A naive discrete-time equation:
In plain EnglishNA at a prompt is predicted from NA and reappraisal at the previous prompt, with the same weights whether that prompt was two hours ago or the evening before.
This equation uses the same parameters for every "one-step" transition unless differences in spacing are represented explicitly. It therefore makes a substantive assumption: a two-hour prediction and a 14-hour prediction are treated as equal. For emotion processes, this assumption is often implausible.
14.1How much can a lag coefficient depend on the interval?
For your researchThis shows how quickly a carry-over or cross-lagged effect can change with the length of the gap, so that you choose, and report, the time scale of your reappraisal effects deliberately.
A continuous-time model describes the process as evolving smoothly between measurements, so that the lag coefficient depends on the elapsed time . For a single variable, the continuous-time AR(1) (an Ornstein-Uhlenbeck process) implies
In plain EnglishThe carry-over shrinks smoothly as the gap grows. The gap in hours is , and sets how fast the carry-over fades.
Here is the rate at which deviations decay. Mplus calls the corresponding parameter the drift. It follows that doubling the interval squares the coefficient.
Suppose the two-hour coefficient is . Then:
- The one-hour coefficient is .
- The 14-hour overnight coefficient is .
If both kinds of transitions are pooled into a single discrete-time , the estimate is a blend of roughly 0.70 and 0.08 and describes neither interval. In multivariate continuous-time models, cross-lagged coefficients need not be monotone in : they often rise, peak at some interval, and then fall. A cross-lagged effect can therefore look strong at one sampling interval and negligible at another.
Smaller differences between daytime intervals. With semi-random prompting, daytime intervals also vary, for example between 20 and 160 minutes in one example dataset (Viechtbauer, 2026a, p. 146). Treating semi-random intervals as equal is "relatively safe" "because the differences in the intervals will generally equal out" (Cloos et al., 2026, p. 51). For a rough average coefficient, and once the overnight gap is handled separately, this is often a workable assumption, but it is not exact. Because is curved, a mix of shorter and longer intervals does not average out to the coefficient for the average interval. In simulations, a discrete-time model accounting only for the night was biased by as much as 60% of the true parameter when the true autocorrelation was small (below 0.3), with the size and direction of the bias depending strongly on the true values. A time-grid approach (the analogue of Mplus's TINTERVAL) performed about as well as the exact continuous-time model, although coarser grids would likely perform less well, and continuous-time modeling is recommended whenever possible (De Haan-Rietdijk et al., 2017). When the precise size of a lagged effect is of interest, use one of these two options.
14.2Strategies for handling overnight gaps and unequal intervals
For your researchPractical options for handling nights and uneven gaps in your data, from the simplest (start the lags afresh each morning) to the most complete (continuous-time or three-level models).
Possible strategies include:
- Treat overnight transitions separately, or exclude them from the within-day lag process when theoretically justified. In R, compute lags within days (Section 5.2). In two-level Mplus models, inserting an empty record between days does not work as a reset. Mplus imputes every missing value at every iteration from the model, so the empty record is filled in from the previous evening, and the night becomes a two-step transition (a carryover of about , which is 0.49 for , more than the of strategy 2). Inserting many empty records makes the overnight carryover close to zero (the two-level model in the smoking example of Asparouhov & Muthén, 2026, had at least 24 missing rows between days), at the cost of more missing data and slower convergence. Three-level DSEM (strategy 4) handles the night directly.
- Discretize time with
TINTERVAL(Mplus). Observations are placed on a regular grid, and empty grid cells become missing rows. With two-hour bins and prompts from 10 a.m. to 8 p.m., each night inserts six missing rows, so even perfect compliance produces 50% missing rows. The model then treats a night as seven two-hour steps, implying an overnight coefficient of about . This assumes that the process evolves overnight exactly as it does during the day. Whether sleep is better treated as a "reset" is a substantive question. If two prompts fall in the same grid cell, Mplus moves one of them to an adjacent cell (Hamaker et al., 2023), which changes the intervals slightly. With semi-random prompting, check how the prompts were assigned to cells and whether the results change with the bin width. Smaller bins approximate continuous time better but create more missing rows and slower convergence. In one example, data coverage was 17% with one-unit bins, 34% with two-unit bins, and 51% with three-unit bins (Muthén & Asparouhov, 2023). - Use a continuous-time model. Mplus 8.11 and later offer continuous-time RDSEM (
CTIMEoption), which uses the actual time stamps, inserts no rows, and estimates a drift. Current limitations: two-level models, observed variables only, lag-1 dynamics only. In R,ctsemoffers general continuous-time SEM, andnlme::corCAR1()andglmmTMB'sou()provide continuous-time residual structures. - Model the day as its own level with three-level DSEM (Section 15). Each day becomes its own within-day series, the overnight gap is never treated as a lag, and day-to-day carryover is modeled separately at the day level.
- Include sensible time-of-day, day-level, or contextual predictors when nonstationarity is plausible, for example daily cycles (Muthén, Asparouhov, & Keijsers, 2025).
- Let the time since the previous prompt moderate the lagged effect in a mixed model (Selig et al., 2012; Section 10.8). This is easy in
lmer(), but it is an approximation, and it still drops the pairs around missed prompts.
14.3Missing prompts
For your researchA missed prompt can turn a two-hour lag into a four-hour lag without you noticing, unless the lags are constructed as described below.
Missing prompts can also create accidental "longer lags": if the 2 p.m. assessment is missing, the prior observed prompt for 4 p.m. may be noon, not 2 p.m. Taking the preceding available row may therefore change the estimand. The R code in Section 5.2 sets such lags to missing. TINTERVAL and continuous-time models handle them by construction.
These problems are not automatically solved by DSEM. They arise from the temporal structure of the study and must be addressed in model construction.
14.4Additional design issue: What time interval does an ER item refer to?
For your researchIf your reappraisal item asks about the time "since the last prompt" and your NA item asks about "right now," this explains what your coefficients measure and which model matches your question.
Consider two EMA questions:
- "How much have you used reappraisal since the previous assessment?"
- "How much negative affect do you feel right now?"
These questions cover different temporal windows. The coefficient connecting their responses is harder to interpret, because reappraisal could have occurred at any point during the preceding interval.
The meaning of a purported "ER at " score depends on the questionnaire's recall window. It should not be assumed that all variables reflect instantaneous measurements. In this example, a "contemporaneous" ER-NA association partly reflects ER that occurred before the NA rating, so it combines the contemporaneous and lagged questions of Sections 2.2 and 2.3.
Recall windows for emotion regulation. Emotion regulation typically unfolds over minutes to hours rather than at one instant, so asking about it "since the last prompt" is often more natural than asking about "right now" (Eisele et al., 2026, p. 79). The disadvantage is that the timing within the interval is unknown. Applied to our design with two-hour intervals:
- The lags are longer than they look. If reappraisal occurred at a random point in the preceding interval, it occurred on average about one hour before the NA rating at the same prompt (less, if people mainly recall recent episodes). The "same-prompt" coefficient therefore describes a lag of roughly one hour, and the "lagged" coefficient (ER reported at predicting NA at ) a lag of roughly three hours. With 90-minute intervals, the same reasoning gives 45 and 135 minutes (Viechtbauer, 2026b, pp. 180-181).
- A natural model for regulation questions. Predicting NA at from ER reported at (which covers the interval since ), while controlling for NA at , tests whether regulation during an interval predicts the change in NA over that interval. This model has been used for emotion regulation strategies (Brans et al., 2013) and is a simple version of the vector-autoregressive model (Kuppens & Myin-Germeys, 2026, p. 32). In Mplus it is written
negaff ON er negaff&1;. Because NA at is held constant, the coefficient for ER no longer reflects only the fact that people regulate when NA is already high. Section 2.4's caution still applies, however: if NA rose during the interval and prompted the regulation, the coefficient mixes both directions. - For a concurrent association, match the time references. If the question is whether two states co-occur, both items should refer to the same moment (Eisele et al., 2026, p. 80).
15A third level: moments within days within persons (three-level DSEM)
For your researchThis section deals with the fact that your prompts come in days. Some days are worse than others, and ignoring that can make NA look more persistent from one prompt to the next than it is.
15.1Day-level variation
For your researchThis splits each NA rating into three parts: the person's usual level, how that day differed from usual, and how that moment differed from the rest of the day.
A workday, an argument, a poor night's sleep, or a weekend can shift a person's affect for the whole day. For this reason, the study period should cover both weekdays and weekend days for every participant (Cloos et al., 2026, p. 46). Our data therefore contain three sources of variation. For person , day , and prompt within that day:
In plain EnglishA rating equals the person's usual NA, plus how far that day was from usual, plus how far that moment was from the day's level.
- : the person's long-run mean (level 3, person).
- : how much that day's level departs from the person's mean (level 2, day).
- : how much the moment departs from that day's level (level 1, moment).
In two empirical examples, day-level variance was about 5% of the total for positive affect in one study, but about 30% for smoking urge and 33% for negative affect in another (Asparouhov & Muthén, 2026).
15.2What goes wrong if the day level is ignored?
For your researchIf good and bad days are ignored, the model mistakes "a bad day" for "NA that lingers from prompt to prompt."
In a two-level model, the day component is not modeled, so it remains in the within-person part. Because all prompts on the same day share it, it makes consecutive prompts more similar than the moment-to-moment process alone would. An autoregressive coefficient then absorbs this shared day-level variance and tends to overstate moment-to-moment inertia. How much depends on the size of the day component and on how the overnight transitions are handled, as the simulation below shows.
In a simulation, data were generated for 150 persons, 30 days, and 6 prompts per day, with a true within-day autoregression of 0.30 (innovation standard deviation 1), a day-level component with standard deviation SD, and no carryover between days. A two-level analysis that ignores days (person-mean centering, lags taken across consecutive rows including overnight) gave the following average estimates over 50 simulated studies per row (Monte Carlo standard errors of about 0.001; R code in Section 21.3):
| SD | Estimated autoregression (true value 0.30) |
|---|---|
| 0.0 | 0.24 |
| 0.5 | 0.35 |
| 0.7 | 0.42 |
| 1.0 | 0.52 |
With no day-level variance, the estimate is slightly too low, because the uncorrelated overnight transitions are pooled with the within-day ones (Section 14.1). As day-level variance grows, the estimate becomes increasingly too high.
Centering on observed day means also fails. Centering each prompt on its observed day mean and taking lags within days removes the day component, but each day has only six prompts. That is a series of length 6, and Nickell bias (Section 5.4) is then approximately . In the same simulation, this approach estimated the autoregression at about 0.01 instead of 0.30. The day component therefore has to be estimated as part of the model, as a latent component. Three-level DSEM does this. Other hierarchical models can too, provided they also separate the day component from the lagged predictor. Adding a day random intercept to an lmer() model with a lagged outcome does not, because the lagged outcome contains the same day component.
Empirical results show the same pattern. In an EMA study of smoking urge, moving from two-level to three-level DSEM reduced the within-person autoregressions from 0.75 to 0.57 (smoking urge) and from 0.46 to 0.09 (negative affect), and increased one cross-lagged effect from 0.18 to 0.28 (Asparouhov & Muthén, 2026). In simulations, two-level DSEM overestimated the within-day autocorrelation by about 0.16 when day-level variance was present (Asparouhov & Muthén, 2026).
15.3The three-level DSEM model
For your researchThis describes the model that keeps moments, days, and persons apart, and that can also estimate whether a bad day carries over into the next one.
Three-level DSEM (Asparouhov & Muthén, 2026), available in Mplus 9 and extended in 9.1, has the following structure:
Level 1 (moments within a day). A within-day time-series model, such as the VAR(1) of Section 10, with lags within the day only. Lags that would reach before the first prompt of a day are treated as missing, so the overnight gap is never treated as a lag.
Level 2 (days within a person). Day-level components with their own structural model. Since Mplus 9.1, the day components can also follow a (non-random) day-to-day autoregression:
In plain EnglishHow far today's level is from the person's usual level () is partly predicted by how far yesterday's level was (), weighted by , plus something new today ().
A bad day can therefore spill over into the next day, separately from moment-to-moment inertia.
Level 3 (persons). Person means and person-specific coefficients, with their variances and covariances.
Random effects. Intercepts can vary at levels 2 and 3. Within-day coefficients, including autoregressions, can vary across persons (level 3) and, in principle, across days (level 2). Since 9.1, residual variances and correlations can also be random.
Latent centering at every level. The person and day components are latent variables, which avoids Nickell bias and the bias from treating observed day means as error-free.
15.4Practical recommendations for three-level DSEM
For your researchWhat the data must provide for three-level DSEM to give reliable estimates.
Recommendations from Asparouhov and Muthén (2026):
- DSEM3 is limited to continuous, normally distributed variables and is available for DSEM, not RDSEM. Mplus 9 introduced it as an experimental feature (Muthén & Muthén, n.d.).
- The number of persons drives the accuracy of person-level estimates. In simulations, 50 persons with 10 days and 10 prompts per day recovered the parameters well, whereas with only 5 persons a person-level parameter was strongly biased.
- Time-series models at both the moment and the day level need substantial data: more than 5 observations at each of these two levels, more than 2% of the total variance at each level, and autocorrelations that differ clearly from 0 and 1 at both levels.
- With many small days (few prompts per day), avoid day-specific random slopes and autoregressions, and keep only random day intercepts.
- A random effect is worth adding only if it replaces at least 5 to 10 fixed parameters.
- High autocorrelation combined with few units at any level makes estimation more difficult and can lead to non-convergence.
- The person-level and day-level random effects are likely to be strongly correlated in the posterior, which can slow convergence. Mplus 9.1 implements a joint updating algorithm for some three-level models.
The Mplus input files for all examples are included in Asparouhov and Muthén (2026). In Mplus three-level models, the CLUSTER statement lists the higher level first (for example, CLUSTER = id day;).
15.5When is the day level worth modeling?
For your researchA short checklist for deciding whether your emotion regulation study needs the day level at all.
- When day-level variance is non-trivial: check the three-level variance decomposition first, for example with a three-level random-intercept model in R,
lmer(neg_aff ~ 1 + (1 | id/day), data = ema). The result can be turned into two ICCs: the share of total variance due to days and the share due to persons (Hedges et al., 2012). In a synthetic illustration dataset on momentary affective valence, days accounted for about 4% and persons for about 23% of the variance (Lafit, 2026a, pp. 206-209). - When the research question involves daily processes (spillover between days, day-level stressors) alongside moment-level dynamics.
- When within-day inertia is the focal estimand, because that is the quantity most distorted by ignoring days.
For purely contemporaneous questions, three-level random intercepts in lmer() may be sufficient. Cross-classified time-series models (persons crossed with time points) are a different extension: they let the mean vary across calendar time, for example a common trend shared by all participants.
16Choosing a model for different research questions
For your researchFind the scenario that matches your research question. Each one names a suitable starting model and what it estimates, and some also note what it cannot tell you.
No single model is best for every question. The appropriate model follows from the estimand and the scientific theory.
Scenario A. Same-occasion ER and affect
For your researchChoose this if your hypothesis is about how reappraisal and affect go together at the same prompt.
Question:
When people engage in more cognitive reappraisal than usual, do they report lower NA and higher PA at the same assessment?
Suitable starting point: A within-between mixed model or MSEM, perhaps with random contemporaneous ER slopes.
For example:
In plain EnglishNA at a prompt is predicted from the person's baseline, their reappraisal relative to their own usual level (within-person part), and their usual reappraisal compared with other people (between-person part).
Estimand: Within-person contemporaneous association, with a separate between-person component.
Not answered: what happens two hours afterward, and what causes the association.
Scenario B. Does earlier ER predict later NA?
For your researchChoose this if your hypothesis is that reappraising more than usual is followed by lower NA at the next prompt.
Question:
When someone reports more reappraisal than usual, is their NA lower two hours later after accounting for their earlier NA?
Suitable starting point: A carefully specified lagged mixed model, a dynamic MSEM, or DSEM.
In plain EnglishNA (relative to the person's usual level) is predicted from NA and reappraisal at the previous prompt. The coefficient is the number your hypothesis is about.
Estimand: A within-person lagged partial predictive relationship at the defined lag, equivalently the association of earlier ER with change in NA conditional on earlier NA (Section 2.3).
Not answered: Whether manipulating reappraisal would lower NA.
Scenario C. Reciprocal links among ER, PA, and NA
For your researchChoose this if you expect links in both directions, for example distress predicting later reappraisal and reappraisal predicting lower later distress.
Question:
Does ER predict later affect, and do PA and NA also predict subsequent ER use?
Suitable starting point: A multivariate VAR-type model, estimated through DSEM or another appropriate joint dynamic modeling framework.
Estimands: The nine lagged coefficients in the lag matrix, together with any specified innovation covariances, and system-level summaries such as impulse responses and stability (Section 10.3).
Advantage: We can examine both directions of the predictive relationships and characterize the joint process.
Scenario D. Different temporal relationships across people
For your researchChoose this if you expect that reappraisal is followed by lower NA for some people but not for others.
Question:
Does the ER later NA association differ substantially between participants?
Suitable starting point: A model with a random cross-lagged ER slope, implemented through MLM or DSEM.
Estimands: The average slope, the between-person slope variance (or standard deviation), and possibly predictors or correlates of that heterogeneity. Test the variance with a boundary-corrected test or an equivalent Bayesian procedure (Section 4.6).
Scenario E. Is affective inertia related to ER-NA coupling?
For your researchChoose this if you want to relate two person-level dynamic features to each other, such as how long NA lingers and how strongly reappraisal predicts later NA.
Question:
Do people whose NA is more persistent tend to have weaker or stronger lagged ER-NA associations?
Suitable starting point: A multilevel dynamic model with person-specific NA autoregression and ER NA slopes and an estimated covariance among those random parameters.
Estimand: or the corresponding correlation.
Advantage of DSEM: The relationship is estimated as part of a joint ER-PA-NA dynamic system, although appropriately constructed random-effects models can address related questions.
Scenario F. Do we need a questionnaire-level measurement model?
For your researchChoose this if you worry that measurement error in your reappraisal or affect items distorts the dynamics you estimate.
Question:
Can we separate the latent ER, PA, and NA constructs from item-specific variation while analyzing within-person temporal relationships?
Suitable starting point: A dynamic latent-variable model within MSEM or DSEM, given enough items and suitable assumptions. With single items, an AR(1)+WN measurement-error model in DSEM is an alternative (Section 6.5).
Estimands: Relationships among latent construct fluctuations rather than only relationships among observed sum or mean scores.
Scenario G. Do we have only four widely separated waves?
For your researchChoose this if your data are a few waves months apart rather than many daily prompts.
Question:
Do within-person departures in ER predict later departures in NA over several months, after separating stable differences between individuals?
Suitable starting point: The RI-CLPM, subject to model identification, measurement comparability, timing, and the research design.
Estimands: Within-person autoregressive and cross-lagged coefficients, plus stable between-person covariance.
Scenario H. Do days add variation beyond moments?
For your researchChoose this if you expect whole good and bad days, or a carry-over from one day to the next, in addition to moment-to-moment changes.
Question:
Is moment-to-moment NA inertia distinct from day-to-day carryover, and does a stressful day shift affect for the whole day?
Suitable starting point: Three-level DSEM with moments within days within persons (Section 15), after checking the size of the day-level variance.
Estimands: The within-day autoregression and cross-lagged coefficients, the day-level variance, the day-to-day autoregression of day components, and person-level heterogeneity.
Scenario I. Did an intervention change the dynamics?
For your researchChoose this if you run an emotion regulation training and want to know whether it changed people's daily emotional dynamics, not only their average mood.
Question:
After an emotion regulation training, do people's mean NA, NA inertia, and sensitivity to events change more than in a control group?
Suitable starting point: A DSEM with two EMA bursts, one before and one after the intervention. Each person gets separate parameters for each burst, and the change in each parameter is regressed on the group dummy (Hamaker et al., 2023; see Part 3 of the walkthrough tab).
Estimands: Initial group differences (which should be near zero after randomization), time effects (change in the control group), and treatment effects (additional change in the treated group). Each is estimated separately for the means, the inertia, the slopes, and the innovation variance.
In a randomized mindfulness trial, the trained group showed larger decreases than the control group in mean NA, in the rated unpleasantness of events, and in NA inertia. The NA innovation variance decreased over time in the control group (a time effect), and the change in the trained group did not differ from it (the credible interval for the difference included zero; Hamaker et al., 2023).
17ER later NA does not establish emotion regulation effectiveness
For your researchA common overstatement in emotion regulation research reads "reappraisal predicts lower NA later" as "reappraisal works." This section lists what else could produce the same number and which designs can support stronger conclusions.
Suppose we estimate:
In plain EnglishTen more points of reappraisal than usual at one prompt go with 3 fewer points of NA at the next prompt, on average, holding earlier NA constant. This number alone does not show that reappraisal caused NA to be lower.
A lagged association alone, whether estimated with lmer(), MSEM, RI-CLPM, or DSEM, does not justify the conclusion:
"Using reappraisal reduces negative affect."
Several alternative explanations remain:
- Confounding by context: People may use reappraisal in situations that are already becoming less stressful.
- Selection into strategy use: People may use reappraisal when they think a situation is manageable, and perceived manageability could itself predict later NA.
- Unmeasured time-varying factors: Social interactions, stressor severity, fatigue, sleep, or anticipated events could affect both ER and subsequent affect.
- Temporal ambiguity within prompts: Strategy use may refer to an interval rather than an instant, and the process may unfold faster than the sampling frequency. In addition, a person's current mood can influence how they rate what happened earlier in the interval, so even an item about the past can be influenced by the present (Viechtbauer, 2026b, pp. 179-180).
- Measurement error and misspecification: Noisy responses, missing nonlinear relationships, or incorrect lag assumptions can distort estimates.
Controlling for prior NA and PA does not guarantee that these problems disappear.
A worked example of confounding. Suppose an unmeasured variable, "the situation is starting to resolve," makes reappraisal more likely at one prompt and lowers NA at the next. If reappraisal itself has no effect at all, the lagged ER coefficient will still be negative, and its size will grow with the strength of the confounder's two paths. Adjusting for prior NA does not remove this bias, because the confounder acts after prior NA was measured.
There is also a construct distinction:
- ER strategy use concerns whether and how much someone engaged in a particular strategy.
- ER strategy effectiveness concerns how successfully the strategy altered an emotional response.
Observed strategy use is not the same quantity as strategy effectiveness. Lagged associations may provide evidence relevant to effectiveness hypotheses, but stronger causal designs and assumptions are required to estimate effects of interventions on strategy use, for example micro-randomized prompts that instruct reappraisal at randomly chosen moments.
The main ways to add such "non-natural" variation to daily life are following people around a predictable event (such as receiving exam grades), introducing a manipulation in daily life (such as a public-speaking task), or delivering an intervention through the phone (Kuppens & Myin-Germeys, 2026, pp. 34-35). The decision rules of just-in-time adaptive interventions are evaluated and optimized in micro-randomized trials (Beames et al., 2026, p. 252). In such a trial, whether a brief intervention is delivered is randomized at many moments for each person, so its momentary effects can be estimated without the confounding discussed above. Randomizing when a person is prompted to reappraise is the most direct design for estimating whether reappraisal lowers NA, and not only whether it predicts lower NA.
Further cautions (Hamaker et al., 2023):
- Lagged coefficients are specific to the interval. At other intervals they can shrink, grow, or even change sign (Section 14.1).
- A changed parameter is not a causal parameter. If a training changes people's ER NA coefficient, the training had a causal effect on that coefficient. The coefficient itself is still not a causal effect of ER on NA, because time-varying confounders may still be involved.
- Neither unstandardized nor standardized coefficients tell how much change an intervention could produce. A variable with a small coefficient may still be a valuable target if it can be changed far beyond its natural range of variation. Judging this requires substantive knowledge of the domain.
DSEM can also serve as a step between developing a theory and running an intervention study, because it can show whether the predicted within-person pattern exists before an experiment is run.
18Summary of the main conceptual lessons
For your researchThis section gathers the guide's main lessons into one checklist that you can use when you plan, run, or review an EMA analysis of emotion regulation.
The approaches form an overlapping family rather than a strict hierarchy:
Multilevel regression handles clustered observations and can estimate contemporaneous or lagged within-person associations and random slopes.
MSEM adds jointly specified relations and latent measurement structures, with explicit within-person and between-person levels. It can also contain dynamics.
RI-CLPM is a particular longitudinal SEM that separates stable between-person differences from within-person autoregressive and cross-lagged processes. Conventional random intercepts do not imply random temporal slopes.
DSEM integrates intensive time-series relationships, multilevel heterogeneity, and SEM structures in one modeling framework. The specific model determines which components are included. Three-level DSEM adds a day level between moments and persons.
Across the comparisons in this guide:
- DSEM is not automatically more informative than a lagged MLM. If both implement the same relevant dynamic structure and assumptions, they may answer the same substantive question.
- RI-CLPM and DSEM can be closely related mathematically. Their differences often reflect usual data designs, parameter constraints, varying-slope capabilities, and estimation or implementation choices.
- MSEM becomes dynamic when we add temporal relationships. The distinction between "MSEM" and "DSEM" is not a clean separation between methods that can and cannot model lagged relationships.
Before choosing a model, answer these questions in order:
- Who or what am I comparing?Different people, or different occasions within a person?Section 3
- When are the variables related?At the same occasion, or across a specified lag?Section 2
- Which variables are outcomes?Only NA, or ER, PA, and NA jointly?Section 7
- Must coefficients be the same for everyone?Or do I need random dynamic slopes, and does the design support them?Sections 4 and 13.4
- Are scores measured reliably?Latent factors or a single-indicator measurement-error model?Section 6
- What dependence remains?Correlated innovations across outcomes, or residual autocorrelation?Section 8
- Do the temporal assumptions fit the design?Spacing, overnight transitions, recall windows.Section 14
- Is there a day level?How much variance lies between days, and is within-day inertia the target?Section 15
- What kind of inference do I want?Prediction, description, heterogeneity, or a causal effect?Section 17
Bottom line: Choose the model by its estimands and assumptions, not by its name. For our EMA example, the main distinction is whether we want contemporaneous ER-affect co-occurrence, a lagged ER-affect predictive relationship, a complete reciprocal dynamic system, or heterogeneity in that system across individuals and days.
19Glossary
For your researchA quick lookup for the main technical terms used in the guide, explained in terms of the emotion regulation study.
| Term | Plain-language meaning in our EMA study |
|---|---|
| Estimand | The exact population quantity we want to estimate, such as a same-occasion within-person ER-NA slope or a two-hour lagged slope. |
| Contemporaneous association | Whether ER and NA co-vary at the same assessment occasion. |
| Temporal dependency | Whether earlier ER, PA, or NA contains information that predicts a later variable. |
| Granger-type predictability | Earlier values of one variable improve the prediction of another variable beyond that variable's own past. A statement about prediction, not intervention. |
| Within-person | Comparing someone's observation with that same person's usual level. |
| Between-person | Comparing one person's typical levels or parameters with another person's. |
| True (latent) person mean, | The long-run level a person's scores fluctuate around; unobserved and estimated. |
| Observed person mean, | The average of a person's observed scores; an estimate of that contains sampling error. |
| Person-mean centering (CWC) | Subtracting the observed person mean from each score ("centering within cluster"). |
| Latent centering | Decomposing scores into latent between and within components inside the model, as MSEM and DSEM do. |
| Contextual effect | The between-person slope minus the within-person slope; the coefficient on the person mean when raw (uncentered) predictors are also in the model. |
| Ecological fallacy | Inferring a within-person relationship from a between-person one. |
| Intraclass correlation (ICC) | The proportion of total variance that lies between persons (or, in a three-level model, between days or persons). |
| ICC(2) | The reliability of an observed person mean, which increases with the number of occasions. |
| Random intercept | A model component allowing people to differ in stable or expected levels of an outcome. |
| Random slope | A model component allowing a regression relationship to differ across people. |
| Partial pooling (shrinkage) | Person-specific estimates are pulled toward the population mean, more strongly when a person's own data are less informative. |
| BLUP / conditional mode | The frequentist prediction of a person's random effect in a mixed model. |
| Boundary problem | Testing whether a variance is zero, where zero lies at the edge of the parameter space, so the usual chi-square reference distribution is wrong. |
| Autoregression | A variable's previous value predicts its own later value, such as NA later NA. |
| Cross-lagged coefficient | An earlier value of one variable predicts a later value of another, such as ER later NA. |
| Half-life | The number of intervals after which a deviation is expected to have halved: , for a single-variable AR(1) process. |
| Nickell bias | Downward bias in an autoregressive coefficient when the lagged outcome is centered on an observed mean computed from a short series; about . |
| Dynamic | Explicitly describing how values evolve over time. |
| System | A set of connected variables studied together; here, ER, PA, and NA. |
| Dynamic system | Connected variables whose current states depend on earlier states of themselves and one another. |
| VAR(1) | A system in which current variables are predicted from all modeled variables one occasion earlier. |
| Lag matrix | The matrix of all autoregressive and cross-lagged coefficients in a VAR; rows are later outcomes, columns are earlier predictors. |
| Impulse response | The expected path of all variables after a one-time departure in one variable. |
| Eigenvalues (of the lag matrix) | Numbers summarizing whether the system as a whole damps (modulus below 1) or amplifies departures; complex eigenvalues indicate oscillation. |
| Feedback loop | Two variables predicting each other over time; with opposite signs it is a negative (stabilizing) loop. |
| Measurement error | The part of an observed score that does not faithfully represent the intended latent quantity. It is not carried forward in time. |
| AR(1)+WN | A latent AR(1) process observed with independent measurement error ("white noise"); estimable with a single indicator. |
| Within-person reliability | The share of within-person observed variance due to the latent process rather than measurement error. |
| Latent factor | An unobserved construct inferred from multiple indicators, such as reappraisal inferred from three items. |
| Innovation | A new, conditionally unpredictable departure in the process after accounting for prior modeled information. It is carried forward by the dynamics. |
| Innovation covariance | How unexpected same-occasion changes in two variables co-occur. |
| Random innovation variance / correlation | Person-specific innovation variances (log scale) and correlations (Fisher scale). |
| Temporal covariance structure | The pattern of variances and covariances of measurements across time, within and possibly across variables. |
| Effective sample size | The number of independent observations containing the same information as a set of correlated ones; for an AR(1) mean, about . In Bayesian output, ESS also refers to the number of independent posterior draws. |
| Affective inertia | Persistence of affect from one occasion to the next, commonly operationalized using an autoregressive coefficient. |
| Stationarity | Roughly, the relevant statistical properties of the process do not systematically change over time; precise definitions depend on what properties are assumed constant. |
| RDSEM | Residual DSEM: the autoregressive structure is placed on residuals rather than on the outcomes. |
| TINTERVAL | An Mplus option that places observations on a regular time grid and inserts missing rows for empty grid cells. |
| Continuous-time model / drift | A model in which lag coefficients depend on elapsed time; the drift governs how fast deviations decay. |
| Three-level DSEM (DSEM3) | DSEM with moments within days within persons (or other three-level nestings), with latent centering at every level. |
| PSRF | Potential scale reduction factor: a Bayesian convergence diagnostic comparing variability between and within MCMC chains. |
| One-tailed p-value (Mplus Bayes) | The proportion of posterior draws on the opposite side of zero; a posterior probability, not a frequentist p-value. |
| Causal effect | How an outcome would differ under an intervention on a variable, under specified assumptions; not automatically given by observational lagged coefficients. |
| Cattell's data box | A picture of all possible data as a box with three sides: persons, variables, and occasions. Designs differ in which slice of the box they use. |
| Ergodicity | The condition under which results across people also describe each individual: all persons share the same means, variances, and (lagged) covariances. Almost never plausible in psychology. |
| General law | Every person has the same within-person relationship. |
| Homology | The within-person and between-person relationships are the same. |
| Equilibrium (attractor) | The level a person returns to after being pushed away; in a stationary model, the person's mean. |
| MSSD | Mean squared successive difference: the average squared change between consecutive prompts; a descriptive index of moment-to-moment instability. |
| Kalman filter | A step-by-step method that combines a model-based prediction with a noisy new measurement, weighting each by its reliability; when a measurement is missing, it carries the prediction forward with growing uncertainty. |
| Kalman gain | The fraction of the gap between prediction and new measurement by which the Kalman filter updates its estimate. |
| Kalman smoother | A backward pass after the filter that also uses later observations, so estimates for any moment, including gaps, use the whole series. |
| State-space model | A model with an unobserved (latent) state that evolves over time and is observed with error; the framework in which the Kalman filter operates. |
| Replicated N = 1 analysis | Fitting the same time-series model to each person separately and summarizing the results across persons. |
| Partial autocorrelation (PACF) | The correlation between a variable and itself occasions earlier, after removing what the occasions in between explain. |
| ESM (experience sampling method) | Another name for EMA. The two terms are used largely interchangeably. |
| Compliance | The share of planned prompts that a participant answered; about 79% on average across studies. |
| Initial elevation bias | The tendency for the first few reports in a study to be higher than later ones, which then stabilize. |
| Measurement-burst design | Several EMA periods (bursts) separated by longer gaps, for example three one-week bursts over a year. |
| Missing at random (MAR) | Whether a prompt is missed may depend on observed information (such as time of day) but not on the unobserved value itself. |
| Lag as moderator | Letting the time since the previous prompt interact with a lagged predictor, so the lagged effect can weaken over longer gaps. |
| Micro-randomized trial | A design that randomizes, at many moments for each person, whether a brief intervention is delivered. |
20References and further reading
For your researchWhere to read more: the core DSEM and Mplus papers, the ESM handbook chapters, and the sources behind most specific claims in the guide.
The worked EMA numbers in this guide are illustrative, not taken from these papers.
Core DSEM and Mplus sources
- Asparouhov, T., Hamaker, E. L., & Muthén, B. (2018). Dynamic structural equation models. Structural Equation Modeling: A Multidisciplinary Journal, 25(3), 359-388. https://doi.org/10.1080/10705511.2017.1406803 (author-hosted article)
- Asparouhov, T., & Muthén, B. (2019). Latent variable centering of predictors and mediators in multilevel and time-series models. Structural Equation Modeling, 26(1), 119-142. https://doi.org/10.1080/10705511.2018.1511375 (author-hosted article). Useful for thinking about the distinction between observed person-mean centering and latent within-between decomposition.
- Asparouhov, T., & Muthén, B. (2020). Comparison of models for the analysis of intensive longitudinal data. Structural Equation Modeling, 27(2), 275-297. https://doi.org/10.1080/10705511.2019.1626733 (author-hosted article)
- Asparouhov, T., & Muthén, B. (2024). Continuous time dynamic structural equation models (Technical report, Version 5). https://www.statmodel.com/download/CTRDSEM.pdf
- Asparouhov, T., & Muthén, B. (2026). Three-level dynamic structural equation modeling. Structural Equation Modeling, 33(2), 281-309. https://doi.org/10.1080/10705511.2025.2608122 (author-hosted article)
- Hamaker, E. L., Asparouhov, T., & Muthén, B. (2023). Dynamic structural equation modeling as a combination of time series modeling, multilevel modeling, and structural equation modeling. In R. H. Hoyle (Ed.), Handbook of structural equation modeling (2nd ed., pp. 576-596). Guilford Press. Supplementary materials: https://ellenhamaker.github.io/DSEM-book-chapter/
- McNeish, D., & Hamaker, E. L. (2020). A primer on two-level dynamic structural equation modeling for intensive longitudinal data in Mplus. Psychological Methods, 25(5), 610-635.
- Muthén, B., & Asparouhov, T. (2023). Using Mplus to do dynamic structural equation modeling (Mplus Web Talk No. 6). https://www.statmodel.com/Webtalk6.shtml
- Muthén & Muthén. Mplus version history (accessed October 2026). https://www.statmodel.com/verhistory.shtml
Extensions mentioned in the guide
- McNeish, D. (2019). Two-level dynamic structural equation models with small samples. Structural Equation Modeling, 26(6), 948-966.
- McNeish, D. (2025). Missing not at random intensive longitudinal data with dynamic structural equation models. Psychological Methods. In press.
- McNeish, D., & MacKinnon, D. P. (2025). Intensive longitudinal mediation in Mplus. Psychological Methods, 30(2), 393-415.
- Muthén, B., Asparouhov, T., & Keijsers, L. (2025). Dynamic structural equation modeling with cycles. Structural Equation Modeling, 32(2), 264-286. https://doi.org/10.1080/10705511.2024.2406510
- Muthén, B., Asparouhov, T., & Shiffman, S. (2025). Dynamic structural equation modeling with floor effects. Psychological Methods. https://doi.org/10.1037/met0000720
- Schultzberg, M., & Muthén, B. (2018). Number of subjects and time points needed for multilevel time-series analysis: A simulation study of dynamic structural equation modeling. Structural Equation Modeling, 25(4), 495-515. https://doi.org/10.1080/10705511.2017.1392862
- Schuurman, N. K., & Hamaker, E. L. (2019). Measurement error and person-specific reliability in multilevel autoregressive modeling. Psychological Methods, 24(1), 70-91. https://doi.org/10.1037/met0000188
Cross-lagged panel models
- Hamaker, E. L., Kuiper, R. M., & Grasman, R. P. P. P. (2015). A critique of the cross-lagged panel model. Psychological Methods, 20(1), 102-116. https://doi.org/10.1037/a0038889
- Mulder, J. D., & Hamaker, E. L. (2021). Three extensions of the random intercept cross-lagged panel model. Structural Equation Modeling, 28(4), 638-648. https://doi.org/10.1080/10705511.2020.1784738
- Muthén, B., & Asparouhov, T. (2024). Can cross-lagged panel modeling be relied on to establish cross-lagged effects? Psychological Methods. https://doi.org/10.1037/met0000661
Centering, multilevel inference, and dynamic-panel bias
- Hamaker, E. L., & Grasman, R. P. P. P. (2015). To center or not to center? Investigating inertia with a multilevel autoregressive model. Frontiers in Psychology, 5, 1492. https://doi.org/10.3389/fpsyg.2014.01492
- Lüdtke, O., Marsh, H. W., Robitzsch, A., Trautwein, U., Asparouhov, T., & Muthén, B. (2008). The multilevel latent covariate model: A new, more reliable approach to group-level effects in contextual studies. Psychological Methods, 13(3), 203-229. https://doi.org/10.1037/a0012869
- Nickell, S. (1981). Biases in dynamic models with fixed effects. Econometrica, 49(6), 1417-1426. https://doi.org/10.2307/1911408
- Self, S. G., & Liang, K.-Y. (1987). Asymptotic properties of maximum likelihood estimators and likelihood ratio tests under nonstandard conditions. Journal of the American Statistical Association, 82(398), 605-610.
- Stram, D. O., & Lee, J. W. (1994). Variance components testing in the longitudinal mixed effects model. Biometrics, 50(4), 1171-1177.
- Lord, F. M. (1967). A paradox in the interpretation of group comparisons. Psychological Bulletin, 68(5), 304-305.
- Zellner, A. (1962). An efficient method of estimating seemingly unrelated regressions and tests for aggregation bias. Journal of the American Statistical Association, 57(298), 348-368.
Software
- Koslowski, K., Münch, F., Koch, T., & Holtmann, J. (2025). mlts: Multilevel latent time series models with R and Stan (R package version 2.0.1). https://cran.r-project.org/package=mlts
Within-person research, affect dynamics, and state-space methods
- Hamaker, E. L. (2012). Why researchers should think "within-person": A paradigmatic rationale. In M. R. Mehl & T. S. Conner (Eds.), Handbook of research methods for studying daily life (pp. 43-61). Guilford Press.
- Hamaker, E. L., Asparouhov, T., & Muthén, B. (2017, March 14). Dynamic structural equation modeling of intensive longitudinal data using Mplus version 8 (Part 1) [Webinar slides]. PSMG webinar series.
- Hamaker, E. L., Asparouhov, T., & Muthén, B. (2021). Supplementary materials for DSEM book chapter [Website]. https://ellenhamaker.github.io/DSEM-book-chapter/
- Molenaar, P. C. M. (2004). A manifesto on psychology as idiographic science: Bringing the person back into scientific psychology, this time forever. Measurement: Interdisciplinary Research and Perspectives, 2(4), 201-218.
- Jahng, S., Wood, P. K., & Trull, T. J. (2008). Analysis of affective instability in ecological momentary assessment: Indices using successive differences and group comparison via multilevel modeling. Psychological Methods, 13(4), 354-375.
- Jongerling, J., Laurenceau, J.-P., & Hamaker, E. L. (2015). A multilevel AR(1) model: Allowing for inter-individual differences in trait-scores, inertia, and innovation variance. Multivariate Behavioral Research, 50(3), 334-349.
- Schuurman, N. K., Ferrer, E., de Boer-Sonnenschein, M., & Hamaker, E. L. (2016). How to compare cross-lagged associations in a multilevel autoregressive model. Psychological Methods, 21(2), 206-221.
- De Haan-Rietdijk, S., Voelkle, M. C., Keijsers, L., & Hamaker, E. L. (2017). Discrete- vs. continuous-time modeling of unequally spaced experience sampling method data. Frontiers in Psychology, 8, 1849.
- Kalman, R. E. (1960). A new approach to linear filtering and prediction problems. Journal of Basic Engineering, 82(1), 35-45.
- Harvey, A. C. (1989). Forecasting, structural time series models and the Kalman filter. Cambridge University Press.
The ESM handbook and sources cited through it
The ESM handbook and the chapters cited
- Myin-Germeys, I., & Kuppens, P. (Eds.). (2026). The open handbook of experience sampling methodology: A step-by-step guide to designing, conducting and analysing ESM studies (3rd ed.). Leuven University Press. https://doi.org/10.11116/9789461666932
- Beames, J. R., Uyttebroek, L., Schat, E., Kiekens, G., & Myin-Germeys, I. (2026). ESM as a clinical tool and foundation for intervention: From research to clinical practice. In I. Myin-Germeys & P. Kuppens (Eds.), The open handbook of experience sampling methodology (3rd ed., pp. 241-258). Leuven University Press.
- Cloos, L., Eisele, G., Dejonckheere, E., & Erbas, Y. (2026). Designing an experience sampling study. In I. Myin-Germeys & P. Kuppens (Eds.), The open handbook of experience sampling methodology (3rd ed., pp. 37-74). Leuven University Press.
- Eisele, G., Cloos, L., & Houben, M. (2026). Questionnaire design and evaluation. In I. Myin-Germeys & P. Kuppens (Eds.), The open handbook of experience sampling methodology (3rd ed., pp. 75-97). Leuven University Press.
- Kirtley, O. J. (2026). Ethical issues in experience sampling method research. In I. Myin-Germeys & P. Kuppens (Eds.), The open handbook of experience sampling methodology (3rd ed., pp. 99-110). Leuven University Press.
- Kuppens, P., & Myin-Germeys, I. (2026). Research questions that can be answered with ESM research. In I. Myin-Germeys & P. Kuppens (Eds.), The open handbook of experience sampling methodology (3rd ed., pp. 25-35). Leuven University Press.
- Lachowicz, A. M., Van Heck, L., Niemeijer, K., & Vaessen, T. (2026). Passive sensing in ESM research. In I. Myin-Germeys & P. Kuppens (Eds.), The open handbook of experience sampling methodology (3rd ed., pp. 259-284). Leuven University Press.
- Lafit, G. (2026a). Non-normal, higher-level, and VAR(1) models for the analysis of ESM data. In I. Myin-Germeys & P. Kuppens (Eds.), The open handbook of experience sampling methodology (3rd ed., pp. 189-217). Leuven University Press.
- Lafit, G. (2026b). Sample size selection in ESM studies. In I. Myin-Germeys & P. Kuppens (Eds.), The open handbook of experience sampling methodology (3rd ed., pp. 219-237). Leuven University Press.
- Viechtbauer, W. (2026a). Structuring, checking and preparing the data. In I. Myin-Germeys & P. Kuppens (Eds.), The open handbook of experience sampling methodology (3rd ed., pp. 143-157). Leuven University Press.
- Viechtbauer, W. (2026b). Statistical methods for ESM data. In I. Myin-Germeys & P. Kuppens (Eds.), The open handbook of experience sampling methodology (3rd ed., pp. 159-187). Leuven University Press.
Primary sources described through the handbook or cited for specific claims
- Bolger, N., & Laurenceau, J.-P. (2013). Intensive longitudinal methods: An introduction to diary and experience sampling research. Guilford Press.
- Brans, K., Koval, P., Verduyn, P., Lim, Y. L., & Kuppens, P. (2013). The regulation of negative and positive affect in daily life. Emotion, 13(5), 926-939. https://doi.org/10.1037/a0032400
- Bringmann, L. F., Elmer, T., Epskamp, S., Krause, R. W., Schoch, D., Wichers, M., Wigman, J. T. W., & Snippe, E. (2019). What do centrality measures measure in psychological networks? Journal of Abnormal Psychology, 128(8), 892-903. https://doi.org/10.1037/abn0000446
- Bulteel, K., Mestdagh, M., Tuerlinckx, F., & Ceulemans, E. (2018). VAR(1) based models do not always outpredict AR(1) models in typical psychological applications. Psychological Methods, 23(4), 740-756. https://doi.org/10.1037/met0000178
- Davis, T. J., Hevel, D. J., Dunton, G. F., & Maher, J. P. (2023). Bidirectional associations between physical activity and pain among older adults: An ecological momentary assessment study. Journal of Aging and Physical Activity, 31(2), 240-248. https://doi.org/10.1123/japa.2022-0014
- Dejonckheere, E., Mestdagh, M., Houben, M., Erbas, Y., Pe, M., Koval, P., Brose, A., Bastian, B., & Kuppens, P. (2018). The bipolarity of affect and depressive symptoms. Journal of Personality and Social Psychology, 114(2), 323-341. https://doi.org/10.1037/pspp0000186
- Dejonckheere, E., Mestdagh, M., Houben, M., Rutten, I., Sels, L., Kuppens, P., & Tuerlinckx, F. (2019). Complex affect dynamics add limited information to the prediction of psychological well-being. Nature Human Behaviour, 3(5), 478-491. https://doi.org/10.1038/s41562-019-0555-0
- Dejonckheere, E., Demeyer, F., Geusens, B., Piot, M., Tuerlinckx, F., Verdonck, S., & Mestdagh, M. (2022). Assessing the reliability of single-item momentary affective measurements in experience sampling. Psychological Assessment, 34(12), 1138-1154. https://doi.org/10.1037/pas0001178
- Eisele, G., Lafit, G., Vachon, H., Kuppens, P., Houben, M., Myin-Germeys, I., & Viechtbauer, W. (2021). Affective structure, measurement invariance, and reliability across different experience sampling protocols. Journal of Research in Personality, 92, 104094. https://doi.org/10.1016/j.jrp.2021.104094
- Hedges, L. V., Hedberg, E. C., & Kuyper, A. M. (2012). The variance of intraclass correlations in three- and four-level models. Educational and Psychological Measurement, 72(6), 893-909. https://doi.org/10.1177/0013164412445193
- Kirtley, O. J., Lafit, G., Achterhof, R., Hiekkaranta, A. P., & Myin-Germeys, I. (2021). Making the black box transparent: A template and tutorial for registration of studies using experience-sampling methods. Advances in Methods and Practices in Psychological Science, 4(1). https://doi.org/10.1177/2515245920924686
- Lafit, G., Adolf, J. K., Dejonckheere, E., Myin-Germeys, I., Viechtbauer, W., & Ceulemans, E. (2021). Selection of the number of participants in intensive longitudinal studies: A user-friendly shiny app and tutorial for performing power analysis in multilevel regression models that account for temporal dependencies. Advances in Methods and Practices in Psychological Science, 4(1). https://doi.org/10.1177/2515245920978738
- Lafit, G., Revol, J., Cloos, L., Kuppens, P., & Ceulemans, E. (2025). The effect of different construct operationalizations, study duration, and preprocessing choices on power-based sample size recommendations in intensive longitudinal research. Assessment, 32(2), 206-223. https://doi.org/10.1177/10731911241286868
- Revol, J., Carlier, C., Lafit, G., Verhees, M., Sels, L., & Ceulemans, E. (2024). Preprocessing experience-sampling-method data: A step-by-step framework, tutorial website, R package, and reporting templates. Advances in Methods and Practices in Psychological Science, 7(4). https://doi.org/10.1177/25152459241256609
- Selig, J. P., Preacher, K. J., & Little, T. D. (2012). Modeling time-dependent association in longitudinal data: A lag as moderator approach. Multivariate Behavioral Research, 47(5), 697-716. https://doi.org/10.1080/00273171.2012.715557
- Shrout, P. E., Stadler, G., Lane, S. P., McClure, M. J., Jackson, G. L., Clavél, F. D., Iida, M., Gleason, M. E. J., Xu, J. H., & Bolger, N. (2018). Initial elevation bias in subjective reports. Proceedings of the National Academy of Sciences, 115(1), E15-E23. https://doi.org/10.1073/pnas.1712277115
- Sun, J., Rhemtulla, M., & Vazire, S. (2021). Eavesdropping on missing data: What are university students doing when they miss experience sampling reports? Personality and Social Psychology Bulletin, 47(11), 1535-1549. https://doi.org/10.1177/0146167220964639
History of the term "innovation"
- Bode, H. W., & Shannon, C. E. (1950). A simplified derivation of linear least square smoothing and prediction theory. Proceedings of the IRE, 38(4), 417-425. https://doi.org/10.1109/JRPROC.1950.231821
- Kailath, T. (1968). An innovations approach to least-squares estimation, Part I: Linear filtering in additive white noise. IEEE Transactions on Automatic Control, 13(6), 646-655. https://doi.org/10.1109/TAC.1968.1099025
- Kailath, T. (1974). A view of three decades of linear filtering theory. IEEE Transactions on Information Theory, 20(2), 146-181. https://doi.org/10.1109/TIT.1974.1055174
- Zadeh, L. A., & Ragazzini, J. R. (1950). An extension of Wiener's theory of prediction. Journal of Applied Physics, 21(7), 645-655.
Emotion regulation background (introduction)
- Gross, J. J. (1998). The emerging field of emotion regulation: An integrative review. Review of General Psychology, 2(3), 271-299. https://doi.org/10.1037/1089-2680.2.3.271
- Grandey, A. A. (2000). Emotion regulation in the workplace: A new way to conceptualize emotional labor. Journal of Occupational Health Psychology, 5(1), 95-110. https://doi.org/10.1037/1076-8998.5.1.95
- Rahaman, S., Govil, P., Khan, D., & Jevremov, T. D. (2024). A 30-year bibliometric assessment and visualisation of emotion regulation research: Applying network analysis and cluster analysis. Information Discovery and Delivery, 52(1), 85-100. https://doi.org/10.1108/IDD-11-2022-0110
- PubMed search for "emotion regulation"[tiab] (accessed October 16, 2026): 18,544 records; 18 in 2000, 242 in 2010, 867 in 2015, 1,520 in 2020, 2,489 in 2025. https://pubmed.ncbi.nlm.nih.gov/?term=%22emotion+regulation%22%5Btiab%5D
Variance components and priors
- Halekoh, U., & Højsgaard, S. (2014). A Kenward-Roger approximation and parametric bootstrap methods for tests in linear mixed models: The R package pbkrtest. Journal of Statistical Software, 59(9), 1-32. https://doi.org/10.18637/jss.v059.i09
- Schuurman, N. K., Grasman, R. P. P. P., & Hamaker, E. L. (2016). A comparison of inverse-Wishart prior specifications for covariance matrices in multilevel autoregressive models. Multivariate Behavioral Research, 51(2-3), 185-206. https://doi.org/10.1080/00273171.2015.1065398
21Appendix: R code for the simulations
For your researchIf you want to check or extend a simulation result reported in this guide, the complete code is here. It runs in base R, without extra packages.
The simulation results reported in the text of Sections 5.4, 10.8, and 15.2 come from the three R scripts below. Each script sets its random seed, so running it should reproduce the reported numbers (they were produced with R 4.3). Each script prints the average estimate across the simulated studies and its Monte Carlo standard error: the uncertainty in that average that comes from running a limited number of simulated studies, computed as the standard deviation of the estimates divided by the square root of the number of studies.
The interactive figures are separate. Each draws one simulated data set in your browser from a fixed seed, so its values can differ slightly from the averages reported in the text.
21.1Nickell bias (Section 5.4)
Simulates studies of 300 persons with a true autoregression of 0.70 and estimates it after centering each person's series on its observed mean, for series of 20 and 180 prompts.
Show the R code (01_nickell_bias.R)
R# Nickell bias when the lagged outcome is centered on the observed person mean
# (Section 5.4 of "Analyzing the relationships between variables in EMA data").
# Base R only; runs in a few seconds.
set.seed(2026)
n_persons <- 300 # simulated persons per study
phi <- 0.70 # true autoregression
n_reps <- 100 # simulated studies per series length
T_values <- c(20, 180)
# One study: each person has a stationary AR(1) series of length T.
simulate_study <- function(n_persons, T, phi) {
y <- matrix(0, n_persons, T)
y[, 1] <- rnorm(n_persons, 0, 1 / sqrt(1 - phi^2))
for (t in 2:T) y[, t] <- phi * y[, t - 1] + rnorm(n_persons)
y
}
# Pooled within-person estimate: center every series on its observed mean,
# then regress each centered score on the previous centered score.
within_ar <- function(y) {
yc <- y - rowMeans(y)
T <- ncol(y)
sum(yc[, -1] * yc[, -T]) / sum(yc[, -T]^2)
}
results <- t(sapply(T_values, function(T) {
est <- replicate(n_reps, within_ar(simulate_study(n_persons, T, phi)))
c(T = T,
mean_estimate = mean(est),
mc_se = sd(est) / sqrt(n_reps), # Monte Carlo standard error
approximation = phi - (1 + phi) / (T - 1))
}))
print(round(results, 3))
21.2Missing prompts and measurement error (Section 10.8)
Simulates studies of 150 persons with 180 prompts each and a true inertia of 0.50, with or without missing prompts and measurement error. It compares lagged regression (complete pairs, or lagging to the last available prompt) with a model-based estimator: maximum likelihood with a Kalman filter and a latent person mean, with or without a measurement-error term. The second part compares the precision of complete-pair regression and the model-based estimator with 40% of prompts missing.
Show the R code (02_missing_and_measurement_error.R)
R# Missing prompts and measurement error: lagged regression versus a model-based
# (Kalman filter) estimator (Section 10.8 of "Analyzing the relationships between
# variables in EMA data"). Base R only; runs in about 10 to 15 minutes.
set.seed(2026)
n_persons <- 150
n_prompts <- 180
phi <- 0.50 # true inertia of the latent NA state
var_state <- 1 / (1 - phi^2) # within-person variance of the state (innovation SD = 1)
# One study. reliability = share of within-person report variance that comes
# from the true state; p_missing = probability that a prompt is missed (at random).
simulate_study <- function(reliability, p_missing) {
var_error <- var_state * (1 - reliability) / reliability
state <- matrix(0, n_persons, n_prompts)
state[, 1] <- rnorm(n_persons, 0, sqrt(var_state))
for (t in 2:n_prompts) state[, t] <- phi * state[, t - 1] + rnorm(n_persons)
y <- rnorm(n_persons, 5, 1) + state +
matrix(rnorm(n_persons * n_prompts, 0, sqrt(var_error)), n_persons)
y[matrix(runif(n_persons * n_prompts) < p_missing, n_persons)] <- NA
y
}
# Lagged regression on person-mean-centered reports.
# last_available = FALSE: use only pairs of consecutive prompts that were both answered.
# last_available = TRUE: lag each answer to the previous *answered* prompt.
lagged_regression <- function(y, last_available = FALSE) {
num <- 0; den <- 0
for (i in seq_len(nrow(y))) {
yc <- y[i, ] - mean(y[i, ], na.rm = TRUE)
if (last_available) yc <- yc[!is.na(yc)]
now <- yc[-1]; before <- yc[-length(yc)]
ok <- !is.na(now) & !is.na(before)
num <- num + sum(now[ok] * before[ok]); den <- den + sum(before[ok]^2)
}
num / den
}
# Model-based estimator: maximum likelihood with a Kalman filter. The state of each
# person is (person mean, within-person deviation); the person mean is latent, the
# deviation follows an AR(1), and the report may contain measurement error.
# theta = (atanh(phi), log innovation variance, log error variance, grand mean,
# log variance of person means)
kalman_negloglik <- function(theta, y, with_error) {
f <- tanh(theta[1]); s2 <- exp(theta[2])
e2 <- if (with_error) exp(theta[3]) else 0
g <- theta[4]; t2 <- exp(theta[5])
n <- nrow(y)
a_m <- rep(g, n); a_w <- rep(0, n) # predicted state
P00 <- rep(t2, n); P01 <- rep(0, n); P11 <- rep(s2 / (1 - f^2), n)
loglik <- 0
for (t in seq_len(ncol(y))) {
yt <- y[, t]; obs <- !is.na(yt)
F <- P00 + 2 * P01 + P11 + e2 # variance of the predicted report
v <- yt - (a_m + a_w) # prediction error
K0 <- (P00 + P01) / F; K1 <- (P01 + P11) / F # Kalman gains
loglik <- loglik - 0.5 * sum(log(2 * pi * F[obs]) + v[obs]^2 / F[obs])
h0 <- P00 + P01; h1 <- P01 + P11
# update with the report (only where the prompt was answered)
a_m[obs] <- a_m[obs] + K0[obs] * v[obs]; a_w[obs] <- a_w[obs] + K1[obs] * v[obs]
P00[obs] <- P00[obs] - K0[obs] * h0[obs]
P01[obs] <- P01[obs] - K0[obs] * h1[obs]
P11[obs] <- P11[obs] - K1[obs] * h1[obs]
# predict the next prompt: the person mean stays, the deviation decays by phi
a_w <- f * a_w; P01 <- f * P01; P11 <- f^2 * P11 + s2
}
-loglik
}
model_based <- function(y, with_error) {
start <- c(atanh(0.3), 0, -1, mean(y, na.rm = TRUE), 0)
if (with_error) {
fit <- optim(start, kalman_negloglik, y = y, with_error = TRUE, method = "L-BFGS-B")
tanh(fit$par[1])
} else {
fit <- optim(start[-3], function(th) kalman_negloglik(append(th, 0, 2), y, FALSE),
method = "L-BFGS-B")
tanh(fit$par[1])
}
}
# ---- Table in Section 10.8: 20 simulated studies per condition ----
n_reps <- 20
conditions <- expand.grid(p_missing = c(0, 0.3), reliability = c(1, 0.7))
table_rows <- lapply(seq_len(nrow(conditions)), function(k) {
est <- replicate(n_reps, {
y <- simulate_study(conditions$reliability[k], conditions$p_missing[k])
c(pairs = lagged_regression(y),
last_available = lagged_regression(y, last_available = TRUE),
model_no_error = model_based(y, with_error = FALSE),
model_error = model_based(y, with_error = TRUE))
})
data.frame(reliability = conditions$reliability[k], p_missing = conditions$p_missing[k],
estimator = rownames(est), mean = rowMeans(est),
mc_se = apply(est, 1, sd) / sqrt(n_reps))
})
print(do.call(rbind, table_rows), digits = 4, row.names = FALSE)
# ---- Precision with 40% missing: 200 simulated studies ----
n_reps <- 200
est <- replicate(n_reps, {
y <- simulate_study(reliability = 1, p_missing = 0.4)
c(pairs = lagged_regression(y), model = model_based(y, with_error = FALSE))
})
sd_ratio <- sd(est["pairs", ]) / sd(est["model", ])
boot_ratio <- replicate(4000, { b <- sample(n_reps, replace = TRUE)
sd(est["pairs", b]) / sd(est["model", b]) })
cat(sprintf("40%% missing, %d studies: complete-pair mean %.3f (SD %.4f), model-based mean %.3f (SD %.4f)\n",
n_reps, mean(est["pairs", ]), sd(est["pairs", ]), mean(est["model", ]), sd(est["model", ])))
cat(sprintf("SD ratio %.2f, bootstrap 95%% interval %.2f to %.2f\n",
sd_ratio, quantile(boot_ratio, 0.025), quantile(boot_ratio, 0.975)))
21.3Ignoring the day level (Section 15.2)
Simulates studies of 150 persons with 30 days of 6 prompts, a true within-day autoregression of 0.30, a day component of varying size, and no carryover between days. It compares a two-level analysis that ignores days with centering on observed day means.
Show the R code (03_day_level.R)
R# Ignoring the day level, and centering on observed day means
# (Section 15.2 of "Analyzing the relationships between variables in EMA data").
# Base R only; runs in under a minute.
set.seed(2026)
n_persons <- 150
n_days <- 30
n_prompts <- 6 # prompts per day
phi <- 0.30 # true within-day autoregression
sd_days <- c(0, 0.5, 0.7, 1.0) # SD of the day component
n_reps <- 50 # simulated studies per condition
# One study. Each day starts afresh from the stationary distribution
# (no carryover between days) and is shifted by its own day component.
simulate_study <- function(sd_day) {
y <- array(0, c(n_persons, n_days, n_prompts))
person_mean <- rnorm(n_persons)
for (d in 1:n_days) {
day_shift <- rnorm(n_persons, 0, sd_day)
w <- rnorm(n_persons, 0, 1 / sqrt(1 - phi^2))
for (k in 1:n_prompts) {
if (k > 1) w <- phi * w + rnorm(n_persons)
y[, d, k] <- person_mean + day_shift + w
}
}
y
}
# (a) Two-level analysis that ignores days: center on the person mean and
# take lags across consecutive rows, including the overnight transition.
two_level_ar <- function(y) {
flat <- matrix(aperm(y, c(1, 3, 2)), n_persons) # rows = persons, columns in time order
yc <- flat - rowMeans(flat)
n <- ncol(yc)
sum(yc[, -1] * yc[, -n]) / sum(yc[, -n]^2)
}
# (b) Center on the observed day mean and take lags within days only.
day_mean_ar <- function(y) {
yc <- y - as.vector(apply(y, c(1, 2), mean))
sum(yc[, , -1] * yc[, , -n_prompts]) / sum(yc[, , -n_prompts]^2)
}
results <- t(sapply(sd_days, function(s) {
est <- replicate(n_reps, { y <- simulate_study(s); c(two_level_ar(y), day_mean_ar(y)) })
c(sd_day = s,
two_level = mean(est[1, ]), two_level_mc_se = sd(est[1, ]) / sqrt(n_reps),
day_mean = mean(est[2, ]), day_mean_mc_se = sd(est[2, ]) / sqrt(n_reps))
}))
print(round(results, 3))