원시데이터 수집 시스템
선정목록으로

Analysis of event-related potential difference waves can benefit from linear mixed effects modeling: Recommendations for analyses and general model fitting

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Megan J. Heise — Division of HIV, Infectious Diseases and Global Medicine, University of California, San Francisco, USA
  2. Serena K. Mon — Roxelyn and Richard Pepper Department of Communication Sciences and Disorders, Northwestern University, USA
  3. Lindsay C. Bowman — Department of Psychology, University of California, Davis, USA; Center for Mind and Brain, University of California, Davis, USA. Electronic address: lcbowman@ucdavis.edu
DOI
10.1016/j.dcn.2025.101614
저널
Developmental Cognitive Neuroscience
발행년도
2025
발행기관
Elsevier BV
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.dcn.2025.101614
토픽
Solid-state spectroscopy and crystallography
OpenAlex ID
W4414444528

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Linear mixed effects models (LMEs) have advantages for analyzing mean amplitude event-related potential (ERP) data. Compared to ANOVA and linear regression, LMEs retain more subjects and yield unbiased parameter estimates by accounting for trial-level sources of variability. However, LME analysis of ERP mean amplitude difference waves may be problematic due to the need to pair single trial data to create trial-level difference waves. In both simulated and real pediatric ERP data, the present study compares ERP difference wave results across conventional ANOVA/regression analyses and six trial-level LME approaches in different low trial-count scenarios. We evaluate each approach based on accuracy of estimates and statistical power in simulated data, and magnitude of effect detected in real ERP data from 3- to 5-year-old neurotypical children (N = 64). Two analysis approaches were unbiased: creating trial-level difference waves by pairing trials on all study design features (the 'exact match' approach) and fitting an interaction term; and the interaction term had greater power to detect a significant effect in simulated data. Both simulations and analysis of real preschooler ERP data support using LMEs to analyze difference waves. We also include recommendations for researchers for picking a difference wave approach appropriate for their research question.

본문 143,671자

본문 펼치기
[Developmental Cognitive Neuroscience 76 (2025) 101614](https://doi.org/10.1016/j.dcn.2025.101614) Contents lists available at ScienceDirect # Developmental Cognitive Neuroscience [journal homepage: www.elsevier.com/locate/dcn](https://www.elsevier.com/locate/dcn) Next-gen tools ## Analysis of event-related potential difference waves can benefit from linear mixed effects modeling: Recommendations for analyses and general model fitting Megan J. Heise <sup>a</sup>, Serena K. Mon <sup>b</sup>, Lindsay C. Bowman <sup>c,d,*</sup> a _Division of HIV, Infectious Diseases and Global Medicine, University of California, San Francisco, USA_ b _Roxelyn and Richard Pepper Department of Communication Sciences and Disorders, Northwestern University, USA_ c _Department of Psychology, University of California, Davis, USA_ d _Center for Mind and Brain, University of California, Davis, USA_ A R T I C L E I N F O _Keywords:_ ERP Neural correlates Neuroscience Multilevel models Hierarchical regression Linear mixed effects models 1. Introduction A B S T R A C T Linear mixed effects models (LMEs) have advantages for analyzing mean amplitude event-related potential (ERP) data. Compared to ANOVA and linear regression, LMEs retain more subjects and yield unbiased parameter es­ timates by accounting for trial-level sources of variability. However, LME analysis of ERP mean amplitude _dif­_ _ference waves_ may be problematic due to the need to pair single trial data to create trial-level difference waves. In both simulated and real pediatric ERP data, the present study compares ERP difference wave results across conventional ANOVA/regression analyses and six trial-level LME approaches in different low trial-count sce­ narios. We evaluate each approach based on accuracy of estimates and statistical power in simulated data, and magnitude of effect detected in real ERP data from 3- to 5-year-old neurotypical children ( _N_ = 64). Two analysis approaches were unbiased: creating trial-level difference waves by pairing trials on all study design features (the ‘exact match’ approach) and fitting an interaction term; and the interaction term had greater power to detect a significant effect in simulated data. Both simulations and analysis of real preschooler ERP data support using LMEs to analyze difference waves. We also include recommendations for researchers for picking a difference wave approach appropriate for their research question. _1.1._ _The advantages of linear mixed effects modeling for event-related_ _potential analyses_ Event-related potentials (ERPs) offer a useful measure of cognitive development and underlying neural functioning. ERPs reveal neural changes that precede behavioral displays of cognition (Coch et al., 2002), offer a metric of cognition that can be used across the lifespan (e. g., Clawson et al., 2017; Lepp¨anen et al., 2007), and have advantages over complex behavioral tasks that can prohibit participation from populations with limited or nonexistent verbal skills (e.g., DiStefano et al., 2019; Guy et al., 2018). Thus, ERPs have wide-ranging advantages for the study of cognition, cognitive development, and their neural correlates. Developmental ERP research also faces unique challenges. For example, there are increased artifacts in the electroencephalogram (EEG) when infants and young children are fussy and inattentive (Heise et al., 2022; Noreika et al., 2020). This high proportion of ‘noise’ in ERP trials leads to low analyzable trial counts in developmental samples, and poses problems for traditional ERP analyses when trials are combined to form an averaged waveform (see Heise et al., 2022). That is, mean-averaging results in casewise deletion of subjects with too few trials to produce a ‘clean’ averaged waveform. Critically, casewise deletion is valid only when data are ‘missing completely at random’ (i.e., the probability of missing values is not related to other variables or to the missing values; Baraldi and Enders, 2010). When this assumption is violated, estimates become more biased when casewise deletion in­ creases and data are systematically missing (Little et al., 2016). Data may be ‘missing at random’ if the probability of missing data is predicted by measured variables or ‘missing not at random’ if the probability of missing data is related to unmeasured variables and related to the - Corresponding author at: Department of Psychology, University of California, Davis, USA. _E-mail address:_ [lcbowman@ucdavis.edu](mailto:lcbowman@ucdavis.edu) (L.C. Bowman). [https://doi.org/10.1016/j.dcn.2025.101614](https://doi.org/10.1016/j.dcn.2025.101614) Received 17 November 2024; Received in revised form 20 August 2025; Accepted 18 September 2025 Available online 19 September 2025 [1878-9293/© 2025 Published by Elsevier Ltd. This is an open access article under the CC BY-NC-ND license ( http://creativecommons.org/licenses/by-nc-nd/4.0/ ).](http://creativecommons.org/licenses/by-nc-nd/4.0/) _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ missing values (Nakagawa and Freckleton, 2011). These situations may be typical in developmental ERP studies that have more missing data in younger (versus older) children, and more missing data toward the end (versus beginning) of the trial presentations (e.g., due to fatigue, increased motion artifact, and early experiment termination) (see Heise et al., 2022). Similar situations exist in other research cases wherein the risk for ERP data loss is high (e.g., especially lengthy experiments; participant populations that have difficulty sitting still and attending). Importantly, this biasing affects frequently used statistical models employing casewise deletion, including linear regression and analysis of variance (ANOVA). Heise and colleagues (2022) demonstrated these systematic biases in the use of ANOVAs to analyze raw mean amplitude in pediatric samples, in both simulated and real ERP data (i.e., from 3- to 5-year-old neuro­ typical children). Results demonstrated clear advantages of linear mixed effects models (LMEs), which analyze ERP mean amplitude at the trial level, and remove the need for a trial cutoff and casewise deletion by analyzing subjects with any number of artifact-free trials (see also Vol­ pert-Esmond et al., 2018). Among many advantages, LMEs can include trial-level predictors of missing data, such as trial presentation number and electrode location. Throughout, we use trial presentation number to refer to the instance that a specific trial for a condition (e.g., happy) and stimulus (e.g., a unique actor’s face) is shown to a participant. For example, a picture of each unique actor displaying a happy face is labeled as Trial 1 when it is presented for the first time, Trial 2 for the second time, and so on. Trial presentation numbers can be used in an­ alyses in both randomized and blocked experiments. For creating a trial presentation number variable in randomized experiments, a trial’s po­ sition relative to all trials of the same condition/stimulus is extracted. For blocked designs, a trial’s position relative to trials of the same stimulus is extracted within a block. This trial numbering method is beneficial for isolating variance due to repeated presentations of a particular stimulus (for other numbering methods, see Volpert-Esmond et al., 2021). A trial presentation number predictor can account for systematic variability in ERP amplitudes that may change over the course of suc­ cessive trial presentations (e.g., decay due to habituation effects, Pinto et al., 2022) and account for missing data (e.g., fewer trials toward the end of the experiment). Similarly, an _electrode_ predictor can account for differences in hemisphere, electrode placement, or data quality that may predict missing data. By including these predictors, LMEs are more robust to missingness and can accommodate for data that are missing at random (Baraldi and Enders, 2010; Black et al., 2011). Heise and col­ leagues showed that, in contrast to ANOVA with casewise deletion, LMEs accurately estimated the true population mean amplitude and outperformed ANOVA models, even when data were missing at random and had high proportions of subjects with low trial counts. LME model estimates are further improved by allowing researchers to account for ‘nuisance’ variability (variability that is not of interest itself but that may bias an effect of interest) in the ERPs by modeling both fixed and random effects at both within- and between-subject levels. In addition to fixed effects in LMEs, which can be modeled in linear regression and ANOVA, random effects in LMEs account for sampling variability within a predictor, such as a sample of subjects from the population or a sample of stimuli from the ‘population’ of all po­ tential stimuli chosen for a study. Thus, as described above, LMEs can model variables that likely influence ERP mean amplitude but that are not the target variable of interest, such as trial presentation number, stimulus level features (e.g., color, shape, actor), electrode, and subjects. In contrast, ANOVAs and linear regression are more limited given that their use of mean averaging prevents modeling of within-subject effects, and they cannot model random effects. LMEs also increase power by including all subjects—even those with few artifact-free trials—while ensuring that subjects with more trials have greater weight for model estimates (i.e., partial pooling). Thus, the advantages of using LMEs for analyzing raw mean amplitude ERP data (and in particular pediatric ERP data) are clear: LMEs offer greater flexibility in statistical analyses and in the research questions that ERP researchers may ask (e.g., testing within-subjects effects), and offer unbiased estimates of mean amplitude even when there are high proportions of subjects with low trial counts (see Heise et al., 2022). _1.2._ _Open questions about the applicability of LMEs for ERP difference_ _wave analysis_ Open questions concern whether the advantages of LMEs hold for other kinds of ERP analyses beyond raw mean amplitude. Analysis of mean amplitude _difference waves_ (wherein the outcome variable reflects a subtraction or difference in the amplitudes in two conditions or sam­ ples) is common in ERP research (Clayson et al., 2021; Luck, 2014; see also Meyer et al., 2017 for discussion of residualized difference scores). Some ERP components are only observable as a difference wave, and cannot be found in the raw waveforms. For example, the N2pc (Luck and Hillyard, 1994) is revealed by subtracting the ERP of the ipsilateral electrode from the contralateral electrode, and the mismatch negativity (Na¨at¨ anen et al., 2007¨ ) is revealed by subtracting the ERP to a standard or expected stimulus from a deviant stimulus. Thus, some components require the subtraction of two waveforms to be visually identified. More broadly, ERP difference waves can offer advantages over analyzing raw mean amplitude because they can offer better estimates of the time course and scalp distribution of underlying components (Luck, 2014). That is, through the subtraction process, ERP difference waves can reveal unique patterns of neural activity that better reflect a target cognitive process of interest because the ‘non-target’ processes (e.g., general visual processing, general attention) are ‘subtracted out’. For example, if a researcher is interested in measuring neural activity sup­ porting emotion perception and has participants view a series of faces showing happy, angry, and neutral expressions, then the neural activity supporting perception of emotions _per se_ could be best captured in a difference wave of happy-minus-neutral, and angry-minus-neutral waveforms: Such difference waves would reveal the ERP components unique to perceiving _happy_ and _angry_ faces, with the common neural activity supporting perceptions of _faces_ more broadly subtracted out (see Fig. 1). Difference waves can be used in analyses of between-group differ­ ences (e.g., comparing difference wave amplitude of low- and highfearfulness participants, de Haan et al., 2004), or in analyses relating difference wave amplitude to a relevant clinical, behavioral or cognitive measure (e.g., correlating difference wave mean amplitude with temperament, Quadrelli et al., 2019; Taylor-Colls and Pasco Fearon, 2015). Thus, difference waves offer a powerful approach to isolate unique brain activity to a stimulus of interest, while accounting for general attentional processing or other cognitive processing captured in a comparison condition or sample. It would be valuable to use LMEs to analyze ERP difference waves at the trial level given the illustrated advantages of the LME approach (e.g., Heise et al., 2022). However, there are challenges in applying LMEs to difference waves—especially in pediatric ERP data—that may compro­ mise features of LMEs that allow them to accurately estimate mean amplitude. The conventional approach to create difference waves (e.g., for ANOVA) is to first average across trials, and then create subject-level or condition-level difference waves (e.g., subtract subject 1’s ERP amplitude averaged across neutral faces from their amplitude averaged across happy faces). However, to analyze difference waves with LME, trial-level difference waves must be created (e.g., subtract subject 1’s ERP amplitude on the first neutral face trial from amplitude on the first happy face trial). But there are several considerations when determining how to form trial-level pairs, such as whether or not to match trials on lower-level stimulus features, whether trials presented at the beginning of the experiment can be paired with those presented at the end, and what to do when trials are missing (e.g., due to artifact or lack of completion). Given that infants and young children have few analyzable _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ Fig. 1. Simulated Negative Central Difference Wave. Subtracting the mean amplitude of the ERP elicited to a neutral face (center) from the ERP to a happy face (left) reveals the ERP difference wave (right). The difference wave reveals the voltage changes that are specific to processing a happy face that are different from voltage changes specific to processing a neutral face, with the overlap in voltage across the two conditions subtracted out. The 300–500 ms time window of the Negative Central is shaded (in gray for the raw waveforms, and in red for the difference waveform). ERP trials, it is unclear how to pair trials to form trial-level difference waves in a way that maximizes usable data and preserves pairing based on design features that modulate ERP amplitude (e.g., trial presentation number). Thus, there are open questions about whether and how LMEs can be used to analyze ERP mean amplitude difference waves, and whether LMEs still result in more accurate estimates compared to ANOVA, as shown previously when analyzing raw mean amplitude (Heise et al., 2022). Systematic evaluation of the extent to which LMEs can still yield unbiased parameter estimates, in comparison to ANOVA/regression, are needed to determine whether LMEs should be used to analyze ERP dif­ ference waves. The present study adopts this important aim, and is meant as a companion article to Heise and colleagues’ (2022) original evaluation of LMEs for pediatric raw mean amplitude ERP data. The present article is organized into several remaining sections. In Section 2 next, we discuss the challenges of ERP difference waves for LME analyses, and describe alternative models to analyze difference waves. Section 3 describes the methods and results from simulated ERP data—created to mimic common qualities of pediatric ERP data—to systematically evaluate each of these model approaches in their ability to yield unbiased estimates of the known (simulated) population parameter. Section 4 then describes methods and results of a similar systematic evaluation of these models, this time using real ERP data from 3- to 5-year-old neurotypical children. For each of these sections, we analyze simulated and real ‘Negative Central’ (Nc) ERP data, chosen for its common examination in infant and child ERP analysis with emotional and face stimuli (infant Nc: Bowman et al., 2022; Courchesne et al., 1981; Taylor-Colls and Pasco Fearon, 2015; Xie et al., 2019; child Nc: Buodo et al., 2011; Carver et al., 2003; Dawson et al., 2002; Dennis et al., 2009; Kungl et al., 2017; Moulson et al., 2009; Todd et al., 2008), and its more general purported function of attentional processes related to salient stimuli (Guy et al., 2013; Nelson, 1994; Reynolds and Richards, 2005). The Nc also exhibits a ‘decaying’ property (reduction in amplitude over repeated stimulus presentations; Borgstrom et al., 2016¨ ; Junge et al., 2012) that may be critical to address in analyses. In Section 5, we summarize the best-performing LME models across simulated and real ERP data for difference wave analysis. 2. General methods: The application of LMEs to ERP difference wave analysis To compare difference wave estimates across LMEs and ANOVA, we Fig. 2. Schematic of ERP Face Task. ERP experimental design illustrating inter-trial interval and stimulus duration (A) and examples of emotion conditions (B). Reduced-intensity emotion conditions were created by morphing the full-intensity emotion with neutral until the image was 60 % neutral and 40 % emotion. Actors were grouped into different face sets shown to different participants across the sample (C). _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ examined model performance across both simulated and real pediatric ERPs. The experimental conditions for the simulated data were created to match those for the real ERP data. Briefly, our ERP experiment involved passive viewing of faces of four different emotional expres­ sions—Happy, Angry, Fearful, and Neutral (see Fig. 2). Faces were presented by 18 different female actors (each child saw 4–5 unique ac­ tors) with different stimulus features (e.g., race and hair color). We targeted the Nc component for our analyses—a negative deflection commonly occurring at 300–500 ms post-stimulus onset (Quadrelli et al., 2019, Todd et al., 2008)—given it has a broad attentional func­ tion, is commonly used to assess emotional versus neutral face pro­ cessing (de Haan et al., 2004), and can be measured across large developmental age ranges. We also collected parent-report of children’s temperament characteristics (i.e., from the Early Childhood Behavioral Questionnaire; ECBQ, Putnam et al., 2006, 2010). Similar to this real experiment, we simulated parent-report questionnaire data (i.e., on parental characteristics) in simulation analyses. These experimental conditions and tasks provide the context for evaluating ERP difference wave analyses using alternative approaches to model difference waves with both simulated and real ERP data. Following this study design, we compare trial-level difference waves created through pairing single trials across conditions (‘Exact Match,’ ‘Nearest Neighbor,’ and ‘Random Permutation,’ see Fig. 3), difference waves modeled as an interaction between conditions, and standard mean averaging with casewise deletion (e.g., as in ANOVA). We describe each of these approaches and their potential advantages and disadvan­ tages next. _2.1._ _Analysis models for difference waves_ _1. LME Exact Match._ In this approach, trials are paired by matching all potential features that may modulate ERP mean amplitude, including Fig. 3. Schematic of Trial-Level Difference Wave Pairing Approaches. Exact Match, three types of Nearest Neighbor, and Random Permutation Pairing are used to create trial-level pairings between Condition A (e.g., Neutral) and Condition B (e.g., Happy) for subsequent statistical analyses. Trial-level difference waves are created by subtracting one paired trial from the other trial (e.g., Neutral trial subtracted from Happy trial). Trials presented in light gray represent data loss due to an artifact, and these trials cannot be paired in analyses. _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ trial presentation number and all stimulus features (e.g., Condition AActor 1-Trial 1 matched to Condition B-Actor 1-Trial 1), see Figure 3.1. We use trial presentation number to refer to the order in which a ran­ domized trial is presented within each condition/stimulus (i.e., within each condition, there is a Trial 1 for each actor). Trials that do not have an ‘exact match’ based on presentation number and all stimulus features are removed from analyses. This approach has the benefit of avoiding potential bias from mixmatching trials of different presentation order (e.g., avoid matching early trials with later trials that have decayed amplitude), and also deliberately matching trials based on stimulus features known to modulate ERP amplitude, therefore reducing nuisance variability un­ related to the target cognitive construct. The Exact Match method uses deliberate trial pairing to match study design features to ‘subtract out’ variability that may modulate ERP amplitude. Trial-level ERP amplitude can be thought to contain variance related to the emotion presented (e. g., Angry, Neutral), to the presentation number (e.g., through habitua­ tion or decay effects), and to actor (e.g., an actor with red hair elicits a different amplitude than an actor with brown hair). In pairing trials by all of these features, the resulting waveform should contain variance only relating to conditions which are not matched (e.g., variance related to two different emotions). This ‘feature match’ strategy has the advantage of eliminating the need to add this design variable as an additional predictor in the analysis model. For example, in our experi­ mental context wherein emotional faces are presented, pairing trials who share an actor results in the mean amplitude related to the stimulus features for a given actor (e.g., ‘red hair’) being subtracted out from the trial-level difference wave. As a result, an LME model fit to this dataset would not need to include this stimulus feature as a predictor in the model. Instead, the LME model only needs to account for variables that modulate the _difference wave_ mean amplitude (e.g., age and other subject-level variables that are not affected when subtracting trials paired within a subject). Thus this ‘Exact Match’ approach may result in simpler LME models that are easier to interpret. However, whether matching pairings on a feature will indeed result in ‘subtracting out’ the feature’s potential effect can be a complex pro­ cess. As a particularly relevant example, we can consider decay of the difference wave mean amplitude with repeated trial presentations. On the one hand, if the amplitude of the calculated difference wave is stable over time, it suggests that the two conditions in the difference either do not decay or _decay at the same rate over trials_ . In these _same decay_ cases, an Exact Match method for difference wave trial pairing would ‘subtract out’ any potential influence of decay in the trial-level difference wave, thus accounting for its effect in analyses. On the other hand, if the amplitude of the calculated difference wave systematically changes over repeated trials, it suggests that the two conditions used to calculate the difference have _different decay rates_ (the rate of amplitude decay of Condition A across trials is different from the rate of amplitude decay of Condition B across trials). In these _different decay_ cases, the Exact Match method does not properly account for the influence of decay in analyses and researchers still need to include trial presentation number as a variable in their models. As an additional complication, the Exact Match approach results in higher proportions of data loss at the trial-level and subject-level because a missing trial in either condition results in an unusable trial pair, and participants without any usable trial pairs are excluded from analysis. These issues are exacerbated by low analyzable trial counts in pediatric ERP samples. Therefore, it is possible that fewer trials and subjects included for analysis in this Exact Match approach may intro­ duce noise and/or bias in estimating difference waves. Analysis of the Exact Match approach with different amounts of missing trials is necessary to evaluate its accuracy in LME modeling. _2. LME Nearest Neighbor._ In this approach, trials are paired to their ‘nearest neighbor’ trial—an approach that prioritizes relevant design features while maximizing available ERP trials, see Figure 3.2. Thus, rather than matching _all_ potential design features as in Exact Match, the maximum number of available trials are paired based on _close_ matches. For example, a close match based on trial presentation number could result in pairing Condition A-Trial 1 with Condition B-Trial 2 if Condi­ tion B-Trial 1 is not available. Similarly, a close match based on actor could result in pairing Condition A-Actor 1-Trial 1 with Condition BActor 1-Trial 9. In our approach, close matches are determined by calculating an algorithmic ‘distance’ between trial pairs. Specifically, we use the Mahalanobis distance, which is a measure of the similarity of a trial pair’s design features (presentation number, stimulus features) that accounts for their scale and correlation (Kulis, 2012). Pairs with a low Mahalanobis distance may occur closer temporally (as indexed by trial presentation number) and share similar stimulus features (e.g., have the same actor). We use a ‘greedy’ matching approach in which trials are paired based on their closest match without optimizing across all possible trial pairs or setting a distance threshold. An alternative method is to set a maximum distance threshold that is used to exclude trials that do not have a ‘close enough’ match. The Nearest Neighbor approach offers the advantage of retaining a greater proportion of data by using less strict matching criteria compared to Exact Match. When fitting an LME model to this dataset, we attempted to include variables that average the features of the close match for numeric predictors. For example, we included the average trial presentation number of a pair (e.g., if Condition A-Trial 1 was paired with Condition B-Trial 2, the average trial presentation number is 1.5) to account for amplitude decay. However, it is unclear if the aver­ aged feature may effectively explain variability of the difference wave mean amplitude. In addition, categorical design features (e.g., actor, color) cannot be averaged and thus, cannot be accounted for in the LME model and may result in noisier estimates. Given these factors, it is possible that preserving more trials in the Nearest Neighbor approach may not increase statistical power because of the noise introduced when trials are paired without feature matching on all design features. An alternative is to use a hybrid Nearest Neighbor approach that prioritizes feature matching based on some, but not all, design features (e.g., Condition A-Actor 1 must be paired with Condition B-Actor 1 to ensure that variability due to actor is subtracted out). To empirically examine this issue, we conduct analyses comparing trial-level difference waves paired by Nearest Neighbor within each subject and prioritizing different feature matches: a) Nearest Neighbor using the Mahalanobis distance to find a close match based on all design features (no prioriti­ zation), see Figure 3.2A; b) Prioritizing a feature match of trial presen­ tation number, and then using the Mahalanobis distance to find a close match for stimulus features (e.g., actor), see Figure 3.2B; and c) Priori­ tizing a feature match of stimulus feature (e.g., actor) and then using the Mahalanobis distance to find a close match for trial presentation num­ ber, see Figure 3.2C. _3. LME Random Permutation._ In this approach, trials are paired randomly, without systematic consideration of design features (e.g., trial presentation number, stimulus features, etc.) and this process is repeated (e.g., 10,000 times, Chihara and Hesterberg, 2022), see Figure 3.3. The Random Permutation approach uses all data compared to Exact Match and Nearest Neighbor (where certain trials are systematically excluded). Through random permutations of data pairing, each trial has an equal probability of being paired with a trial from the other condi­ tion. While this approach results in mix-matched trials, the LME model can include averaged features of numeric predictors to account for their effect on the difference wave mean amplitude. Critically, this process is repeated over a large number of iterations, and the noise from specific random pairings should thus be reduced by averaging the model esti­ mates across all iterations. As a result, the Random Permutation approach should result in unbiased model estimates for betweensubjects effects and continuous within-subjects effects. This approach cannot account for categorical design features, but this limitation should not bias estimates of other effects after averaging over many random iterations. Given that each iteration requires fitting a separate model, _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ the Random Permutation approach is more computationally intensive than the other approaches and it is unclear whether there may be added benefits. LME Interaction. Although these trial pairings described above are a more direct comparison to conventional mean-averaged difference waves, there is an alternative approach that involves estimating the difference wave as an interaction term between the raw waveforms and a behavioral variable of interest. For example, in our simulations that follow in Section 3, we examine modulation of the Nc difference wave mean amplitude by a behavioral predictor (maternal sensitivity). We modeled this as an interaction between the emotion condition of the raw waveforms (which has 2 levels: Happy and Neutral) and maternal sensitivity (which has 2 levels: High and Low Sensitivity). This approach circumvents the issue of pairing single trials by fitting an LME model to the mean amplitude of the raw waveforms and estimating their means at different levels of emotion condition and maternal sensitivity. A signif­ icant interaction for this example would indicate that the relation be­ tween Happy and Neutral mean amplitude is _different_ depending on the level of maternal sensitivity (e.g., an infant experiencing low maternal sensitivity has a more negative Nc mean amplitude to Neutral faces compared to Happy, and an infant experiencing high maternal sensi­ tivity has a more negative Nc mean amplitude to Happy faces compared to Neutral, see example in Fig. 4). To estimate the mean amplitude of the Happy-minus-Neutral condition difference, the estimated mean of the Neutral condition is subtracted from the estimated mean of the Happy condition for each maternal sensitivity group. Interaction models offer several benefits over pairing individual ERP trials under an Exact Match, Nearest Neighbor, or Random Permutation approach. When pairing individual trials, there must be an identical number of trials in each condition and therefore some data are excluded from analyses when ERP trials post-processing are not perfectly balanced within a subject. In contrast, individual trials are not paired in an interaction so there is no data loss post-ERP processing. Raw mean amplitude data also have a higher signal-to-noise ratio than difference wave mean amplitude (Luck, 2005). These factors may lead to increased power of an LME Interaction model compared to LME models involving trial pairings. In addition, interaction models can simultaneously examine design features that modulate the raw mean amplitude and the difference wave mean amplitude within the same model. For example, an interaction model can include a trial presentation number variable to examine decay of the raw mean amplitudes and a trial presentation number by condition interaction to examine decay of the difference Fig. 4. Simulated Example of Interaction Between Maternal Sensitivity and ERP Mean Amplitude. Scatterplot of simulated ERP mean amplitude (also referred to as ‘raw mean amplitude’ in text) for two subjects. The simulated data depicts an interaction between emotion condition and maternal sensitivity: An infant experiencing low maternal sensitivity shows more negative mean amplitude to a Neutral face compared to a Happy face, and an infant experi­ encing high maternal sensitivity shows more negative mean amplitude to a Happy face compared to a Neutral face. wave mean amplitude. This flexibility is not possible for trial-pairing LME approaches because data are analyzed at the difference wave mean amplitude level only. However, the interaction term offers a different interpretation from difference waves because they describe the relation between a variable and ERP amplitude as a function of condi­ tion (i.e., the two conditions that would form a difference wave). Given that there is no subtraction process, interaction terms do not describe variance that is specific to certain features of the ERP (e.g., variance specific to the emotion Happy that is independent of variance attributed to face processing more holistically). We examine the potential benefits of the Interaction model in our systematic evaluation of difference wave analyses. ANOVA. Compared to an LME framework, the standard ANOVA approach uses casewise deletion when subjects have too few trials in one or both conditions (e.g., fewer than 10 ERP trials after post-processing) and calculates a mean-averaged difference wave at the condition-level. That is, for each subject, the trial-level data are averaged for each con­ dition. Then, the mean-averaged data for one condition (e.g., Neutral) is subtracted from the other condition (e.g., Happy) to create the differ­ ence wave. Subjects who do not meet the trial cutoff for either condition are casewise deleted and excluded from subsequent analysis. As dis­ cussed in Section 1, casewise deletion leads to high proportions of data loss and increased bias in amplitude estimates in developmental data­ sets. In addition, ANOVA and regression can account for only subjectlevel variables (e.g., age), and not trial-level variables that may be of theoretical interest or predict missingness. Due to these limitations, this approach is expected to return biased estimates of difference waves when data are systematically missing (as demonstrated in Heise et al., 2022). 3. Using simulated data to evaluate and compare approaches for difference wave analysis In this section, we compare several approaches to difference wave analyses detailed in Section 2 using simulated data in which the true ERP population ‘mean amplitudes’ are known. We simulated the Negative Central (Nc), a face-sensitive component appearing over central elec­ trode sites approximately 300–500 ms post-stimulus onset (Quadrelli et al., 2019, Todd et al., 2008). Values for Nc waveforms were simulated based on research examining infants who passively viewed Happy and Neutral faces (Taylor-Colls and Pasco Fearon, 2015) in a similar task to our ERP experimental design (described in detail in Section 4). We also simulated an additional variable to interact with ERP amplitude in order to evaluate the LME Interaction approach. Here too, we used existing research to simulate a ‘maternal sensitivity’ variable examined in the same infant ERP study (Taylor-Colls and Pasco Fearon, 2015). Simulated Nc waveforms from the ‘Happy’ and ‘Neutral’ conditions were analyzed according to the approaches outlined in Section 2: Interaction, Exact Match, Nearest Neighbor: No Prioritization, Nearest Neighbor: Presentation Number Prioritization, Nearest Neighbor: Stim­ ulus Feature Prioritization, Random Permutation (LME models), and ANOVA. We simulated waveforms under two types of decay rates: ‘Happy’ waveforms decaying faster than ‘Neutral’ waveforms (i.e., ‘different decay’) and ‘Happy and ‘Neutral’ waveforms decaying at the same rate (i.e., ‘same decay’) to evaluate the impact of pairing trials with different trial presentation numbers. We also induced missing data under realistic patterns (e.g., more missing data in later trials and younger subjects) and varying low trial counts to evaluate model per­ formance under common developmental ERP data characteristics (see Heise et al., 2022). Models were evaluated on the _number of usable trials_ _and subjects_, _power_ to detect the ‘maternal sensitivity’ effect, error of maternal sensitivity estimates ( _Root Mean Squared Error; RMSE_ ), and bias of maternal sensitivity estimates ( _relative bias_ ). _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ _3.1._ _Predictions for performance across the different approaches_ We predicted that LME models with less strict trial pairing criteria should retain both more trials and more subjects, and ANOVA should retain the least number of subjects because of casewise deletion. Spe­ cifically, ordered from greatest retention of trials and subjects to least retention, we predicted that the Interaction model would retain the most trials and subjects, followed by Nearest Neighbor: No Prioritization and Random Permutation which would each have similar retention of trials and subjects, followed by Nearest Neighbor: Stimulus Feature Prioriti­ zation, then Nearest Neighbor: Presentation Number Prioritization, then Exact Match, and finally ANOVA. We predicted the same model ordering for statistical power such that models which retained more trials and subjects should have greater power. For RMSE and relative bias, we predicted that models that accounted for all design features by analyzing data at the raw mean amplitude level (Interaction), feature matching (Exact Match), or averaging across many iterations (Random Permutation) should perform better than models that paired trials based on close matches (Nearest Neighbor approaches) or were unable to model trial-level characteristics (ANOVA). For relative bias specifically, we predicted that ANOVA should have biased estimates when data were simulated with different decay rates and when more data were missing from later trials ( _Missingness Patterns #1 and #2_ ). This pattern was expected because ANOVA cannot account for trial presen­ tation number, which modulates the difference wave mean amplitude and predicts missing trials under these data simulation conditions. _3.2._ _Methods for simulating ERP data_ [Data simulation and analysis scripts are available at https://github.](https://github.com/basclab/LME_MixedEffectsERPDifferenceWave) [com/basclab/LME_MixedEffectsERPDifferenceWave.](https://github.com/basclab/LME_MixedEffectsERPDifferenceWave) Simulating Nc ERP. Realistic pediatric ERP waveforms were simu­ lated using the SEREEGA toolbox (Version 1.1.0; Krol et al., 2018) for MATLAB (Version 2019a; MATLAB, 2019). The Nc dipole source was defined as the prefrontal ICA component cluster reported in Reynolds and Richards (2005). Data were simulated with the Atlas 1 (0–2 years old) lead field from the Pediatric Head Atlas (Version 1.1; Song et al., 2013). Each simulated dataset consisted of 48 simulated subjects, each with 100 trial-level Nc waveforms (i.e., 50 trials from two emotion conditions: Happy and Neutral). Waveforms were modulated based on simulated data meant to mimic relevant variables at both the subjectand trial-level: ‘maternal sensitivity,’ subject ‘age,’ subject ID number (subject-level variables); actor (5 ’actors’ each presented 10 times per emotion condition), trial presentation number (1–10 for each ‘actor’ and emotion condition, trial-level variables). For our ‘maternal sensitivity’ effect of interest, subjects were assigned to one of two ‘caregiver’ groups: ‘Low maternal sensitivity’ and ‘High maternal sensitivity’. Each maternal sensitivity group was assigned a true population value for their difference wave mean amplitude based on existing research examining infant Nc amplitude modulations by maternal sensitivity. Following Taylor-Colls and Pasco Fearon (2015), subjects in the ‘Low maternal sensitivity group’ were assigned to have a Happy-minus-Neutral differ­ ence wave mean amplitude of 2 μV. Subjects in the ‘High maternal sensitivity group’ were assigned to have a difference of − 2 μV. All simulated trial-level Nc waveforms were combined with real in­ fant EEG ‘noise’ to approximate realistic waveforms containing char­ acteristics of infant neural activity. Infant EEG noise was drawn from a library of ten 4–5-month-old participants ( _Mage_ = 5.12 months, _SD_ = 0.43, 6 males, 4 females) who completed a resting state task in the laboratory. Additional details on the resting state paradigm and EEG processing are provided in Appendix A. We randomly assigned each simulated subject to one of the ten infant noise profiles, and then randomly combined the simulated waveforms with the noise epochs from the infant. We followed these simulation parameters to create 1000 datasets of simulated ‘studies,’ each of which consisted of 48 subjects (24 subjects in each of the maternal sensitivity groups). Additional details on simulation parameters are provided in Appendix Table B.1. We further repeated the process of simulating 1000 datasets for two realistic amplitude decay rates in which the raw mean amplitude habituated, or became less negative, with repeated stimulus pre­ sentations. For the ‘same decay’ condition, we simulated a more ideal­ istic decay rate, in which both conditions decayed at a consistent 1.5 µV per repeated stimulus presentation (Borgstrom et al., 2016¨ ) and thus, the difference wave mean amplitude did not decay. In comparison, the ‘different decay’ condition involved a more egregious but also realistic decay pattern, in which decay rates differed across conditions (i.e., 1.5 µV for Happy and 0.5 µV for Neutral per repeated stimulus presentation). Thus, the difference wave mean amplitude became less negative with repeated stimulus presentations. These two conditions were used to examine model performance under decay rates that may be common for different ERP components. LME assumptions were checked for all datasets: linearity, normal distribution of residuals, and homoscedasticity. Assumptions were met in most models (linearity: 100 %, homoscedasticity: 87.8 %). Normal distribution of residuals was not met in all datasets but we moved for­ ward with analyzing these datasets based on prior work that suggests that LME models are robust to violations of distributional assumptions (Schielzeth et al., 2020), and given that these assumptions may not be met in real datasets. Inducing Missingness Patterns. Each simulated dataset was examined at the ‘population’ level (i.e., no missing trials or subjects) and at different degrees and types of missing data. Following prior devel­ opmental ERP simulation work (Heise et al., 2022), missing trials were assigned based on trial presentation number (ranging from 1–10) and the age group in which subjects were assigned (i.e., younger or older). Specifically, as in Heise and colleagues (2022), we simulated three patterns of missing data: _Missingness Pattern #1)_ greater missing data from both later trials in the experiment and from younger subjects, _Missingness Pattern #2)_ greater missing data from later trials in the experiment and equally from older and younger subjects, and _Missing­_ _ness Pattern #3)_ : data missing completely at random (i.e., equal numbers of missing trials across trial presentation numbers and age groups). When more data were missing from later trials, 70 % of missing data were excluded from trial presentation numbers between 6–10, and 30 % of missing data were excluded from trial presentation numbers 1–5. Similarly, when more data were missing from younger subjects, 70 % of subjects assigned to have low trial counts (i.e., fewer than 10 trials in one or both emotion conditions) were younger subjects and 30 % of subjects with low trial counts were older subjects. For each missingness pattern, we examined four percentages of subjects with low trial counts: 0, 6, 11, and 32 % (e.g., missing trial-level data were induced so that 32 % of subjects had fewer than 10 trials per condition in at least one emotion condition). These percentages reflected common levels of low trial counts for infant/toddlers, preschoolers, and older children based on a review of developmental ERP studies (Heise et al., 2022). Subjects with fewer than 10 trials per condition were casewise deleted prior to the ANOVA model but were included for LME models. Analysis Models. For each dataset and missing data pattern, ‘Happy-minus-Neutral’ difference waves were estimated in R (Version 3.6.1; R Core Team, 2019) for the following seven models: 1) Interac­ tion, 2) Exact Match, 3a) Nearest Neighbor: No Prioritization, 3b) Nearest Neighbor: Presentation Number Prioritization, 3c) Nearest Neighbor: Stimulus Feature Prioritization, 4) Random Permutation, and 5) ANOVA. For the three Nearest Neighbor approaches, the MatchIt package (Version 4.5.0; Ho et al., 2011) identified trial pairs that were close matches using ‘greedy matching’ such that each trial pair was evaluated based on the Mahalanobis distance metric without trying to optimize across all possible trial pairs. All LME models were fit with restricted maximum likelihood using the lme4 package (Version 1.1–25; Bates et al., 2015). The ANOVA models were fit with the afex package (Version 0.28–1; Singmann et al., 2021). _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ Details for each model’s approach for estimating difference waves are described below. LME models are presented in mixed model format (i.e., a single equation combining the within- and between-subjects effects). _1. LME Interaction._ An LME was fit in which the outcome was raw mean amplitude, and predictors consisted of fixed main effects of emotion condition, maternal sensitivity, age, and presentation number; fixed interactions of emotion condition by sensitivity, emotion condition by age, and emotion condition by presentation number; and random intercepts of subject and actor, see Eq. 1. MeanAmplitudeij = γ00 + γ01MaternalSensitivityj + γ02Agej + γ10Emotionij + γ20PresentationNumberij + (γ11MaternalSensitivityj + γ12Agej + γ21PresentationNumberij)Emotionij + u0j + v0a + Ɛij (1) γ00 represents the grand-mean intercept across the sample γ01 represents the coefficient of the fixed effect of Maternal Sensitivity γ02 represents the coefficient of the fixed effect of Age γ10 represents the coefficient of the fixed effect of Emotion γ20 represents the coefficient of the fixed effect of Presentation Number γ11 represents the coefficient of the fixed interaction between Emotion and Maternal Sensitivity γ12 represents the coefficient of the fixed interaction between Emotion and Age γ21 represents the coefficient of the fixed interaction between Emotion and Presentation Number i represents trial-level estimates j represents subject-level estimates u represents Subject-level deviation from the grand mean (i.e., random intercept for Subject) v represents Actor-level deviation from the grand mean (i.e., random intercept for Actor) Ɛij represents the error of residuals in which error is normally distributed following _N_ (0, σ <sup>2</sup> ) _2. LME Exact Match._ Trials were paired within each subject if they matched on trial presentation number and stimulus features (e.g., actor expressing the emotion). An LME was fit in which the outcome was mean amplitude of the trial-level difference waves; fixed effect pre­ dictors were maternal sensitivity, age, and presentation number; and a random intercept of subject, see Eq. 2. TrialLevelDifferenceWaveMeanAmplitudeij = γ00 + γ01MaternalSensitivityj + γ02Agej + γ10PresentationNumberij + u0j + Ɛij (2) γ00 represents the grand-mean intercept across the sample γ01 represents the coefficient of the fixed effect of Maternal Sensitivity γ02 represents the coefficient of the fixed effect of Age γ10 represents the coefficient of the fixed effect of Presentation Number i represents trial-level estimates j represents subject-level estimates u represents Subject-level deviation from the grand mean (i.e., random intercept for Subject) Ɛij represents the error of residuals in which error is normally distributed following _N_ (0, σ <sup>2</sup> ) _3a. LME Nearest Neighbor: No Prioritization (NN:N)._ Trials were paired within each subject by using the Mahalanobis distance to find a close match based on all design features. The average trial presentation number was calculated for paired trials. Eq. 2 was fit to the mean amplitude of the trial-level difference waves created by this trial pairing approach. _3b. LME Nearest Neighbor: Presentation Number Prioritization_ _(NN:P)._ Trials were paired within each subject by prioritizing a feature match of presentation number (e.g., Happy-Trial 1 paired with NeutralTrial 1), and then using the Mahalanobis distance to find a close match by stimulus features. Eq. 2 was fit to the trial-level difference wave mean amplitudes. _3c. LME Nearest Neighbor: Stimulus Feature Prioritization (NN:F)._ Trials were paired within each subject by prioritizing a feature match of stimulus features (e.g., Happy-Actor 1 paired with Neutral-Actor 1), and then using the Mahalanobis distance to find a close match for trial presentation number. The average trial presentation number was calculated for paired trials. Then, Eq. 2 was fit to the trial-level differ­ ence wave mean amplitudes. _4. LME Random Permutation._ Trials were paired within each subject such that any Happy trial could be paired with any Neutral trial. The average trial presentation number was calculated for paired trials. Then, Eq. 2 was fit to the trial-level difference wave mean amplitudes. This process was repeated 10,000 times following guidelines by Chihara and Hesterberg (2022), resulting in 10,000 LME model estimates extracted from different random trial pairings for the same dataset. The final model estimates for each dataset were calculated as the average model estimates from the 10,000 iterations. _5. ANOVA._ Subjects with low trial counts (fewer than 10 trials in at least one condition) were casewise deleted. For remaining subjects, subject-level ERPs were averaged across trials for each condition, and then the Happy-minus-Neutral difference wave was calculated. An ANOVA was fit in which the outcome was mean amplitude of the meanaveraged difference waves and predictors were maternal sensitivity and age. Model Evaluation Criteria. We first screened LME models for nonconvergence or singular fit and excluded a small subset from subsequent analysis (approximately 1–9 % of models; see Appendix Tables C.1 and D.1). To evaluate the best analysis technique for analyzing difference waves, we compared models on four criteria: 1) number of usable trials and subjects, 2) statistical power to detect the maternal sensitivity effect, 3) error of model estimates from the maternal sensitivity population value, and 4) bias of model estimates from the maternal sensitivity population value. _The number of usable trials per subject_ (out of 100 trials per simulated dataset) was evaluated for LME approaches only. _The number of usable_ _subjects_ (out of 48 subjects per simulated dataset) was evaluated for all models. Better models retained more trials and subjects for analysis. _Power_ was calculated as the number of datasets in which the model detected a significant maternal sensitivity effect divided by the total number of simulated datasets. To evaluate statistical significance for LME models, _p_ -values of fixed effects were calculated using the Sat­ terthwaite method for degrees of freedom with the lmerTest package (Version 3.1–3; Kuznetsova et al., 2017) and evaluated using a threshold of _p_ ≤ .05. For the Random Permutation model only, significance of fixed effects was evaluated with non-parametric bias-corrected and accelerated 95 % confidence intervals calculated with the bca function from the coxed package (Version 0.3.3; Kropko and Harden, 2020; Harden and Kropko, 2019). A fixed effect was significant if 0 did not fall within the bootstrapped confidence interval. For the ANOVA model, _p_ -values were calculated using a _F_ -distribution and evaluated using a threshold of _p_ ≤ .05. _Error_ and _bias_ were assessed based on the model’s marginal means. The marginal means of the difference wave for each maternal sensitivity group were extracted using the emmeans package (Version 1.5.3; Lenth, 2021). Error was calculated as the root mean squared error (RMSE) of the model’s marginal means from the population value across simulated datasets. Better models had lower RMSE values (in units of µV). Bias was calculated as the percentage difference of the model’s marginal mean from the population value (relative bias, Enders et al., 2020). Average relative bias was calculated across simulated datasets, and ±10 % relative bias was acceptable based on prior literature (Enders et al., 2020, Finch et al., 1997, Kaplan, 1988). _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ _3.3._ _Results from simulated data_ We analyzed data in both the ‘different decay’ and ‘same decay’ conditions, as planned. We report results from the more realistic and likely more problematic ’different decay’ condition in the main text. We report results from the ’same decay’ condition in Appendix D, which yielded similar patterns of results to the different decay analyses except where noted below for relative bias. In line with our predictions, the Interaction model retained the greatest number of trials and subjects (see Fig. 5A–B and Appendix Tables C.2–3). The ordering of models from most to least us­ able trials and subjects was: 1) Interaction, 2) Random Permutation and Nearest Neighbor: No Prioritization, 3) Nearest Neighbor: Stimulus Feature Prioritization, 4) Nearest Neighbor: Presentation Number Pri­ oritization, 5) Exact Match, and 6) ANOVA. Although Exact Match retained the least number of trials and subjects compared to other LME models, it still retained more subjects than ANOVA. For example, Interaction retained all 48 subjects, Exact Match retained an average of 44 subjects [91.67 % of sample], and ANOVA retained only 32 subjects [66.67 % of sample] for _Missingness Pattern #1_ /32 % low trial-count (see Fig. 5B). In terms of power to detect the maternal sensitivity effect, the Interaction and Random Permutation models performed the best in partial support of our predictions. Starting at the population level (i.e., no missing trials or subjects), Interaction had the greatest power compared to Exact Match and ANOVA (Interact: .82; Exact M and ANOVA: .57). <sup>1</sup> After missing data were simulated, Interaction and Random Permutation had greater power compared to all other models across all simulated conditions (Interact: .55–.65; Rand P: .77–.89; other models: .22–.42; see Appendix Table C.4). The general ordering of models from greatest to least power was: 1) Interaction and Random Permutation (statistical significance was calculated differently for each approach so we did not determine which had greater power), 2) ANOVA and Nearest Neighbor: Stimulus Feature Prioritization, 3) Nearest Neighbor: No Prioritization and Nearest Neighbor: Presentation Number Prioritization, and 4) Exact Match. As the percentage of low trial-count subjects increased from 0 % to 32 %, Interaction and Random Permu­ tation had the smallest decrease in power while ANOVA had the greatest decrease in power. For example, the Interaction and Random Permuta­ tion models’ power decreased by − .08 or less, while ANOVA’s power decreased by − .16 for _Missingness Pattern #1_ . Next, the marginal means of each model were evaluated for error and bias. The marginal means for the High maternal sensitivity group are presented in Fig. 6 and Appendix Table C.5; the marginal means for the Low maternal sensitivity group are presented in Appendix Table C.9. The simulated population values differed between these two groups but did not impact trends in model error and bias. We summarize model results across both High and Low maternal sensitivity groups below. In terms of error (RMSE) from the true population value, the Inter­ action model performed the best, in partial support of our predictions. Starting at the population level, Interaction, Exact Match, and ANOVA had the same RMSE (e.g., 1.22 µV for High maternal sensitivity group). After missing data were simulated, Interaction had the lowest RMSE across all simulated conditions (see Appendix Tables C.6 and C.10). For example, Interaction had an RMSE of 1.58 µV compared to the other models whose values ranged from 1.72–3.27 µV for the High maternal sensitivity group/ _Missingness Pattern #1_ /32 % low trial-count. This trend is illustrated in Fig. 6 where the Interaction model’s marginal means had a smaller range of values that were clustered around the population value (indicated by the dashed line). The ordering of models from least to greatest RMSE was: 1) Interaction, 2) Random 1 At the population level, the LME Nearest Neighbor and Random Permuta­ tion models were not fit because all trials were available and data could be fit with the Exact Match pairing approach. Permutation, 3) ANOVA, 4) Exact Match and Nearest Neighbor: Stim­ ulus Feature Prioritization, 5) Nearest Neighbor: Presentation Number Prioritization, and 6) Nearest Neighbor: No Prioritization. As low trialcount subjects increased from 0 % to 32 %, Interaction had the small­ est increase in RMSE while ANOVA and Nearest Neighbor: No Prioriti­ zation had the greatest increase in RMSE. For example, Interaction’s RMSE increased by 0.17 µV, while ANOVA’s RMSE increased by 0.32 µV and Nearest Neighbor: No Prioritization increased by 0.41 µV for the High maternal sensitivity group/ _Missingness Pattern #1_ . Finally, in terms of relative bias from the true population value, the Interaction, Exact Match, and Random Permutation models performed the best, in line with our predictions. Starting at the population level, Interaction, Exact Match, and ANOVA had average relative bias values within the ±10 % threshold (corresponding to the gray shaded area in Fig. 6), which suggested that all three models were, on average, unbi­ ased when there was no missing data. After missing data were simulated, Interaction, Exact Match, and Random Permutation consistently had unbiased marginal means. Their average relative bias ranged from - 8.39–6.45 % across all simulated conditions (see Appendix Tables C.7, C.11, D.7, and D.11). In contrast, ANOVA had unbiased marginal means only under two data simulation conditions: 1) different decay rate and data missing completely at random (equally across trial presentation numbers and age groups, _Missingness Pattern #3_, see Fig. 6C), or 2) same decay rate and all three missingness patterns (see Appendix Figure D.1). Under these conditions, ANOVA’s average relative bias ranged from - 8.78–6.19 %. However, for all other conditions, ANOVA’s average relative bias ranged from − 22.92 % to − 8.15 %. Fig. 6A illustrates this trend where ANOVA’s marginal means were shifted to be more negative than the true population value even when no subjects were casewise deleted (0 % low trial-count subjects). This negative bias was because the model could not account for later trials, which were missing at a higher percentage and had a more positive amplitude due to decay. Compared to the three best LME models (Interaction, Exact Match, Random Permutation), ANOVA was significantly more biased as indi­ cated by paired _t_ -tests with a Bonferroni correction of α = .001 (see Appendix Tables C.8 and C.12). The Nearest Neighbor models had average relative bias values that met or exceeded ±10 % for all simu­ lated conditions and were greater in magnitude than the other LME and ANOVA models. The magnitude of bias was greatest for Nearest Neighbor: No Prioritization (ranging from - 139.10–132.54 %), fol­ lowed by Nearest Neighbor: Presentation Number Prioritization (− 105.54–96.57 %), and then Nearest Neighbor: Stimulus Feature Pri­ oritization (− 72.72–65.68 %). This is illustrated in Fig. 6 where Nearest Neighbor: No Prioritization’s marginal means were shifted the furthest away from the true population value and Nearest Neighbor: Stimulus Feature Prioritization’s marginal means were shifted the least. _3.4._ _Discussion of simulated ERP difference wave analyses_ Of the six LME approaches that we examined, the Interaction, Exact Match, and Random Permutation approaches accurately estimated the difference wave mean amplitude under realistic decay conditions, and variable-predicted missingness (e.g., missingness related to age). In contrast, the three LME Nearest Neighbor approaches and ANOVA had biased estimates for at least one of the decay and missing data conditions examined. We discuss the implications of each model below. The Interaction model was the best approach with more usable trials and subjects, greater power, lower error, and unbiased estimates. For example, the Interaction model consistently had the greatest power when no trials were missing (.82, given our sample size _N_ = 48 and trial number _N_ = 100) and had minimal changes in power when missing trials were induced (ranging from .55 of 32 % low trial-count subjects to .65 of 0 % low trial-count subjects). Although these estimates of power may seem low compared to anticipated power, they may have been conservative estimates based on a relatively limited sample size, small effect of 4 μV based on prior literature, and noise drawn from a real _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ Fig. 5. Usable Trials and Subjects Across Difference Wave Approaches for Simulated Data. Values were averaged over 1000 simulated datasets in which each dataset was systematically varied such that: no trials were removed (Population), all subjects were assigned to have 10 or more trials (0 % Low Trial-Count), and the percentage of low trial-count subjects represented the average percentage of casewise deletion in typical age groups (e.g., older children, 6 %; preschoolers, 11 %; infants/toddlers, 32 %). Abbreviated approaches were NN:N–Nearest Neighbor: No Prioritization, NN:P–Nearest Neighbor: Presentation Number Prioritization, and NN:F–Nearest Neighbor: Stimulus Feature Prioritization. The percentage of usable trials per subject (out of 100 trials per subject) was presented for LME approaches only (A); the percentage of usable subjects (out of 48 subjects) was presented for all models (B). Error bars represent ±1 standard deviation. Values were presented for the different decay/Missingness Pattern #1 (more missing data in later trials and in younger subjects) for brevity; similar trends were found for other simulated conditions (see Appendix Tables C.2–3 and D.2–3). Parallel figures reporting number of trials and subjects (instead of percentages) are reported in Appendix Figure F.1. infant sample. Follow-up simulations could examine sample and effect sizes needed to reach .80 power and the impact of different realistic noise profiles. Aside from power, Interaction had minimal changes in error across all missingness patterns and percentages of low trial-count subjects, including when more trials were missing toward the end of the experiment and from younger subjects. This model fit mean amplitudes from the raw ERP waveforms, which have a higher signal-to-noise ratio compared to difference waves, and preserved more trials than LME ap­ proaches that created trial-level difference waves. These factors contributed to better performance compared to the other LME ap­ proaches and the ANOVA model. However, as discussed in Section 2.1, the Interaction model estimates did not have the same interpretation as difference waves. Namely, the model estimated the Happy-minusNeutral ‘difference wave mean amplitude’ as the difference between model estimates of the Happy and Neutral condition at different levels of the behavioral predictor rather than measuring the mean amplitude from a difference wave directly. In terms of LME approaches that paired trials and created trial-level difference waves, two models had unbiased estimates: Exact Match and Random Permutation. For the Exact Match model, trials were paired by feature matching on all design features (e.g., trial presentation number, actor), which allowed the model to accurately isolate the effect of in­ terest. While this approach retained fewer trials and subjects compared to the other LME approaches, it was consistently better than the ANOVA model and retained up to 12 more subjects [25 % of sample]. This model also had a smaller increase in error compared to the ANOVA model as the percentage of low trial-count subjects increased. While Exact Match had lower power (ranging from .22 at 32 % low trial-count to .57 when no trials were missing in our simulations at our sample size _N_ = 48 and trial number _N_ = 100) relative to the other models, it may be the most generalizable method for pairing single trials and examining within- and between-subjects effects from trial-level difference waves. While the Random Permutation model was able to extract unbiased estimates with high power, it did not have additional benefits compared _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ Fig. 6. Marginal Means of Happy-minus-Neutral Difference Wave Mean Amplitude Extracted for High Maternal Sensitivity Group for Simulations With Different Decay. Values were extracted for 1000 simulated datasets from the different decay condition in which each dataset was systematically varied such that: no trials were removed (Population), all subjects were assigned to have 10 or more trials (0 % Low Trial-Count), and the percentage of low trial-count subjects represented the average percentage of casewise deletion in infants/toddlers (32 % Low Trial-Count). Additional percentages of low trial-count subjects corresponding to older children and preschoolers are presented in Appendix Figure C.1. Abbreviated approaches were NN:N–Nearest Neighbor: No Prioritization, NN:P–Nearest Neighbor: Presentation Number Prioritization, and NN:F–Nearest Neighbor: Stimulus Feature Prioritization. The population parameter of the High maternal sensitivity group (averaged over age and presentation number) is indicated by the dashed line at 2.5 μV. The gray shaded area indicates an acceptable relative bias threshold of ±10 %. Marginal means were extracted from each of the three patterns of missingness. For Missingness Pattern #3, missing trials were uniformly drawn from early and late trials and older and younger children. For the Random Permutation approach, estimates from all 10,000 iterations of each sample were plotted to illustrate estimate variability. _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ to the Interaction and Exact Match approaches. As discussed in Section 2.1, the Random Permutation returned accurate estimates of betweensubjects effects because bias from specific random trial pairings aver­ aged out over 10,000 random permutation iterations. This approach also returned accurate estimates of trial presentation number because this within-subject variable could be estimated and averaged over a large number of iterations. However, this approach is not suitable for research questions examining categorical within-subjects effects because of the model’s random trial pairing process. Compared to the other LME approaches, the three Nearest Neighbor models had biased estimates for all simulated conditions. These results suggest that prioritizing a feature match of some, but not all features (as in the Exact Match approach), biases models’ estimates of trial-level difference waves. The Nearest Neighbor approaches also illustrated that features with greater modulation are important to match exactly. For example, stimulus feature modulation (ranging from 0–20 μV) resulted in greater bias when excluded from feature matching compared to trial presentation (ranging from 0–13.5 μV). Given that all Nearest Neighbor approaches were biased at all levels of missing data, we do not recommend this method of estimating trial-level difference waves. Finally, the traditional ANOVA model had unbiased estimates only under specific conditions of missing data. Given that the ANOVA model was unable to account for the trial-level effect of trial presentation number, it had unbiased estimates only when trial presentation number did not predict missingness or did not affect the model’s estimates of the difference wave mean amplitude. In comparison, the ANOVA’s esti­ mates were negatively biased when there was a habituation (decay) effect modulating the difference wave mean amplitude and more data were missing from later trials (which had more positive amplitudes). Differing decay rates between conditions may be present for some ERP components (e.g., Volpert-Esmond et al. (2018) found different decay rates for N170 elicited by Black and White male faces), which poses a challenge for ANOVA models. Furthermore, the ANOVA’s bias was present even when datasets were simulated with low levels of missing data such that no subjects were casewise deleted. In addition to biased estimates, the ANOVA model’s estimates had the greatest increase in error and greatest decrease in power as the percentage of casewise deleted subjects increased. Our simulations compared LME approaches for trial pairing to an ANOVA fit to mean-averaged difference waves. Alternatively, an ANOVA could have been fit to an interaction of the mean-averaged data within each condition. However, this approach would have the same shortcomings as the ANOVA fit to mean-averaged difference waves because both approaches would average over ERP amplitude with different decay rates. In addition, ANOVA’s lower power compared to LME Interaction was due to casewise deletion of partici­ pants with few usable trials, and therefore ANOVA models fit to differ­ ence waves or an interaction will have the same low power. Overall, ANOVA’s ability to accurately estimate difference wave mean ampli­ tudes is more limited than the three best LME approaches (Interaction, Exact Match, and Random Permutation). 4. Using real ERP data from preschool children to evaluate and compare approaches for difference wave analysis In this section, we examine the LME and ANOVA difference wave approaches with real ERP data from a sample of neurotypical preschool children. We extracted the Nc component elicited by emotional face stimuli from two conditions of varying intensity: Full-Intensity Angry and Reduced-Intensity Angry. The Full-minus-Reduced-Intensity Angry difference wave should reveal characteristics that are specific to a stronger intensity of an angry expression. We examined the modulation of the difference wave mean amplitude by a continuous predictor: the perceptual sensitivity subscale from the Early Childhood Behavioral Questionnaire–Short Form (ECBQ; Putnam et al., 2006, 2010). The ECBQ perceptual sensitivity subscale is a measure of children’s sensi­ tivity to low intensity environmental stimuli. Prior studies have found that perceptual sensitivity is related to neural processing of emotional faces in infants (Jessen and Grossmann, 2015), but not preschool chil­ dren (Porter et al., 2021). However, the relation between perceptual sensitivity and differing intensities of an emotional face has been less explored and may reflect individual differences in processing of subtle emotional cues. We predicted that the degree of children’s perceptual sensitivity is positively associated with greater differentiation between Full-Intensity and Reduced-Intensity Angry as measured through dif­ ference wave mean amplitudes. We compared the six LME approaches examined in the prior section (Interaction, Exact Match, three types of Nearest Neighbor, Random Permutation) to a linear regression approach (comparable to our ANOVA in the prior section). Two regression models were fit with casewise-deleted data using two common trial thresholds in develop­ mental ERP studies (10 trials per condition and 15 trials per condition). Based on the simulation results, we predicted that the Interaction model should retain the greatest number of trials and participants in the real preschooler data. Given that the Interaction and Random Permutation models had the greatest power in the simulation results, we predicted that these models would be most likely to detect an effect of the ECBQ perceptual sensitivity subscale in our sample if one existed. If raw waveforms decayed at the same rate, we expected that the Interaction, Exact Match, Random Permutation and the two regression models would estimate similar effect sizes. If the raw waveforms decayed at different rates, we expected that the two regression models would esti­ mate a biased effect size compared to the Interaction, Exact Match, and Random Permutation models. _4.1._ _Methods for real ERP data from children_ _4.1.1._ _Participants_ A sample of three- to five-year-old typically-developing children participated in a one-time EEG visit at a laboratory ( _N_ = 71). Children were recruited from a database of families interested in participating in research, and families were compensated for their time with a toy, a $5 giftcard, and a photo of the child wearing the EEG cap. The Institutional Review Board approved all methods and procedures used in this study, and all parents gave informed consent prior to participation. Seven children were excluded from the final sample: 6 were excluded due to technical issues and 1 due to refusal to wear the EEG cap. The final sample consisted of 64 children (25 males, 39 females, _M_ age = 4.62 years, _SD_ = 0.78). A full report on participant demographics including race, ethnicity, parental education, and family income, as well as a description of when data collection occurred can be found in Appendix E. _4.1.2._ _Parent-report behavioral measure_ During the visit, parents filled out the Early Childhood Behavioral Questionnaire–Short Form (ECBQ; Putnam et al., 2006, 2010). Parents answered 107 questions describing a short scenario or behavior that their child may display and responded on a 7-point Likert scale ranging from Never to Always. We analyzed the 5-item Perceptual Sensitivity subscale (e.g., ‘During everyday activities, how often did your child notice changes in your appearance (such as wet hair, a hat, or jewelry)?’). This subscale measures children’s attention and sensitivity to changes in the environment. Scores used in analysis were the average of Likert ratings (Never = 1, Always = 7) out of completed items. There were minimal missing data ( _M_ = 4.83, _SD_ = 0.46 items complete out of 5). _4.1.3._ _ERP faces task_ Children passively viewed human faces expressing different emo­ tions of different intensities in a task that has been used in prior ERP research with infants and children (Bowman et al., 2022; Heise et al., 2022; Xia et al., 2024; Xie et al., 2019). Face stimuli consisted of static female faces expressing six emotions: Happy, Fearful, Angry, Neutral, as _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ well as two reduced intensity images—Reduced-Intensity Fearful, and Reduced-Intensity Angry—achieved by morphing the neutral and emotional exemplars until final images included 40 % of the emotional expression and 60 % of the neutral expression. Face stimuli were taken from the NimStim set of emotional faces (Tottenham et al., 2009). Children viewed one of four face sets (African American actors, East Asian actors, and two sets of White actors, see Fig. 2), which each consisted of 4–5 unique faces and best matched the child’s race as re­ ported by their caregiver. Children viewed each unique face expressing each of the 6 emotions 10 times (with the exception of 20 times for one face in the African American condition), for a total trial count of 300 within the experiment. Faces were presented in a randomized order via E-Prime (Version 3.0; Psychology Software Tools, 2016) for 1000 ms, and were preceded by a fixation cross for 800–1400 ms. ERPs were time-locked to the onset of the face stimulus. The races of faces pre­ sented were constrained by those available in the NimStim emotional face data set. These stimuli are commonly used in ERP tasks in infants through adults, and this precise task with stimuli and race-matching procedure as described here has been established in published data with both infants and preschoolers (e.g., Bowman et al., 2022; Xia et al., 2024; Xie et al., 2019). _4.1.4._ _Procedure_ At the beginning of the session, children were capped with a 64-elec­ trode montage High Precision fabric actiCAP snap cap (actiCAP snap Apparatus, 2020, Brain Products GmbH, Gilching, Germany) in which actiCAP slim electrodes were positioned in line with the 10–20 Inter­ national system (actiCAP slim Apparatus 2020, Brain Products GmbH, Gilching, Germany). Data were recorded continuously during stimulus presentation with the BrainVision Recorder (Version 1.21.0303; Brain Products GmbH, Gilching, Germany) and actiCHamp (2020) amplifier (actiCHamp, Brain Products GmbH, Gilching, Germany). The majority of participants ( _n_ = 50) had data recorded bandpass filtered from 0 to 140 Hz and digitized at 500 Hz; a small subset of participants ( _n_ = 14) had data recorded bandpass filtered from 0 to 280 Hz and digitized at 1000 Hz. Data for all participants were referenced during recording to Cz. Following ERP data collection, children completed a behavioral task battery with an experimenter (not reported in this study) and parents completed a series of questionnaires. _4.1.5._ _ERP data processing_ Data were analyzed offline using the following MATLAB (Version 2019a; MATLAB, 2019) toolboxes: EEGLAB (Version 2019_0; Delorme and Makeig, 2004) and ERPLAB (Version 8.01; Lopez-Calderon and Luck, 2014). The pipeline described below is in line with the one pre­ viously reported in Heise and colleagues (2022). At the beginning of pre-processing, participants with a 1000 Hz sampling rate were downsampled to 500 Hz. Then, trial-level event markers were added to indicate the emotion condition, actor, and pre­ sentation number of each face presentation. Next, the continuous file was bandpass filtered with a Butterworth filter (half-amplitude cut-offs at 0.1 and 30 Hz, 12 dB/octave roll-off). After filtering, continuous artifact rejection by eye was performed to remove segments of noisy data. Noisy electrodes were identified through a combination of kurtosis values and visual inspection, and interpolated using spherical spline interpolation. An average of 0.28 electrodes were interpolated ( _SD_ = 0.70) and participants could have at most 4 interpolated electrodes [6.25 % of 64 electrodes] (see additional processing details in Supple­ mental Appendix IV of Xia et al., 2024). Independent components analysis (ICA) was performed on the cleaned dataset to isolate compo­ nents corresponding to blink artifacts. Blink components were manually identified based on characteristics described by Debener and colleagues (2010) and removed in 95.31 % of participants. Data were re-referenced to the average of all 64 electrodes. Following re-referencing, data were assigned to trial- and conditionlevel bins using the ERPLAB BINLISTER function. Epochs were extracted in 1200 ms time windows, and were time-locked to face stimulus pre­ sentation. Each epoch consisted of a 200 ms pre-stimulus baseline and a 1000 ms window post-stimulus. Baseline correction was performed using the 200 ms baseline. Epochs exceeding a 100 µV sample-to-sample voltage threshold or a - 120–120 µV simple voltage threshold were removed in line with prior preschooler ERP literature (Batty and Taylor, 2006; Kungl et al., 2017, Todd et al., 2008). In terms of our two con­ ditions of interest, participants had an average of 25.58 artifact-free trials ( _SD_ = 11.89) for the Full-Intensity Angry condition and 24.53 artifact-free trials ( _SD_ = 11.33) for the Reduced-Intensity Angry condi­ tion. There were no significant differences in the number of artifact-free trials by emotion condition, _F_ (1,63) = 3.17, _p_ = .080). _4.1.6._ _Nc extraction_ The Nc component was identified in the 300–500 ms window based on the grand-averaged waveform collapsed across participants and conditions. The mean amplitude was extracted from electrodes C3, Cz, and C4 based on prior literature (Dennis et al., 2009, Stahl et al., 2010, Xie et al., 2019), see further details about the inclusion of electrode information in analyses below. Difference wave mean amplitudes were calculated in the data analysis pipeline rather than during Nc extraction. _4.2._ _Data analysis plan_ Analysis Models. We paired and fit the trial-level Nc data for the following six LME models described in Section 2: Interaction, Exact Match, Nearest Neighbor: No Prioritization, Nearest Neighbor: Presen­ tation Number Prioritization, Nearest Neighbor: Stimulus Feature Pri­ oritization, and Random Permutation. LME models were fit with restricted maximum likelihood in R using packages described in Section 3.2. Mirroring our simulation analyses, trial presentation number in all models corresponded to the order in which a randomized trial was presented within each condition with a specific stimulus feature (i.e., each unique stimulus for an emotion condition and actor). Compared to our simulation analyses, this real dataset included multiple electrodes (C3, Cz, C4). Thus, electrode represented an important additional vari­ able to represent in the models because there may be differences in mean amplitude due to hemisphere lateralization (e.g., greater Nc negative amplitude in the right hemisphere, Quadrelli et al., 2019; Peltola et al., 2009). There were complete data from all electrodes of interest due to interpolation in pre-processing, enabling trial-pairings to be matched within electrode. Thus, for LME models that used trial-pairing ap­ proaches, we feature matched based on electrode and thus subtracted out electrode variability and removed the need to include it as a separate variable in these models. For the LME Interaction model, electrode was included as a fixed effect. For linear regression models, data were averaged across the electrodes of interest as is common practice (Grossmann et al., 2011; van den Boomen et al. 2019) and fit using the lm function in the base R package. All LME and regression models met assumptions of linearity, normal distribution of residuals, and homo­ [scedasticity. The analysis script is available at https://github.com/basc](https://github.com/basclab/LME_MixedEffectsERPDifferenceWave) [lab/LME_MixedEffectsERPDifferenceWave.](https://github.com/basclab/LME_MixedEffectsERPDifferenceWave) _1. LME Interaction._ An LME was fit in which the outcome was raw mean amplitude, and predictors consisted of fixed main effects of emotion condition, ECBQ perceptual sensitivity subscale, presentation number, and electrode; fixed interactions of emotion condition by ECBQ perceptual sensitivity subscale, and emotion condition by presentation number; and random intercepts of subject and actor. See Appendix Equation E.1 for the Interaction model equation. Example raw trial-level waveforms are displayed in Fig. 7A. Electrode was included as a fixed effect because there were insufficient electrodes (only three) to fit a random effect (Volpert-Esmond et al., 2021 recommend at least 5 levels to fit a random effect). _2. LME Exact Match._ Trials were paired within each participant and electrode if they matched on trial presentation number and actor. Example trial-level waveforms that have been paired using Exact Match _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ Fig. 7. Trial-Level Nc Full-minus-Reduced-Intensity Angry Difference Wave and Constituent Waveforms for an Exemplar Participant From Real Preschooler Data. Trial-level waveforms from one preschool participant are presented for the raw emotion conditions (A, top) and the difference wave calculated with Exact Match pairing (B, bottom) for electrode C4 from the Nc cluster of interest (C3, Cz, C4). The Nc component was extracted from the 300–500 ms time window. are presented in Fig. 7B. An LME was fit in which the outcome was mean amplitude of the trial-level difference waves; fixed effect predictors were ECBQ perceptual sensitivity subscale and presentation number; and a random intercept of subject, see Appendix Equation E.2. _3a. LME Nearest Neighbor: No Prioritization (NN:N)._ Trials were paired within each participant and electrode by using the Mahalanobis distance to find a close match based on presentation number and actor. The average trial presentation number was calculated for paired trials. Appendix Equation E.2 was fit to the trial-level difference wave mean amplitudes. _3b. LME Nearest Neighbor: Presentation Number Prioritization_ _(NN:P)._ Trials were paired within each participant and electrode by prioritizing a feature match of presentation number, and then using the Mahalanobis distance to find a close match for actor. Appendix Equation E.2 was fit to the trial-level difference wave mean amplitudes. _3c. LME Nearest Neighbor: Stimulus Feature Prioritization (NN:F)._ Trials were paired within each participant and electrode by prioritizing a feature match of actor, and then using the Mahalanobis distance to find Fig. 8. Grand-Mean Averaged Nc Full-minus-Reduced-Intensity Angry Difference Wave and Constituent Waveforms From Real Preschooler Data. Waveforms included preschoolers with at least 10 trials per condition ( _n_ = 57, A, top) and at least 15 trials per condition ( _n_ = 47, B, bottom). Waveforms were collapsed across electrodes of interest (C3, Cz, C4). The Nc component was extracted from the 300–500 ms time window. _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ a close match for presentation number. The average trial presentation number was calculated for paired trials. Appendix Equation E.2 was fit to the trial-level difference wave mean amplitudes. _4. LME Random Permutation._ Trials were paired within each participant and electrode such that any Full-Intensity Angry trial could be paired with any Reduced-Intensity Angry trial. The average trial presentation number was calculated for paired trials. Then Appendix Equation E.2 was fit to the trial-level difference wave mean amplitudes. This process was repeated 10,000 times and final model estimates were calculated by averaging across the 10,000 iterations. _5a. 10-Trial Regression._ Participants with fewer than 10 trials in at least one condition were casewise deleted. For remaining participants, participant-level ERPs were averaged across trials and electrodes for each condition, and then the Full-minus-Reduced-Intensity Angry dif­ ference wave was calculated (see Fig. 8A for grand-mean averaged waveform). A linear regression was fit in which the outcome was mean amplitude of the mean-averaged difference waves and the predictor was ECBQ perceptual sensitivity subscale. _5b. 15-Trial Regression._ Participants with fewer than 15 trials in at least one condition were casewise deleted. As in the 10-Trial Regression model, participant-level ERPs were averaged, and the Full-minusReduced-Intensity Angry difference wave was calculated (see Fig. 8B for grand-mean averaged waveform). A linear regression was fit in which the outcome was mean amplitude of the mean-averaged differ­ ence waves and the predictor was ECBQ perceptual sensitivity subscale. Model Evaluation Criteria. For all models, we extracted the num­ ber of usable trials and participants. In addition, we extracted estimates of the ECBQ perceptual sensitivity effect on the difference wave mean amplitude using the emtrends function from the emmeans package (Lenth, 2021). To calculate the significance of the ECBQ perceptual sensitivity estimate, we reported _p_ -values calculated with Satterthwaite approximation for all LME approaches aside from Random Permutation. For the Random Permutation model, we calculated bias-corrected and accelerated 95 % confidence intervals and examined whether it con­ tained 0. For the regression models, we reported _p_ -values calculated using a _t_ -distribution. We additionally examined the LME models’ pre­ sentation number effect to determine if the Nc component decay rate differed between the Full-Intensity and Reduced-Intensity Angry conditions. _4.3._ _Results from real child ERP data_ Mirroring the simulation results, the Interaction model retained the greatest number of trials compared to the other LME approaches (see Fig. 9 and Appendix Table E.1). For example, the Interaction model analyzed an average of 150.33 trials per participant [50.11 % of total trials], which corresponded to all artifact-free trials following artifact rejection. In contrast, Exact Match analyzed an average of 99.58 trials per participant [33.19 % of total trials] due to additional data loss following trial pairing. The ordering of models from most to least usable trials was: 1) Interaction, 2) Random Permutation and Nearest Neighbor: No Prioritization, 3) Nearest Neighbor: Stimulus Feature Prioritization, 4) Nearest Neighbor: Presentation Number Prioritization, and 5) Exact Match. In terms of usable participants, four out of six LME approaches (Interaction, Random Permutation, Nearest Neighbor: No Prioritization, Fig. 9. Usable Trials and Participants Across Difference Wave Approaches for Real Preschooler Data. Abbreviated approaches were NN:N–Nearest Neighbor: No Prioritization, NN:P–Nearest Neighbor: Presentation Number Prioritization, and NN:F–Nearest Neighbor: Stimulus Feature Prioritization. The percentage of usable trials per participant (out of 300 trials per participant across three electrodes) was presented for LME approaches only (A); the percentage of usable participants (out of 64 participants) was presented for all models (B). Parallel figures reporting number of trials and participants (instead of percentages) are reported in Appendix Figure F.2. _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ and Nearest Neighbor: Stimulus Feature Prioritization) retained the full sample of 64 participants (see Fig. 9). The other two LME approaches (Nearest Neighbor: Presentation Number Prioritization and Exact Match) retained 62–63 participants [96.88–98.44 % of sample] (see Appendix Table E.1). In contrast, the regression models retained much fewer participants: the 10-Trial Regression analyzed a total of 57 par­ ticipants [89.06 % of sample] and the 15-Trial Regression analyzed a total of 47 participants [73.44 % of sample]. The ordering of models from most to least number of usable participants was: 1) Interaction, Random Permutation, Nearest Neighbor: No Prioritization, and Nearest Neighbor: Stimulus Feature Prioritization, 2) Nearest Neighbor: Pre­ sentation Number Prioritization, 3) Exact Match, 4) 10-Trial Regression, and 5) 15-Trial Regression. Three models detected a significant positive effect of ECBQ percep­ tual sensitivity on the Nc Full-minus-Reduced-Intensity Angry difference wave mean amplitude: LME Interaction, Exact Match, and Random Permutation (see Fig. 10). The magnitude of the effect varied from approximately 0.60 for the Interaction and Random Permutation models to 0.95 for the Exact Match model (see full model output in Appendix Tables E.2–4). The three Nearest Neighbor models and the two regression models did not detect a significant effect ( _p_ s _>_ .05). In followup analyses, we examined if there was a same or different decay rate for the two emotion conditions. We focused on the LME Interaction and Exact Match models given that they had unbiased model estimates for the simulated data in Section 3. There was no significant different decay rate for either LME model as indicated by the null effect of presentation number by emotion ( _p_ s _>_ .05). There was also no significant equiva­ lence with a bound of [-0.1, 0.1] as calculated using the contest1D function from the lmerTest package. These results suggest that there may have been a difference in the decay rate across the two conditions that was not statistically detectable. _4.4._ _Discussion of real child ERP difference wave analyses_ In our analysis of real preschooler ERP data, three LME approach­ es—Interaction, Exact Match, and Random Permutation—detected a significant effect of perceptual sensitivity on the Nc Full-minusReduced-Intensity Angry difference wave mean amplitude. These results suggest that children who were more attuned to low intensity environmental stimuli, as assessed with a parent-report measure, showed patterns of neural activity that better differentiated between different intensities of anger expressions. This finding complements a prior study that also found a relation between perceptual sensitivity and Nc difference waves to other emotional expressions (i.e., happy and fearful, Jessen and Grossmann, 2015). While the population effect was not known in the preschooler dataset, Interaction, Exact Match, and Random Permutation models were expected to have minimal bias based on our data simulations and all detected an effect in our real Nc analysis. Although the three models returned slightly different parameter esti­ mates of the perceptual sensitivity effect, the differences in their point estimates were minimal (≤0.35 µV) and their 95 % confidence intervals overlapped. However, similar to our discussion in Section 3, the inter­ pretation of the Interaction model differs from the interpretation of the Exact Match and Random Permutation models. For Exact Match and Random Permutation models, results suggest that ERP amplitude unique to processing Full-Intensity Angry emotion faces after accounting for amplitude elicited by Reduced-Intensity Angry emotion faces is associ­ ated with children’s perceptual sensitivity. In contrast, the Interaction model would be interpreted as showing that the relation between perceptual sensitivity and Nc mean amplitude is different for Full-Intensity and Reduced-Intensity Angry, and that a combination of the child’s neural response to Full-Intensity and Reduced-Intensity Angry emotions and perceptual sensitivity predict the ERP. Depending on the research question of interest, one type of interpretation may be more suitable and guide the LME approach selection. Simulation results suggested that the Interaction and Random Per­ mutation models achieve the highest power compared to the other ap­ proaches. In our analysis of the preschooler Nc difference wave, we detected a significant effect in these two models as well as Exact Match. We did not conduct a post-hoc power analysis (Zhang et al., 2019) but believe that LME analyses of the preschooler Nc may have been better-powered due to the greater number of preschool participants (62–64) compared to our simulations (48 simulated subjects). The re­ ported effect sizes (i.e., unstandardized beta coefficients), sample size, and trial counts are reported for each model in Appendix Tables E.1–4 and can be used in power analyses in future research. For example, our Fig. 10. Estimated ECBQ Perceptual Sensitivity Effect on Nc Full-minus-Reduced-Intensity Angry Difference Wave Mean Amplitude for Real Preschooler Data . Estimated effect was extracted for six LME models and two regression models with varying casewise deletion threshold levels (10 trials per condition and 15 trials per condition). Error bars indicate 95 % confidence intervals; star represents _p_ ≤ .05; the dashed line indicates an effect of 0 μV. Abbreviated approaches were NN: N–Nearest Neighbor: No Prioritization, NN:P–Nearest Neighbor: Presentation Number Prioritization, and NN:F–Nearest Neighbor: Stimulus Feature Prioritization. For the Random Permutation approach, a violin plot of the estimates from all 10,000 iterations was included to illustrate model estimate variability. Model estimates are presented in Appendix Table E.1. _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ Interaction model detected an effect size of approximately 0.60 μV in our sample of 64 participants, each of whom contributed on average about 25 trials per condition. These values may be used in power sim­ ulations (Kumle et al., 2021) to inform study planning and further ex­ amination of the relation between perceptual sensitivity and the Nc. We also examined whether the rate of habituation or decay to repeated stimulus presentations was the same or different between FullIntensity and Reduced-Intensity Angry. Our results suggested that there may have been a different decay rate that we could not statistically detect. Although we could not conclude if there was a different decay rate for the Nc difference wave, the Interaction model found a significant decay rate for the raw Nc amplitude (β = 0.46, _SE_ = 0.07, _p <_ .001), in line with prior Nc studies (Borgstrom et al., 2016; Junge et al., 2012¨ ). There are no prior studies, to our knowledge, that have examined decay rates of Nc difference wave mean amplitudes. Future work is needed to examine whether the Nc mean amplitude may have different decay rates for different types of stimuli. This work would help determine whether the results from the same or different decay conditions in Section 3 are more applicable to Nc difference wave analysis. Compared to the three best LME models (Interaction, Exact Match, and Random Permutation), neither Nearest Neighbor nor linear regression detected a statistically significant effect of perceptual sensi­ tivity on the Nc difference wave. The lack of a significant effect may have been due to lower power in Nearest Neighbor models (following our simulation results, Section 3) and systematic noise induced by not feature matching on all study design features. Given that the true pop­ ulation value was unknown in our real data, it was not possible to determine if Nearest Neighbor: Stimulus Feature Prioritization may have been less biased in the current dataset, as we found in simulations. Additional studies are needed to examine the relation between percep­ tual sensitivity and Nc difference wave mean amplitudes and determine what magnitudes may represent significant bias. For the regression models, we expected that model estimates would be unbiased when the decay rate was the same across conditions. Although we could not confirm if the real preschooler data exhibited a same or different decay rate, the regression model estimates did not appear biased because parameter estimates were similar in magnitude to the LME models. However, the regression models did not detect a significant effect of perceptual sensitivity, likely due to decreased power from casewise deletion of participants (89.06 % of participants retained for the 10Trial Regression, and 73.44 % of participants retained for the 15-Trial Regression). Thus, these results from our real preschooler data high­ light the limitations of traditional ANOVA/regression approaches compared to LME approaches for difference wave mean amplitude analysis. 5. General discussion of applying LMEs to ERP difference waves As evidenced in both simulations and analysis of real preschooler ERPs, the LME framework had multiple advantages over the standard ANOVA/regression approach for analyzing ERP difference wave mean amplitudes. In simulations, ANOVA resulted in biased difference wave estimates when ERP data had different decay rates and reduced statis­ tical power when more subjects had few trials. Further, ANOVA did not detect any significant effect in our real preschooler data. In contrast, in simulations, the LME Interaction and Exact Match approaches had un­ biased estimates and minimal changes in statistical power when more subjects had few trials. And in real ERP data, these same LME Interaction and Exact Match models detected a significant effect. Based on these results across simulated and real data sets, we endorse the use of both the LME Interaction and Exact Match approaches to ERP difference wave mean amplitude analyses, and encourage researchers to adopt them over standard ANOVA and linear regression approaches. As additional ex­ amples, the Interaction approach has been used for analysis of trial-level N170 and ERN waves (Volpert-Esmond et al., 2018) and our Exact Match approach has been used for trial-level Nc, N170, and MMN difference waves (Mon et al., 2024; Xia et al., 2024). When choosing between an LME Interaction and an Exact Match approach, researchers should consider their research question and theoretical motivations. ERP components that can be identified from raw waveforms (e.g., Nc) can be analyzed with either an Interaction or Exact Match approach. The Interaction approach offers greater power by analyzing raw mean amplitude data (which have a greater signal-tonoise ratio than difference wave mean amplitudes) and retaining more usable trials and subjects. These models facilitate a more comprehensive examination of variables that modulate the raw mean amplitude and those that modulate the difference wave mean amplitude. However, this approach requires examining mean amplitude changes as a function of stimulus condition and a second predictor (e.g., maternal sensitivity, trial presentation number, age), which results in a different interpreta­ tion than difference waves. In contrast, an Exact Match approach re­ quires feature matching based on all design features, which allows researchers to ‘subtract-out’ variability that is related to nuisance fea­ tures and build simpler analysis models. If an Exact Match approach is used, we recommend conducting a power analysis accounting for real­ istic data collection conditions (e.g., the number of trials that children may contribute after accounting for trial loss due to EEG artifacts, equipment failure and non-compliance). There are several resources available for conducting power analyses for LMEs, including modifica­ [tion of our own simulation scripts available on GitHub (https://github.](https://github.com/basclab/LME_MixedEffectsERPTutorial) [com/basclab/LME_MixedEffectsERPTutorial,](https://github.com/basclab/LME_MixedEffectsERPTutorial) [https://github.com/basc](https://github.com/basclab/LME_MixedEffectsERPDifferenceWave) [lab/LME_MixedEffectsERPDifferenceWave), LME simulation resources](https://github.com/basclab/LME_MixedEffectsERPDifferenceWave) by DeBruine and Barr (2021) and Kumle and colleagues (2021), and other tutorials (Cox, 2024: [https://4ccoxau.github.io/PowerAnalysis](https://4ccoxau.github.io/PowerAnalysisWorkshopManyBabies/) [WorkshopManyBabies/).](https://4ccoxau.github.io/PowerAnalysisWorkshopManyBabies/) Some ERP components are only visually observable through sub­ tracting two conditions, such as subtracting the average of frequently presented trials from the average of infrequent or ‘deviant’ trials (i.e., MMN). For components not present in the raw waveforms (e.g., MMN, N2pc), the appropriate analysis model may depend on how the component is extracted. Components that involve the subtraction of waveforms recorded from the same electrode site (e.g., MMN) may be analyzed similarly to components present in the raw waveform. As a result, they may experience similar benefits with each analysis approach described above. In contrast, open questions remain about which anal­ ysis model may be appropriate for components that are revealed through the subtraction of waveforms from different electrode sites (e.g., N2pc is calculated as the difference between contralateral and ipsilateral sites). Including predictors for both electrode and contralaterality results in increased likelihood of collinearity, in which two predictors explain similar variance in mean amplitude. One possible solution for an Interaction approach could be to restrict the number of electrodes considered (e.g., TP7, TP8, P7, P8), and include contralaterality (e.g., contralateral vs. ipsilateral) and caudality (e.g., temporo-parietal vs. parietal regions) as predictors. However, this approach may result in model misspecification through omitting electrode as a predictor (Barr et al., 2013). An Exact Match model may face similar difficulties because noise is introduced when trial-level difference waves are created from different electrodes. Future studies are needed to systematically examine the impact of electrode variability for N2pc and similar com­ ponents using Interaction and Exact Match approaches. We additionally examined the LME Random Permutation and Nearest Neighbor approaches. While the Random Permutation had un­ biased model estimates and high power, it had greater computational demands compared to the other approaches. Using 1 core of a desktop computer (Intel Core i9–9900 CPU, 32 GB RAM), the Random Permu­ tation approach took 60 min to complete 10,000 iterations for our real preschooler dataset (64 participants and 9621 total trials). In contrast, each of the other approaches took less than 3 s to complete. These computational demands would be especially impactful for larger data­ sets, such as those from multi-site studies. The Random Permutation approach is also limited to estimation of between-subjects or continuous _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ within-subjects predictors and is not appropriate for estimating the ef­ fect of categorical variables, including design features (e.g., actor, color) or within-subjects predictors (e.g., ‘correct’ and ‘incorrect’ behavioral responses collected during each trial) which cannot be accounted for in a random trial pairing. We therefore do not recommend the Random Permutation approach when an Interaction or Exact Match approach can be applied instead. We also do not recommend the Nearest Neighbor approach, which had biased model estimates in simulated data and did not detect any significant effect in our real dataset. Our investigation of this Nearest Neighbor approach highlights the importance of correct model specification, such as including all variables that modulate ERP amplitude in analyses. Specifically, our Nearest Neighbor models did not feature match based on all design features, and all three of these models returned biased results in the simulated data analyses. While we focused on one specific implementation of the Nearest Neighbor using the Mahalanobis distance, it is likely that other implementations may be similarly biased because of their use of close, but not exact, matches. It is also likely that any models that do not account for variables that simi­ larly affect a dependent variable of interest would be similarly biased. This finding has implications for model misspecification for LMEs of mean amplitude broadly, and for difference wave analyses specifically. That is, we were able to clearly show that not accounting for a variable that modulates mean amplitude results in biased estimates of ERP effects (see LeBeau et al., 2018 for meta-analysis on model misspecification in LME). These difference wave analysis recommendations have implications for analyses that extend the LME framework, such as mixed-effects location scale models (MELSMs). MELSMs are a trial-level analytic framework that can examine predictors of ERP mean amplitude (similar to LMEs), as well as predictors of trial-by-trial ERP variability (e.g., the extent that the mean amplitude fluctuates across trials). Trial-by-trial variability has been suggested to index perception and learning and found to differ in developmental and clinical groups (Garrett et al., 2013; Pinneo, 1966). MELSMs are recommended over LMEs when trial-by-trial variability differs across participants or conditions in a dataset (for further discussion, see Hoffman and Walters, 2022). In addition, MELSMs can be used to address research questions such as whether trial-by-trial variability differs by stimulus condition, decreases with age, or changes over the course of the experiment (Clayson et al., 2022; Mon et al., 2024). When analyzing difference waves, MELSMs face similar issues as LMEs, including decisions about how to pair data and assumptions that data are missing at random, given that they both fit trial-level data. However, MELSMs face an additional complication because trial-by-trial variability estimates are especially sensitive to measurement noise and data quality (e.g., changes in electrode imped­ ance), which if not controlled or accounted for may be mistakenly interpreted as variability in the neural signal (Dinstein et al., 2015). An Interaction approach may be beneficial because it analyzes raw mean amplitudes, which have a greater signal-to-noise ratio, and can account for predictors of variability for both the raw mean amplitude and the difference wave mean amplitude. In contrast, an Exact Match approach may introduce noise if the variability related to design features is not ‘subtracted out’ when trial-level difference waves are created. We have previously shown the utility of Exact Match for analyzing trial-level MMN difference waves in an MELSM (Mon et al., 2024). Future studies are needed to compare the Interaction and Exact Match ap­ proaches in an MELSM framework and determine the impact of data quality on trial-by-trial variability estimates. Although our examination of difference wave analyses focused on trial pairing within two conditions of interest (e.g., Happy and Neutral in simulated data), these approaches are applicable to broader experiment designs. For designs with more than two conditions, trial-pairing ap­ proaches can be used for each grouping of two conditions (e.g., Happy and Neutral; Fearful and Neutral; Angry and Neutral). The resulting difference wave mean amplitudes can then be analyzed in one model with the difference wave type as a predictor. We have previously applied this type of model to examine how perception of emotional expressions (e.g., Happy-minus-Neutral, Fearful-minus-Neutral, Angry-minusNeutral) is related to a parental emotionality variable (Xia et al., 2024). An Interaction approach can also be used to analyze this design via contrast coding in which a reference level (e.g., Neutral) is compared to all other conditions (Schad et al., 2020). There are also additional considerations for designs with a large imbalance in the number of trials per condition, such as auditory oddball tasks in which deviant trials may occur for only 10–15 % of trials. An Exact Match approach in which trials are paired based on each condition’s trial presentation number may result in the inclusion of more standard trials from the beginning of the experiment compared to deviant trials. A more common approach would be to use Exact Match to pair deviant trials with the standard trials immediately preceding the deviants to better account for temporal closeness and other features that may modulate ERP amplitude (Bishop and Hardiman, 2010; Mon et al., 2024). Open questions remain about how to apply an Interaction approach to these types of unbalanced data. Future simulations may examine whether it may be beneficial to sub­ sample trials prior to model fitting, or whether all trials can be included in analyses with an additional time variable for block number (e.g., all standard trials preceding a deviant could be in one block). In summary, our work here extends the utility of LMEs for analyzing ERPs by demonstrating that LMEs can indeed be applied to trial-level difference waves. Specifically, we identified two LME difference wave analysis approaches—Interaction and Exact Match—that accurately identified model estimates across a range of developmental ERP condi­ tions (e.g., high proportions of missing data), isolated understudied trial-level ERP processes (e.g., habituation/decay of the difference wave mean amplitude), and accounted for trial-level predictors of missing­ ness. These approaches are also broadly applicable to difference wave analysis beyond early development, including in adolescent, adult, and aging populations, and in clinical samples, which may be impacted by motivation to complete the experiment, time constraints on task dura­ tion, and challenges with sitting for long periods. Thus, we recommend the application of the LME Interaction and Exact Match approaches to real ERP data in future research, given clear demonstrated advantages over standard ERP mean amplitude difference wave analysis with ANOVA and linear regression. 6. Conclusion The present study utilizes a series of simulations and an analysis of real preschooler ERP data to demonstrate the broad utility of LMEs across varied ERP experimental designs and research questions. We expand upon prior work illustrating the utility of LMEs to mean ampli­ tude by demonstrating novel analysis approaches that result in unbiased estimates of difference wave mean amplitude. Simulation results sup­ ported the use of an interaction term between two conditions or ‘Exact Match’ in which trial-level difference waves are created from trials paired on all design features (e.g., trial presentation number, actor). We then illustrated how these approaches can be used to examine brainbehavior relations in a real preschooler dataset. Finally, we provide recommendations for selecting a difference wave approach and taking advantage of the flexibility of the LME framework. CRediT authorship contribution statement Megan J. Heise : Conceptualization, Methodology, Investigation, Data curation, Project administration, Writing – original draft, Writing – review & editing. Serena K. Mon : Conceptualization, Methodology, Data curation, Formal analysis, Software, Writing - original draft, Writing - review & editing. Lindsay C. Bowman : Methodology, Re­ sources, Writing – review & editing, Supervision. _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ Declaration of Competing Interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. Acknowledgments We thank Dr. Steve Luck and the University of California Davis EEG group for helpful feedback on difference wave analysis, Dr. Duncan Lang and the UC Davis DataLab for help with developing simulation analysis code, and Dr. Steve Raudenbush for feedback on model equations. We thank the children and their families for participating in this research. We acknowledge the High Performance Computing Core Facility at the University of California, Davis, for providing computational resources that have contributed to the research results reported in this paper. The Pediatric Head Atlas lead field file used for data simulation was funded by the National Institute of Neurological Disorders and Stroke under the Small Business Innovation Research Program (NIH Grant R43NS067726). Appendix A. Supporting information Supplementary data associated with this article can be found in the [online version at doi:10.1016/j.dcn.2025.101614.](https://doi.org/10.1016/j.dcn.2025.101614) Data availability Code for simulations and analysis of real and simulated event-related potentials (ERPs) is available at [https://github.](https://github.com/basclab/LME_MixedEffectsERPDifferenceWave) [com/basclab/LME_MixedEffectsERPDifferenceWave. Data from real](https://github.com/basclab/LME_MixedEffectsERPDifferenceWave) pediatric ERP analysis presented in Section 4 is available upon request. References [Cogn. Sci. 19 (6), 322–328. https://doi.org/10.1016/j.tics.2015.04.005.](https://doi.org/10.1016/j.tics.2015.04.005) DiStefano, C., Senturk, D., Jeste, S.S., 2019. ERP evidence of semantic processing in [children with ASD. Dev. Cogn. Neurosci. 36, 100640. https://doi.org/10.1016/j.](https://doi.org/10.1016/j.dcn.2019.100640) [dcn.2019.100640.](https://doi.org/10.1016/j.dcn.2019.100640) Enders, C.K., Du, H., Keller, B.T., 2020. A model-based imputation procedure for Clawson, A., Clayson, P.E., Keith, C.M., Catron, C., Larson, M.J., 2017. Conflict and performance monitoring throughout the lifespan: an event-related potential (ERP) [and temporospatial component analysis. Biol. Psychol. 124, 87–99. https://doi.org/](https://doi.org/10.1016/j.biopsycho.2017.01.012) [10.1016/j.biopsycho.2017.01.012.](https://doi.org/10.1016/j.biopsycho.2017.01.012) Clayson, P.E., Baldwin, S.A., Larson, M.J., 2021. Evaluating the internal consistency of subtraction-based and residualized difference scores: considerations for psychometric reliability analyses of event-related potentials. Psychophysiology 58 [(4), e13762. https://doi.org/10.1111/psyp.13762.](https://doi.org/10.1111/psyp.13762) Clayson, P.E., Rocha, H.A., Baldwin, S.A., Rast, P., Larson, M.J., 2022. Understanding the error in psychopathology: notable intraindividual differences in neural variability of performance monitoring. Biolog. Psychiatry Cog. Neurosci. Neuroimag. 7 (6), [555–565. https://doi.org/10.1016/j.bpsc.2021.10.016.](https://doi.org/10.1016/j.bpsc.2021.10.016) Coch, D., Grossi, G., Coffey–Corina, S., Holcomb, P.J., Neville, H.J., 2002. A developmental investigation of ERP auditory rhyming effects. Dev. Sci. 5 (4), [467–489. https://doi.org/10.1111/1467-7687.00241.](https://doi.org/10.1111/1467-7687.00241) Courchesne, E., Ganz, L., Norcia, A.M., 1981. Event-related brain potentials to human [faces in infants. Child Dev. 52 (3), 804–811. https://doi.org/10.2307/1129080.](https://doi.org/10.2307/1129080) Cox, C.M.M., 2024. Workshop on data simulation & power analysis. ManyBabies Data [Simul. Power Anal. 〈https://4ccoxau.github.io/PowerAnalysisWorkshopMany](https://4ccoxau.github.io/PowerAnalysisWorkshopManyBabies/) [Babies/〉.](https://4ccoxau.github.io/PowerAnalysisWorkshopManyBabies/) Dawson, G., Carver, L., Meltzoff, A.N., Panagiotides, H., McPartland, J., Webb, S.J., 2002. Neural correlates of face and object recognition in young children with autism spectrum disorder, developmental delay, and typical development. Child Dev. 73 [(3), 700–717. https://doi.org/10.1111/1467-8624.00433.](https://doi.org/10.1111/1467-8624.00433) Debener, S., Thorne, J., Schneider, T.R., Viola, F.C., 2010. Using ICA for the analysis of multi-channel EEG data. In: Ullsperger, M., Debener, S. (Eds.), Simultaneous EEG [and fMRI. Oxford University Press, pp. 121–134. https://doi.org/10.1093/acprof:](https://doi.org/10.1093/acprof:oso/9780195372731.003.0008) [oso/9780195372731.003.0008.](https://doi.org/10.1093/acprof:oso/9780195372731.003.0008) DeBruine, L.M., Barr, D.J., 2021. Understanding mixed-effects models through data [simulation. Adv. Methods Pract. Psychol. Sci. 4 (1). https://doi.org/10.1177/](https://doi.org/10.1177/2515245920965119) [2515245920965119.](https://doi.org/10.1177/2515245920965119) Delorme, A., Makeig, S., 2004. EEGLAB: an open source toolbox for analysis of single trial EEG dynamics including independent component analysis. J. Neurosci. Methods [134 (1), 9–21. https://doi.org/10.1016/j.jneumeth.2003.10.009.](https://doi.org/10.1016/j.jneumeth.2003.10.009) van den Boomen, C., Munsters, N.M., Kemner, C., 2019. Emotion processing in the infant [brain: the importance of local information. Neuropsychologia 126, 62–68. https://](https://doi.org/10.1016/j.neuropsychologia.2017.09.006) [doi.org/10.1016/j.neuropsychologia.2017.09.006.](https://doi.org/10.1016/j.neuropsychologia.2017.09.006) Dennis, T.A., Malone, M.M., Chen, C.-C., 2009. Emotional face processing and emotion [regulation in children: an ERP study. Dev. Neuropsychol. 34 (1), 85–102. https://](https://doi.org/10.1080/87565640802564887) [doi.org/10.1080/87565640802564887.](https://doi.org/10.1080/87565640802564887) Dinstein, I., Heeger, D.J., Behrmann, M., 2015. Neural variability: friend or foe? Trends actiCAP slim [Apparatus]. (2020). Gilching, Germany: Brain Products GmbH. actiCAP snap [Apparatus]. (2020). Gilching, Germany: Brain Products GmbH. actiCHamp (64 channels) [Apparatus]. (2020). Gilching, Germany: Brain Products GmbH. Baraldi, A.N., Enders, C.K., 2010. An introduction to modern missing data analyses. [J. Sch. Psychol. 48 (1), 5–37. https://doi.org/10.1016/j.jsp.2009.10.001.](https://doi.org/10.1016/j.jsp.2009.10.001) Barr, D.J., Levy, R., Scheepers, C., Tilly, H.J., 2013. Random effects structure for confirmatory hypothesis testing: keep it maximal. J. Mem. Lang. 68 (3), 255–278. [https://doi.org/10.1016/j.jml.2012.11.001.](https://doi.org/10.1016/j.jml.2012.11.001) Bates, D., M¨achler, M., Bolker, B., Walker, S., 2015. Fitting linear mixed-effects models [using lme4. J. Stat. Softw. 67 (1), 1–48. https://doi.org/10.18637/jss.v067.i01.](https://doi.org/10.18637/jss.v067.i01) Batty, M., Taylor, M.J., 2006. The development of emotional face processing during [childhood. Dev. Sci. 9 (2), 207–220. https://doi.org/10.1111/j.1467-](https://doi.org/10.1111/j.1467-7687.2006.00480.x) [7687.2006.00480.x.](https://doi.org/10.1111/j.1467-7687.2006.00480.x) Bishop, D.V.M., Hardiman, M.J., 2010. Measurement of mismatch negativity in individuals: a study using single-trial analysis. Psychophysiology 47 (4), 697–705. [https://doi.org/10.1111/j.1469-8986.2009.00970.x.](https://doi.org/10.1111/j.1469-8986.2009.00970.x) Black, A.C., Harel, O., McCoach, D.B., 2011. Missing data techniques for multilevel data: [implications of model misspecification. J. Appl. Stat. 38 (9), 1845–1865. https://doi.](https://doi.org/10.1080/02664763.2010.529882) [org/10.1080/02664763.2010.529882.](https://doi.org/10.1080/02664763.2010.529882) Borgstrom, K., Torkildsen, J. von K., Lindgren, M., 2016. Visual event-related potentials ¨ to novel objects predict rapid word learning ability in 20-month-olds. Dev. [Neuropsychol. 41 (5–8), 308–323. https://doi.org/10.1080/](https://doi.org/10.1080/87565641.2016.1243111) [87565641.2016.1243111.](https://doi.org/10.1080/87565641.2016.1243111) Bowman, L.C., McCormick, S.A., Kane-Grade, F., Xie, W., Bosquet Enlow, M., Nelson, C. multilevel regression models with random coefficients, interaction effects, and [nonlinear terms. Psychol. Methods 25 (1), 88–112. https://doi.org/10.1037/](https://doi.org/10.1037/met0000228) [met0000228.](https://doi.org/10.1037/met0000228) Finch, J.F., West, S.G., MacKinnon, D.P., 1997. Effects of sample size and normality on the estimation of mediated effects in latent variable models. Struct. Equ. Model. 4 [(2), 87–107. https://doi.org/10.1080/10705519709540063.](https://doi.org/10.1080/10705519709540063) Garrett, D.D., Samanez-Larkin, G.R., MacDonald, S.W.S., Lindenberger, U., McIntosh, A. R., Grady, C.L., 2013. Moment-to-moment brain signal variability: a next frontier in [human brain mapping? Neurosci. Biobehav. Rev. 37 (4), 610–624. https://doi.org/](https://doi.org/10.1016/j.neubiorev.2013.02.015) [10.1016/j.neubiorev.2013.02.015.](https://doi.org/10.1016/j.neubiorev.2013.02.015) Grossmann, T., Johnson, M.H., Vaish, A., Hughes, D.A., Quinque, D., Stoneking, M., Friederici, A.D., 2011. Genetic and neural dissociation of individual responses to [emotional expressions in human infants. Dev. Cogn. Neurosci. 1 (1), 57–66. https://](https://doi.org/10.1016/j.dcn.2010.07.001) [doi.org/10.1016/j.dcn.2010.07.001.](https://doi.org/10.1016/j.dcn.2010.07.001) Guy, M.W., Reynolds, G.D., Zhang, D., 2013. Visual attention to global and local stimulus properties in 6-month-old infants: individual differences and event-related [potentials. Child Dev. 84 (4), 1392–1406. https://doi.org/10.1111/cdev.12053.](https://doi.org/10.1111/cdev.12053) Guy, M.W., Richards, J.E., Tonnsen, B.L., Roberts, J.E., 2018. Neural correlates of face processing in etiologically-distinct 12-month-old infants at high-risk of autism [spectrum disorder. Dev. Cogn. Neurosci. 29, 61–71. https://doi.org/10.1016/j.](https://doi.org/10.1016/j.dcn.2017.03.002) [dcn.2017.03.002.](https://doi.org/10.1016/j.dcn.2017.03.002) de Haan, M., Belsky, J., Reid, V., Volein, A., Johnson, M.H., 2004. Maternal personality and infants’ neural and visual responsivity to facial expressions of emotion. J. Child [Psychol. Psychiatry 45 (7), 1209–1218. https://doi.org/10.1111/j.1469-](https://doi.org/10.1111/j.1469-7610.2004.00320.x) [7610.2004.00320.x.](https://doi.org/10.1111/j.1469-7610.2004.00320.x) Harden, J.J., Kropko, J., 2019. Simulating duration data for the Cox model. Political Sci. A., 2022. Infants’ neural responses to emotional faces are related to maternal [anxiety. J. Child Psychol. Psychiatry 63 (2), 152–164. https://doi.org/10.1111/](https://doi.org/10.1111/jcpp.13429) [jcpp.13429.](https://doi.org/10.1111/jcpp.13429) BrainVision Recorder (Vers. 1.21.0303) [Software]. (2020). Gilching, Germany: Brain Products GmbH. Buodo, G., Sarlo, M., Battistella, P.A., Naccarella, C., Palomba, D., 2011. Event-related [Res. Methods 7 (4), 921–928. https://doi.org/10.1017/psrm.2018.19.](https://doi.org/10.1017/psrm.2018.19) Heise, M.J., Mon, S.K., Bowman, L.C., 2022. Utility of linear mixed effects models for potentials to emotional stimuli in migrainous children. J. Child Neurol. 26 (12), [1508–1515. https://doi.org/10.1177/0883073811408905.](https://doi.org/10.1177/0883073811408905) Carver, L.J., Dawson, G., Panagiotides, H., Meltzoff, A.N., McPartland, J., Gray, J., Munson, J., 2003. Age-related differences in neural correlates of face recognition [during the toddler and preschool years. Dev. Psychobiol. 42 (2), 148–159. https://](https://doi.org/10.1002/dev.10078) [doi.org/10.1002/dev.10078.](https://doi.org/10.1002/dev.10078) [Chihara, L.M., Hesterberg, T.C., 2022. Mathematical Statistics with Resampling and R,](http://refhub.elsevier.com/S1878-9293%0x2825%0x2900110-0/sbref11) event-related potential research with infants and children. Dev. Cogn. Neurosci. 54, [101070. https://doi.org/10.1016/j.dcn.2022.101070.](https://doi.org/10.1016/j.dcn.2022.101070) Ho, D., Imai, K., King, G., Stuart, E.A., 2011. MatchIt: nonparametric preprocessing for [parametric causal inference. J. Stat. Softw. 42 (8), 1–28. https://doi.org/10.18637/](https://doi.org/10.18637/jss.v042.i08) [jss.v042.i08.](https://doi.org/10.18637/jss.v042.i08) Hoffman, L., Walters, R.W., 2022. Catching up on multilevel modeling. Annu. Rev. [Psychol. 73 (1), 659–689. https://doi.org/10.1146/annurev-psych-020821-103525.](https://doi.org/10.1146/annurev-psych-020821-103525) Jessen, S., Grossmann, T., 2015. Neural signatures of conscious and unconscious [emotional face processing in human infants. Cortex 64, 260–270. https://doi.org/](https://doi.org/10.1016/j.cortex.2014.11.007) [10.1016/j.cortex.2014.11.007.](https://doi.org/10.1016/j.cortex.2014.11.007) [third ed. Wiley.](http://refhub.elsevier.com/S1878-9293%0x2825%0x2900110-0/sbref11) _M.J. Heise et al. Developmental_ _Cognitive_ _Neuroscience_ _76_ _(2025)_ _101614_ Junge, C., Cutler, A., Hagoort, P., 2012. Electrophysiological evidence of early word Pinneo, L.R., 1966. On noise in the nervous system. Psychol. Rev. 73 (3), 242–247. [learning. Neuropsychologia 50 (14), 3702–3712. https://doi.org/10.1016/j.](https://doi.org/10.1016/j.neuropsychologia.2012.10.012) [neuropsychologia.2012.10.012.](https://doi.org/10.1016/j.neuropsychologia.2012.10.012) Kaplan, D., 1988. The impact of specification error on the estimation, testing, and improvement of structural equation models. Multivar. Behav. Res. 23 (1), 69–86. [https://doi.org/10.1207/s15327906mbr2301_4.](https://doi.org/10.1207/s15327906mbr2301_4) Krol, L.R., Pawlitzki, J., Lotte, F., Gramann, K., Zander, T.O., 2018. SEREEGA: simulating [event-related EEG activity. J. Neurosci. Methods 309, 13–24. https://doi.org/](https://doi.org/10.1016/j.jneumeth.2018.08.001) [10.1016/j.jneumeth.2018.08.001.](https://doi.org/10.1016/j.jneumeth.2018.08.001) Kropko, J., Harden, J.J., 2020. Beyond the hazard ratio: generating expected durations from the Cox proportional hazards model. Br. J. Political Sci. 50 (1), 303–320. [https://doi.org/10.1017/S000712341700045X.](https://doi.org/10.1017/S000712341700045X) Kulis, B., 2012. Metric learning: a survey. Found. Trends Mach. Learn. 5 (4), 287–364. [https://doi.org/10.1561/2200000019.](https://doi.org/10.1561/2200000019) Kumle, L., Vo, M.L.-H., Draschkow, D., 2021. Estimating power in (generalized) linear ˜ mixed models: an open introduction and tutorial in R. Behav. Res. Methods 53 (6), [2528–2543. https://doi.org/10.3758/s13428-021-01546-0.](https://doi.org/10.3758/s13428-021-01546-0) Kungl, M.T., Bovenschen, I., Spangler, G., 2017. Early adverse caregiving experiences and preschoolers’ current attachment affect brain responses during facial familiarity [processing: an ERP study. Front. Psychol. 8, 2047. https://doi.org/10.3389/](https://doi.org/10.3389/fpsyg.2017.02047) [fpsyg.2017.02047.](https://doi.org/10.3389/fpsyg.2017.02047) Kuznetsova, A., Brockhoff, P.B., Christensen, R.H.B., 2017. Lmertest package: tests in [linear mixed effects models. J. Stat. Softw. 82 (13), 1–26. https://doi.org/10.18637/](https://doi.org/10.18637/jss.v082.i13) [jss.v082.i13.](https://doi.org/10.18637/jss.v082.i13) LeBeau, B., Song, Y.A., Liu, W.C., 2018. Model misspecification and assumption [violations with the linear mixed model: a meta-analysis. Sage Open 8 (4). https://](https://doi.org/10.1177/2158244018820380) [doi.org/10.1177/2158244018820380.](https://doi.org/10.1177/2158244018820380) [Lenth, R. (2021). Emmeans: Estimated marginal means, aka least-squares means. 〈htt](https://CRAN.R-project.org/package=emmeans) [ps://CRAN.R-project.org/package=emmeans〉.](https://CRAN.R-project.org/package=emmeans) Leppanen, J.M., Moulson, M.C., Vogel-Farley, V.K., Nelson, C.A., 2007. An ERP study of ¨ emotional face processing in the adult and infant brain. Child Dev. 78 (1), 232–245. [https://doi.org/10.1111/j.1467-8624.2007.00994.x.](https://doi.org/10.1111/j.1467-8624.2007.00994.x) Little, T.D., Lang, K.M., Wu, W., Rhemtulla, M., 2016. Missing data. In: Cicchetti, D. (Ed.), Developmental psychopathology, volume 1: Theory and method, third ed. [Wiley, pp. 760–796. https://doi.org/10.1002/9781119125556.devpsy117.](https://doi.org/10.1002/9781119125556.devpsy117) Lopez-Calderon, J., Luck, S.J., 2014. ERPLAB: an open-source toolbox for the analysis of [event-related potentials. Front. Hum. Neurosci. 8. https://doi.org/10.3389/](https://doi.org/10.3389/fnhum.2014.00213) [fnhum.2014.00213.](https://doi.org/10.3389/fnhum.2014.00213) [Luck, S.J., 2005. Ten simple rules for designing ERP experiments. In: Handy, T.C. (Ed.),](http://refhub.elsevier.com/S1878-9293%0x2825%0x2900110-0/sbref50) [Event-Related Potentials: A Methods Handbook. MIT Press, Cambridge, MA.](http://refhub.elsevier.com/S1878-9293%0x2825%0x2900110-0/sbref50) [Luck, S.J., 2014. An Introduction to the Event-Related Potential Technique, second ed.](http://refhub.elsevier.com/S1878-9293%0x2825%0x2900110-0/sbref51) [https://doi.org/10.1037/h0023240.](https://doi.org/10.1037/h0023240) Pinto, J., Vogel, E., Aylwin, M.D.L.L., Kreither, J., 2022. ERPs studies of short- and long [term habituation in humans: a systematic review. Psykhe 31 (SI 1), 1–20. https://](https://doi.org/10.7764/psykhe.2021.36885) [doi.org/10.7764/psykhe.2021.36885.](https://doi.org/10.7764/psykhe.2021.36885) Porter, C.L., Evans-Stout, C.A., Reschke, P.J., Nelson, L.J., Hyde, D.C., 2021. Associations between brain and behavioral processing of facial expressions of emotion and [sensory reactivity in young children. Dev. Sci. 24 (6), e13134. https://doi.org/](https://doi.org/10.1111/desc.13134) [10.1111/desc.13134.](https://doi.org/10.1111/desc.13134) [Psychology Software Tools, Inc. (2016). E-Prime (Version 3.0). 〈https://support.pstnet.](https://support.pstnet.com/) [com/〉.](https://support.pstnet.com/) Putnam, S.P., Gartstein, M.A., Rothbart, M.K., 2006. Measurement of fine-grained aspects of toddler temperament: the early childhood behavior questionnaire. Infant [Behav. Dev. 29 (3), 386–401. https://doi.org/10.1016/j.infbeh.2006.01.004.](https://doi.org/10.1016/j.infbeh.2006.01.004) Putnam, S.P., Jacobs, J., Gartstein, M.A., Rothbart, M.K., 2010. Development and assessment of short and very short forms of the Early Childhood Behavior Questionnaire. In International Conference on Infant Studies, Baltimore, MD [Poster presentation]. Quadrelli, E., Conte, S., Cassia, V.M., Turati, C., 2019. Emotion in motion: facial dynamics affect infants’ neural processing of emotions. Dev. Psychobiol. 61 (6), [843–858. https://doi.org/10.1002/dev.21860.](https://doi.org/10.1002/dev.21860) R Core Team (2019). R (Version 3.6.1). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL [〈http://www.R-project.org/〉.](http://www.R-project.org/) Reynolds, G.D., Richards, J.E., 2005. Familiarization, attention, and recognition memory in infancy: an event-related potential and cortical source localization study. Dev. [Psychol. 41 (4), 598–615. https://doi.org/10.1037/0012-1649.41.4.598.](https://doi.org/10.1037/0012-1649.41.4.598) Schad, D.J., Vasishth, S., Hohenstein, S., Kliegl, R., 2020. How to capitalize on a priori [contrasts in linear (mixed) models: a tutorial. J. Mem. Lang. 110, 104038. https://](https://doi.org/10.1016/j.jml.2019.104038) [doi.org/10.1016/j.jml.2019.104038.](https://doi.org/10.1016/j.jml.2019.104038) Schielzeth, H., Dingemanse, N.J., Nakagawa, S., Westneat, D.F., Allegue, H., Teplitsky, C., R´eale, D., Dochtermann, N.A., Garamszegi, L.Z., Araya-Ajoy, Y.G., 2020. Robustness of linear mixed-effects models to violations of distributional [assumptions. Methods Ecol. Evol. 11 (9), 1141–1152. https://doi.org/10.1111/](https://doi.org/10.1111/2041-210X.13434) [2041-210X.13434.](https://doi.org/10.1111/2041-210X.13434) Singmann, H., Bolker, B., Westfall, J., Aust, F., & Ben-Shachar, M.S. (2021). afex: [MIT Press.](http://refhub.elsevier.com/S1878-9293%0x2825%0x2900110-0/sbref51) Luck, S.J., Hillyard, S.A., 1994. Spatial filtering during visual search: evidence from human electrophysiology. J. Exp. Psychol. Hum. Percept. Perform. 20 (5), [1000–1014. https://doi.org/10.1037/0096-1523.20.5.1000.](https://doi.org/10.1037/0096-1523.20.5.1000) MATLAB. (2019). MATLAB (Release 2019a, Version 9.6.0.1072779). Natick, Massachusetts: The MathWorks Inc. Meyer, A., Lerner, M.D., De Los Reyes, A., Laird, R.D., Hajcak, G., 2017. Considering ERP difference scores as individual difference measures: issues with subtraction and [alternative approaches. Psychophysiology 54 (1), 114–122. https://doi.org/](https://doi.org/10.1111/psyp.12664) [10.1111/psyp.12664.](https://doi.org/10.1111/psyp.12664) Mon, S.K., Manning, B.L., Wakschlag, L.S., Norton, E.S., 2024. Leveraging mixed-effects location scale models to assess the ERP mismatch negativity’s psychometric properties and trial-by-trial neural variability in toddler-mother dyads. Dev. Cogn. [Neurosci. 70, 101459. https://doi.org/10.1016/j.dcn.2024.101459.](https://doi.org/10.1016/j.dcn.2024.101459) Moulson, M.C., Fox, N.A., Zeanah, C.H., Nelson, C.A., 2009. Early adverse experiences and the neurobiology of facial emotion processing. Dev. Psychol. 45 (1), 17–30. [https://doi.org/10.1037/a0014035.](https://doi.org/10.1037/a0014035) N¨a¨atanen, R., Paavilainen, P., Rinne, T., Alho, K., 2007. The mismatch negativity (MMN) ¨ in basic research of central auditory processing: a review. Clin. Neurophysiol. 118 [(12), 2544–2590. https://doi.org/10.1016/j.clinph.2007.04.026.](https://doi.org/10.1016/j.clinph.2007.04.026) Nakagawa, S., Freckleton, R.P., 2011. Model averaging, missing data and multiple imputation: a case study for behavioural ecology. Behav. Ecol. Sociobiol. 65 (1), [103–116. https://doi.org/10.1007/s00265-010-1044-7.](https://doi.org/10.1007/s00265-010-1044-7) [Nelson, C.A., 1994. Neural correlates of recognition memory in the first postnatal year.](http://refhub.elsevier.com/S1878-9293%0x2825%0x2900110-0/sbref58) [In: Dawson, G., Fischer, K.W. (Eds.), Human Behavior and the Developing Brain. The](http://refhub.elsevier.com/S1878-9293%0x2825%0x2900110-0/sbref58) [Guilford Press, pp. 269–313.](http://refhub.elsevier.com/S1878-9293%0x2825%0x2900110-0/sbref58) Noreika, V., Georgieva, S., Wass, S., Leong, V., 2020. 14 challenges and their solutions for conducting social neuroscience and longitudinal EEG research with infants. [Infant Behav. Dev. 58, 101393. https://doi.org/10.1016/j.infbeh.2019.101393.](https://doi.org/10.1016/j.infbeh.2019.101393) Peltola, M.J., Lepp¨anen, J.M., M¨aki, S., Hietanen, J.K., 2009. Emergence of enhanced attention to fearful faces between 5 and 7 months of age. Soc. Cogn. Affect. Neurosci. [4 (2), 134–142. https://doi.org/10.1093/scan/nsn046.](https://doi.org/10.1093/scan/nsn046) [Analysis of Factorial Experiments. 〈https://cran.r-project.org/web/packages/afex/i](https://cran.r-project.org/web/packages/afex/index.html) [ndex.html〉.](https://cran.r-project.org/web/packages/afex/index.html) [Song, J., Morgan, K., Turovets, S., Li, K., Davey, C., Govyadinov, P., Luu, P., Smith, K.,](http://refhub.elsevier.com/S1878-9293%0x2825%0x2900110-0/sbref69) [Prior, F., Larson-Prior, L., Tucker, D.M., 2013. Anatomically accurate head models](http://refhub.elsevier.com/S1878-9293%0x2825%0x2900110-0/sbref69) [and their derivatives for dense array EEG source localization. Funct. Neurol. Rehabil.](http://refhub.elsevier.com/S1878-9293%0x2825%0x2900110-0/sbref69) [Ergon. 3 (2–3), 275–293.](http://refhub.elsevier.com/S1878-9293%0x2825%0x2900110-0/sbref69) Stahl, D., Parise, E., Hoehl, S., Striano, T., 2010. Eye contact and emotional face processing in 6-month-old infants: advanced statistical methods applied to event[related potentials. Brain Dev. 32 (4), 305–317. https://doi.org/10.1016/j.](https://doi.org/10.1016/j.braindev.2009.04.001) [braindev.2009.04.001.](https://doi.org/10.1016/j.braindev.2009.04.001) Taylor-Colls, S., Pasco Fearon, R.M., 2015. The effects of parental behavior on infants’ [neural processing of emotion expressions. Child Dev. 86 (3), 877–888. https://doi.](https://doi.org/10.1111/cdev.12348) [org/10.1111/cdev.12348.](https://doi.org/10.1111/cdev.12348) Todd, R.M., Lewis, M.D., Meusel, L.-A., Zelazo, P.D., 2008. The time course of social emotional processing in early childhood: ERP responses to facial affect and personal [familiarity in a Go-Nogo task. Neuropsychologia 46 (2), 595–613. https://doi.org/](https://doi.org/10.1016/j.neuropsychologia.2007.10.011) [10.1016/j.neuropsychologia.2007.10.011.](https://doi.org/10.1016/j.neuropsychologia.2007.10.011) Tottenham, N., Tanaka, J.W., Leon, A.C., McCarry, T., Nurse, M., Hare, T.A., Marcus, D. J., Westerlund, A., Casey, B., Nelson, C., 2009. The NimStim set of facial expressions: judgments from untrained research participants. Psychiatry Res. 168 (3), 242–249. [https://doi.org/10.1016/j.psychres.2008.05.006.](https://doi.org/10.1016/j.psychres.2008.05.006) Volpert-Esmond, H.I., Merkle, E.C., Levsen, M.P., Ito, T.A., Bartholow, B.D., 2018. Using trial-level data and multilevel modeling to investigate within-task change in event[related potentials. Psychophysiology 55 (5), e13044. https://doi.org/10.1111/](https://doi.org/10.1111/psyp.13044) [psyp.13044.](https://doi.org/10.1111/psyp.13044) Volpert-Esmond, H.I., Page-Gould, E., Bartholow, B.D., 2021. Using multilevel models for [the analysis of event-related potentials. Int. J. Psychophysiol. 162, 145–156. https://](https://doi.org/10.1016/j.ijpsycho.2021.02.006) [doi.org/10.1016/j.ijpsycho.2021.02.006.](https://doi.org/10.1016/j.ijpsycho.2021.02.006) Xia, R., Heise, M.J., Bowman, L.C., 2024. Parent emotionality is related to preschool children’s neural responses to emotional faces. Soc. Cogn. Affect. Neurosci. 19 (1), [1–11. https://doi.org/10.1093/scan/nsad078.](https://doi.org/10.1093/scan/nsad078) Xie, W., McCormick, S.A., Westerlund, A., Bowman, L.C., Nelson, C.A., 2019. Neural [correlates of facial emotion processing in infancy. Dev. Sci. 22 (3), e12758. https://](https://doi.org/10.1111/desc.12758) [doi.org/10.1111/desc.12758.](https://doi.org/10.1111/desc.12758) Zhang, Y., Hedo, R., Rivera, A., Rull, R., Richardson, S., Tu, X.M., 2019. Post hoc power analysis: is it an informative and meaningful analysis? Gen. Psychiatry 32 (4), [e100069. https://doi.org/10.1136/gpsych-2019-100069.](https://doi.org/10.1136/gpsych-2019-100069)

섹션 본문 106문단 · 106,020자

(제목 없음)

1Linear mixed effects models (LMEs) have advantages for analyzing mean amplitude event-related potential (ERP) data.Compared to ANOVA and linear regression, LMEs retain more subjects and yield unbiased parameter estimates by accounting for trial-level sources of variability.However, LME analysis of ERP mean amplitude difference waves may be problematic due to the need to pair single trial data to create trial-level difference waves.In both simulated and real pediatric ERP data, the present study compares ERP difference wave results across conventional ANOVA/regression analyses and six trial-level LME approaches in different low trial-count scenarios.We evaluate each approach based on accuracy of estimates and statistical power in simulated data, and magnitude of effect detected in real ERP data from 3-to 5-year-old neurotypical children (N = 64).Two analysis approaches were unbiased: creating trial-level difference waves by pairing trials on all study design features (the 'exact match' approach) and fitting an interaction term; and the interaction term had greater power to detect a significant effect in simulated data.Both simulations and analysis of real preschooler ERP data support using LMEs to analyze difference waves.We also include recommendations for researchers for picking a difference wave approach appropriate for their research question.

The advantages of linear mixed effects modeling for event-related potential analyses

2Event-related potentials (ERPs) offer a useful measure of cognitive development and underlying neural functioning.ERPs reveal neural changes that precede behavioral displays of cognition (Coch et al., 2002), offer a metric of cognition that can be used across the lifespan (e. g., Clawson et al., 2017;Leppänen et al., 2007), and have advantages over complex behavioral tasks that can prohibit participation from populations with limited or nonexistent verbal skills (e.g., DiStefano et al., 2019;Guy et al., 2018).Thus, ERPs have wide-ranging advantages for the study of cognition, cognitive development, and their neural correlates.

3Developmental ERP research also faces unique challenges.For example, there are increased artifacts in the electroencephalogram (EEG) when infants and young children are fussy and inattentive (Heise et al., 2022;Noreika et al., 2020).This high proportion of 'noise' in ERP trials leads to low analyzable trial counts in developmental samples, and poses problems for traditional ERP analyses when trials are combined to form an averaged waveform (see Heise et al., 2022).That is, mean-averaging results in casewise deletion of subjects with too few trials to produce a 'clean' averaged waveform.Critically, casewise deletion is valid only when data are 'missing completely at random' (i.e., the probability of missing values is not related to other variables or to the missing values; Baraldi and Enders, 2010).When this assumption is violated, estimates become more biased when casewise deletion increases and data are systematically missing (Little et al., 2016).Data may be 'missing at random' if the probability of missing data is predicted by measured variables or 'missing not at random' if the probability of missing data is related to unmeasured variables and related to the missing values (Nakagawa and Freckleton, 2011).These situations may be typical in developmental ERP studies that have more missing data in younger (versus older) children, and more missing data toward the end (versus beginning) of the trial presentations (e.g., due to fatigue, increased motion artifact, and early experiment termination) (see Heise et al., 2022).Similar situations exist in other research cases wherein the risk for ERP data loss is high (e.g., especially lengthy experiments; participant populations that have difficulty sitting still and attending).Importantly, this biasing affects frequently used statistical models employing casewise deletion, including linear regression and analysis of variance (ANOVA).Heise and colleagues (2022) demonstrated these systematic biases in the use of ANOVAs to analyze raw mean amplitude in pediatric samples, in both simulated and real ERP data (i.e., from 3-to 5-year-old neurotypical children).Results demonstrated clear advantages of linear mixed effects models (LMEs), which analyze ERP mean amplitude at the trial level, and remove the need for a trial cutoff and casewise deletion by analyzing subjects with any number of artifact-free trials (see also Volpert-Esmond et al., 2018).Among many advantages, LMEs can include trial-level predictors of missing data, such as trial presentation number and electrode location.Throughout, we use trial presentation number to refer to the instance that a specific trial for a condition (e.g., happy) and stimulus (e.g., a unique actor's face) is shown to a participant.For example, a picture of each unique actor displaying a happy face is labeled as Trial 1 when it is presented for the first time, Trial 2 for the second time, and so on.Trial presentation numbers can be used in analyses in both randomized and blocked experiments.For creating a trial presentation number variable in randomized experiments, a trial's position relative to all trials of the same condition/stimulus is extracted.For blocked designs, a trial's position relative to trials of the same stimulus is extracted within a block.This trial numbering method is beneficial for isolating variance due to repeated presentations of a particular stimulus (for other numbering methods, see Volpert-Esmond et al., 2021).

4A trial presentation number predictor can account for systematic variability in ERP amplitudes that may change over the course of successive trial presentations (e.g., decay due to habituation effects, Pinto et al., 2022) and account for missing data (e.g., fewer trials toward the end of the experiment).Similarly, an electrode predictor can account for differences in hemisphere, electrode placement, or data quality that may predict missing data.By including these predictors, LMEs are more robust to missingness and can accommodate for data that are missing at random (Baraldi and Enders, 2010;Black et al., 2011).Heise and colleagues showed that, in contrast to ANOVA with casewise deletion, LMEs accurately estimated the true population mean amplitude and outperformed ANOVA models, even when data were missing at random and had high proportions of subjects with low trial counts.

5LME model estimates are further improved by allowing researchers to account for 'nuisance' variability (variability that is not of interest itself but that may bias an effect of interest) in the ERPs by modeling both fixed and random effects at both within-and between-subject levels.In addition to fixed effects in LMEs, which can be modeled in linear regression and ANOVA, random effects in LMEs account for sampling variability within a predictor, such as a sample of subjects from the population or a sample of stimuli from the 'population' of all potential stimuli chosen for a study.Thus, as described above, LMEs can model variables that likely influence ERP mean amplitude but that are not the target variable of interest, such as trial presentation number, stimulus level features (e.g., color, shape, actor), electrode, and subjects.In contrast, ANOVAs and linear regression are more limited given that their use of mean averaging prevents modeling of within-subject effects, and they cannot model random effects.LMEs also increase power by including all subjects-even those with few artifact-free trials-while ensuring that subjects with more trials have greater weight for model estimates (i.e., partial pooling).Thus, the advantages of using LMEs for analyzing raw mean amplitude ERP data (and in particular pediatric ERP data) are clear: LMEs offer greater flexibility in statistical analyses and in the research questions that ERP researchers may ask (e.g., testing within-subjects effects), and offer unbiased estimates of mean amplitude even when there are high proportions of subjects with low trial counts (see Heise et al., 2022).

Open questions about the applicability of LMEs for ERP difference wave analysis

6Open questions concern whether the advantages of LMEs hold for other kinds of ERP analyses beyond raw mean amplitude.Analysis of mean amplitude difference waves (wherein the outcome variable reflects a subtraction or difference in the amplitudes in two conditions or samples) is common in ERP research (Clayson et al., 2021;Luck, 2014; see also Meyer et al., 2017 for discussion of residualized difference scores).

7Some ERP components are only observable as a difference wave, and cannot be found in the raw waveforms.For example, the N2pc (Luck and Hillyard, 1994) is revealed by subtracting the ERP of the ipsilateral electrode from the contralateral electrode, and the mismatch negativity (Näätänen et al., 2007) is revealed by subtracting the ERP to a standard or expected stimulus from a deviant stimulus.Thus, some components require the subtraction of two waveforms to be visually identified.

8More broadly, ERP difference waves can offer advantages over analyzing raw mean amplitude because they can offer better estimates of the time course and scalp distribution of underlying components (Luck, 2014).That is, through the subtraction process, ERP difference waves can reveal unique patterns of neural activity that better reflect a target cognitive process of interest because the 'non-target' processes (e.g., general visual processing, general attention) are 'subtracted out'.For example, if a researcher is interested in measuring neural activity supporting emotion perception and has participants view a series of faces showing happy, angry, and neutral expressions, then the neural activity supporting perception of emotions per se could be best captured in a difference wave of happy-minus-neutral, and angry-minus-neutral waveforms: Such difference waves would reveal the ERP components unique to perceiving happy and angry faces, with the common neural activity supporting perceptions of faces more broadly subtracted out (see Fig. 1).

9Difference waves can be used in analyses of between-group differences (e.g., comparing difference wave amplitude of low-and highfearfulness participants, de Haan et al., 2004), or in analyses relating difference wave amplitude to a relevant clinical, behavioral or cognitive measure (e.g., correlating difference wave mean amplitude with temperament, Quadrelli et al., 2019;Taylor-Colls and Pasco Fearon, 2015).Thus, difference waves offer a powerful approach to isolate unique brain activity to a stimulus of interest, while accounting for general attentional processing or other cognitive processing captured in a comparison condition or sample.

10It would be valuable to use LMEs to analyze ERP difference waves at the trial level given the illustrated advantages of the LME approach (e.g., Heise et al., 2022).However, there are challenges in applying LMEs to difference waves-especially in pediatric ERP data-that may compromise features of LMEs that allow them to accurately estimate mean amplitude.The conventional approach to create difference waves (e.g., for ANOVA) is to first average across trials, and then create subject-level or condition-level difference waves (e.g., subtract subject 1's ERP amplitude averaged across neutral faces from their amplitude averaged across happy faces).However, to analyze difference waves with LME, trial-level difference waves must be created (e.g., subtract subject 1's ERP amplitude on the first neutral face trial from amplitude on the first happy face trial).But there are several considerations when determining how to form trial-level pairs, such as whether or not to match trials on lower-level stimulus features, whether trials presented at the beginning of the experiment can be paired with those presented at the end, and what to do when trials are missing (e.g., due to artifact or lack of completion).Given that infants and young children have few analyzable ERP trials, it is unclear how to pair trials to form trial-level difference waves in a way that maximizes usable data and preserves pairing based on design features that modulate ERP amplitude (e.g., trial presentation number).

11Thus, there are open questions about whether and how LMEs can be used to analyze ERP mean amplitude difference waves, and whether LMEs still result in more accurate estimates compared to ANOVA, as shown previously when analyzing raw mean amplitude (Heise et al., 2022).Systematic evaluation of the extent to which LMEs can still yield unbiased parameter estimates, in comparison to ANOVA/regression, are needed to determine whether LMEs should be used to analyze ERP difference waves.The present study adopts this important aim, and is meant as a companion article to Heise and colleagues' (2022) original evaluation of LMEs for pediatric raw mean amplitude ERP data.

12The present article is organized into several remaining sections.In Section 2 next, we discuss the challenges of ERP difference waves for LME analyses, and describe alternative models to analyze difference waves.Section 3 describes the methods and results from simulated ERP data-created to mimic common qualities of pediatric ERP data-to systematically evaluate each of these model approaches in their ability to yield unbiased estimates of the known (simulated) population parameter.Section 4 then describes methods and results of a similar systematic evaluation of these models, this time using real ERP data from 3-to 5-year-old neurotypical children.For each of these sections, we analyze simulated and real 'Negative Central' (Nc) ERP data, chosen for its common examination in infant and child ERP analysis with emotional and face stimuli (infant Nc: Bowman et al., 2022;Courchesne et al., 1981;Taylor-Colls and Pasco Fearon, 2015;Xie et al., 2019;child Nc: Buodo et al., 2011;Carver et al., 2003;Dawson et al., 2002;Dennis et al., 2009;Kungl et al., 2017;Moulson et al., 2009;Todd et al., 2008), and its more general purported function of attentional processes related to salient stimuli (Guy et al., 2013;Nelson, 1994;Reynolds and Richards, 2005).The Nc also exhibits a 'decaying' property (reduction in amplitude over repeated stimulus presentations; Borgström et al., 2016;Junge et al., 2012) that may be critical to address in analyses.In Section 5, we summarize the best-performing LME models across simulated and real ERP data for difference wave analysis.

General methods: The application of LMEs to ERP difference wave analysis

13To compare difference wave estimates across LMEs and ANOVA, we examined model performance across both simulated and real pediatric ERPs.The experimental conditions for the simulated data were created to match those for the real ERP data.Briefly, our ERP experiment involved passive viewing of faces of four different emotional expressions-Happy, Angry, Fearful, and Neutral (see Fig. 2).Faces were presented by 18 different female actors (each child saw 4-5 unique actors) with different stimulus features (e.g., race and hair color).We targeted the Nc component for our analyses-a negative deflection commonly occurring at 300-500 ms post-stimulus onset (Quadrelli et al., 2019, Todd et al., 2008)-given it has a broad attentional function, is commonly used to assess emotional versus neutral face processing (de Haan et al., 2004), and can be measured across large developmental age ranges.We also collected parent-report of children's temperament characteristics (i.e., from the Early Childhood Behavioral Questionnaire; ECBQ, Putnam et al., 2006Putnam et al., , 2010)).Similar to this real experiment, we simulated parent-report questionnaire data (i.e., on parental characteristics) in simulation analyses.These experimental conditions and tasks provide the context for evaluating ERP difference wave analyses using alternative approaches to model difference waves with both simulated and real ERP data.

14Following this study design, we compare trial-level difference waves created through pairing single trials across conditions ('Exact Match,' 'Nearest Neighbor,' and 'Random Permutation,' see Fig. 3), difference waves modeled as an interaction between conditions, and standard mean averaging with casewise deletion (e.g., as in ANOVA).We describe each of these approaches and their potential advantages and disadvantages next.

Analysis models for difference waves

151. LME Exact Match.In this approach, trials are paired by matching all potential features that may modulate ERP mean amplitude, including We use trial presentation number to refer to the order in which a randomized trial is presented within each condition/stimulus (i.e., within each condition, there is a Trial 1 for each actor).Trials that do not have an 'exact match' based on presentation number and all stimulus features are removed from analyses.This approach has the benefit of avoiding potential bias from mixmatching trials of different presentation order (e.g., avoid matching early trials with later trials that have decayed amplitude), and also deliberately matching trials based on stimulus features known to modulate ERP amplitude, therefore reducing nuisance variability unrelated to the target cognitive construct.The Exact Match method uses deliberate trial pairing to match study design features to 'subtract out' variability that may modulate ERP amplitude.Trial-level ERP amplitude can be thought to contain variance related to the emotion presented (e. g., Angry, Neutral), to the presentation number (e.g., through habituation or decay effects), and to actor (e.g., an actor with red hair elicits a different amplitude than an actor with brown hair).In pairing trials by all of these features, the resulting waveform should contain variance only relating to conditions which are not matched (e.g., variance related to two different emotions).This 'feature match' strategy has the advantage of eliminating the need to add this design variable as an additional predictor in the analysis model.For example, in our experimental context wherein emotional faces are presented, pairing trials who share an actor results in the mean amplitude related to the stimulus features for a given actor (e.g., 'red hair') being subtracted out from the trial-level difference wave.As a result, an LME model fit to this dataset would not need to include this stimulus feature as a predictor in the model.Instead, the LME model only needs to account for variables that modulate the difference wave mean amplitude (e.g., age and other subject-level variables that are not affected when subtracting trials paired within a subject).Thus this 'Exact Match' approach may result in simpler LME models that are easier to interpret.

16However, whether matching pairings on a feature will indeed result in 'subtracting out' the feature's potential effect can be a complex process.As a particularly relevant example, we can consider decay of the difference wave mean amplitude with repeated trial presentations.On the one hand, if the amplitude of the calculated difference wave is stable over time, it suggests that the two conditions in the difference either do not decay or decay at the same rate over trials.In these same decay cases, an Exact Match method for difference wave trial pairing would 'subtract out' any potential influence of decay in the trial-level difference wave, thus accounting for its effect in analyses.On the other hand, if the amplitude of the calculated difference wave systematically changes over repeated trials, it suggests that the two conditions used to calculate the difference have different decay rates (the rate of amplitude decay of Condition A across trials is different from the rate of amplitude decay of Condition B across trials).In these different decay cases, the Exact Match method does not properly account for the influence of decay in analyses and researchers still need to include trial presentation number as a variable in their models.

17As an additional complication, the Exact Match approach results in higher proportions of data loss at the trial-level and subject-level because a missing trial in either condition results in an unusable trial pair, and participants without any usable trial pairs are excluded from analysis.These issues are exacerbated by low analyzable trial counts in pediatric ERP samples.Therefore, it is possible that fewer trials and subjects included for analysis in this Exact Match approach may introduce noise and/or bias in estimating difference waves.Analysis of the Exact Match approach with different amounts of missing trials is necessary to evaluate its accuracy in LME modeling.

182. LME Nearest Neighbor.In this approach, trials are paired to their 'nearest neighbor' trial-an approach that prioritizes relevant design features while maximizing available ERP trials, see Figure 3.2.Thus, rather than matching all potential design features as in Exact Match, the maximum number of available trials are paired based on close matches.For example, a close match based on trial presentation number could result in pairing Condition A-Trial 1 with Condition B-Trial 2 if Condition B-Trial 1 is not available.Similarly, a close match based on actor could result in pairing Condition A-Actor 1-Trial 1 with Condition B-Actor 1-Trial 9.In our approach, close matches are determined by calculating an algorithmic 'distance' between trial pairs.Specifically, we use the Mahalanobis distance, which is a measure of the similarity of a trial pair's design features (presentation number, stimulus features) that accounts for their scale and correlation (Kulis, 2012).Pairs with a low Mahalanobis distance may occur closer temporally (as indexed by trial presentation number) and share similar stimulus features (e.g., have the same actor).We use a 'greedy' matching approach in which trials are paired based on their closest match without optimizing across all possible trial pairs or setting a distance threshold.An alternative method is to set a maximum distance threshold that is used to exclude trials that do not have a 'close enough' match.

19The Nearest Neighbor approach offers the advantage of retaining a greater proportion of data by using less strict matching criteria compared to Exact Match.When fitting an LME model to this dataset, we attempted to include variables that average the features of the close match for numeric predictors.For example, we included the average trial presentation number of a pair (e.g., if Condition A-Trial 1 was paired with Condition B-Trial 2, the average trial presentation number is 1.5) to account for amplitude decay.However, it is unclear if the averaged feature may effectively explain variability of the difference wave mean amplitude.In addition, categorical design features (e.g., actor, color) cannot be averaged and thus, cannot be accounted for in the LME model and may result in noisier estimates.Given these factors, it is possible that preserving more trials in the Nearest Neighbor approach may not increase statistical power because of the noise introduced when trials are paired without feature matching on all design features.An alternative is to use a hybrid Nearest Neighbor approach that prioritizes feature matching based on some, but not all, design features (e.g., Condition A-Actor 1 must be paired with Condition B-Actor 1 to ensure that variability due to actor is subtracted out).To empirically examine this issue, we conduct analyses comparing trial-level difference waves paired by Nearest Neighbor within each subject and prioritizing different feature matches: a) Nearest Neighbor using the Mahalanobis distance to find a close match based on all design features (no prioritization), see Figure 3.2A; b) Prioritizing a feature match of trial presentation number, and then using the Mahalanobis distance to find a close match for stimulus features (e.g., actor), see Figure 3.2B; and c) Prioritizing a feature match of stimulus feature (e.g., actor) and then using the Mahalanobis distance to find a close match for trial presentation number, see Figure 3.2C.

LME Random Permutation.

20In this approach, trials are paired randomly, without systematic consideration of design features (e.g., trial presentation number, stimulus features, etc.) and this process is repeated (e.g., 10,000 times, Chihara and Hesterberg, 2022), see Figure 3.3.

21The Random Permutation approach uses all data compared to Exact Match and Nearest Neighbor (where certain trials are systematically excluded).Through random permutations of data pairing, each trial has an equal probability of being paired with a trial from the other condition.While this approach results in mix-matched trials, the LME model can include averaged features of numeric predictors to account for their effect on the difference wave mean amplitude.Critically, this process is repeated over a large number of iterations, and the noise from specific random pairings should thus be reduced by averaging the model estimates across all iterations.As a result, the Random Permutation approach should result in unbiased model estimates for betweensubjects effects and continuous within-subjects effects.This approach cannot account for categorical design features, but this limitation should not bias estimates of other effects after averaging over many random iterations.Given that each iteration requires fitting a separate model, the Random Permutation approach is more computationally intensive than the other approaches and it is unclear whether there may be added benefits.

22LME Interaction.Although these trial pairings described above are a more direct comparison to conventional mean-averaged difference waves, there is an alternative approach that involves estimating the difference wave as an interaction term between the raw waveforms and a behavioral variable of interest.For example, in our simulations that follow in Section 3, we examine modulation of the Nc difference wave mean amplitude by a behavioral predictor (maternal sensitivity).We modeled this as an interaction between the emotion condition of the raw waveforms (which has 2 levels: Happy and Neutral) and maternal sensitivity (which has 2 levels: High and Low Sensitivity).This approach circumvents the issue of pairing single trials by fitting an LME model to the mean amplitude of the raw waveforms and estimating their means at different levels of emotion condition and maternal sensitivity.A significant interaction for this example would indicate that the relation between Happy and Neutral mean amplitude is different depending on the level of maternal sensitivity (e.g., an infant experiencing low maternal sensitivity has a more negative Nc mean amplitude to Neutral faces compared to Happy, and an infant experiencing high maternal sensitivity has a more negative Nc mean amplitude to Happy faces compared to Neutral, see example in Fig. 4).To estimate the mean amplitude of the Happy-minus-Neutral condition difference, the estimated mean of the Neutral condition is subtracted from the estimated mean of the Happy condition for each maternal sensitivity group.

23Interaction models offer several benefits over pairing individual ERP trials under an Exact Match, Nearest Neighbor, or Random Permutation approach.When pairing individual trials, there must be an identical number of trials in each condition and therefore some data are excluded from analyses when ERP trials post-processing are not perfectly balanced within a subject.In contrast, individual trials are not paired in an interaction so there is no data loss post-ERP processing.Raw mean amplitude data also have a higher signal-to-noise ratio than difference wave mean amplitude (Luck, 2005).These factors may lead to increased power of an LME Interaction model compared to LME models involving trial pairings.In addition, interaction models can simultaneously examine design features that modulate the raw mean amplitude and the difference wave mean amplitude within the same model.For example, an interaction model can include a trial presentation number variable to examine decay of the raw mean amplitudes and a trial presentation number by condition interaction to examine decay of the difference wave mean amplitude.This flexibility is not possible for trial-pairing LME approaches because data are analyzed at the difference wave mean amplitude level only.However, the interaction term offers a different interpretation from difference waves because they describe the relation between a variable and ERP amplitude as a function of condition (i.e., the two conditions that would form a difference wave).Given that there is no subtraction process, interaction terms do not describe variance that is specific to certain features of the ERP (e.g., variance specific to the emotion Happy that is independent of variance attributed to face processing more holistically).We examine the potential benefits of the Interaction model in our systematic evaluation of difference wave analyses.

24ANOVA.Compared to an LME framework, the standard ANOVA approach uses casewise deletion when subjects have too few trials in one or both conditions (e.g., fewer than 10 ERP trials after post-processing) and calculates a mean-averaged difference wave at the condition-level.That is, for each subject, the trial-level data are averaged for each condition.Then, the mean-averaged data for one condition (e.g., Neutral) is subtracted from the other condition (e.g., Happy) to create the difference wave.Subjects who do not meet the trial cutoff for either condition are casewise deleted and excluded from subsequent analysis.As discussed in Section 1, casewise deletion leads to high proportions of data loss and increased bias in amplitude estimates in developmental datasets.In addition, ANOVA and regression can account for only subjectlevel variables (e.g., age), and not trial-level variables that may be of theoretical interest or predict missingness.Due to these limitations, this approach is expected to return biased estimates of difference waves when data are systematically missing (as demonstrated in Heise et al., 2022).

Using simulated data to evaluate and compare approaches for difference wave analysis

25In this section, we compare several approaches to difference wave analyses detailed in Section 2 using simulated data in which the true ERP population 'mean amplitudes' are known.We simulated the Negative Central (Nc), a face-sensitive component appearing over central electrode sites approximately 300-500 ms post-stimulus onset (Quadrelli et al., 2019, Todd et al., 2008).Values for Nc waveforms were simulated based on research examining infants who passively viewed Happy and Neutral faces (Taylor-Colls and Pasco Fearon, 2015) in a similar task to our ERP experimental design (described in detail in Section 4).We also simulated an additional variable to interact with ERP amplitude in order to evaluate the LME Interaction approach.Here too, we used existing research to simulate a 'maternal sensitivity' variable examined in the same infant ERP study (Taylor-Colls and Pasco Fearon, 2015).

26Simulated Nc waveforms from the 'Happy' and 'Neutral' conditions were analyzed according to the approaches outlined in Section 2: Interaction, Exact Match, Nearest Neighbor: No Prioritization, Nearest Neighbor: Presentation Number Prioritization, Nearest Neighbor: Stimulus Feature Prioritization, Random Permutation (LME models), and ANOVA.We simulated waveforms under two types of decay rates: 'Happy' waveforms decaying faster than 'Neutral' waveforms (i.e., 'different decay') and 'Happy and 'Neutral' waveforms decaying at the same rate (i.e., 'same decay') to evaluate the impact of pairing trials with different trial presentation numbers.We also induced missing data under realistic patterns (e.g., more missing data in later trials and younger subjects) and varying low trial counts to evaluate model performance under common developmental ERP data characteristics (see Heise et al., 2022).Models were evaluated on the number of usable trials and subjects, power to detect the 'maternal sensitivity' effect, error of maternal sensitivity estimates (Root Mean Squared Error; RMSE), and bias of maternal sensitivity estimates (relative bias).

Predictions for performance across the different approaches

27We predicted that LME models with less strict trial pairing criteria should retain both more trials and more subjects, and ANOVA should retain the least number of subjects because of casewise deletion.Specifically, ordered from greatest retention of trials and subjects to least retention, we predicted that the Interaction model would retain the most trials and subjects, followed by Nearest Neighbor: No Prioritization and Random Permutation which would each have similar retention of trials and subjects, followed by Nearest Neighbor: Stimulus Feature Prioritization, then Nearest Neighbor: Presentation Number Prioritization, then Exact Match, and finally ANOVA.We predicted the same model ordering for statistical power such that models which retained more trials and subjects should have greater power.

28For RMSE and relative bias, we predicted that models that accounted for all design features by analyzing data at the raw mean amplitude level (Interaction), feature matching (Exact Match), or averaging across many iterations (Random Permutation) should perform better than models that paired trials based on close matches (Nearest Neighbor approaches) or were unable to model trial-level characteristics (ANOVA).For relative bias specifically, we predicted that ANOVA should have biased estimates when data were simulated with different decay rates and when more data were missing from later trials (Missingness Patterns #1 and #2).This pattern was expected because ANOVA cannot account for trial presentation number, which modulates the difference wave mean amplitude and predicts missing trials under these data simulation conditions.

Methods for simulating ERP data

29Data simulation and analysis scripts are available at https://github.com/basclab/LME_MixedEffectsERPDifferenceWave.

30Simulating Nc ERP.Realistic pediatric ERP waveforms were simulated using the SEREEGA toolbox (Version 1.1.0;Krol et al., 2018) for MATLAB (Version 2019a;MATLAB, 2019).The Nc dipole source was defined as the prefrontal ICA component cluster reported in Reynolds and Richards (2005).Data were simulated with the Atlas 1 (0-2 years old) lead field from the Pediatric Head Atlas (Version 1.1; Song et al., 2013).Each simulated dataset consisted of 48 simulated subjects, each with 100 trial-level Nc waveforms (i.e., 50 trials from two emotion conditions: Happy and Neutral).Waveforms were modulated based on simulated data meant to mimic relevant variables at both the subjectand trial-level: 'maternal sensitivity,' subject 'age,' subject ID number (subject-level variables); actor (5 'actors' each presented 10 times per emotion condition), trial presentation number (1-10 for each 'actor' and emotion condition, trial-level variables).For our 'maternal sensitivity' effect of interest, subjects were assigned to one of two 'caregiver' groups: 'Low maternal sensitivity' and 'High maternal sensitivity'.Each maternal sensitivity group was assigned a true population value for their difference wave mean amplitude based on existing research examining infant Nc amplitude modulations by maternal sensitivity.Following Taylor-Colls and Pasco Fearon (2015), subjects in the 'Low maternal sensitivity group' were assigned to have a Happy-minus-Neutral difference wave mean amplitude of 2 μV.Subjects in the 'High maternal sensitivity group' were assigned to have a difference of − 2 μV.

31All simulated trial-level Nc waveforms were combined with real infant EEG 'noise' to approximate realistic waveforms containing characteristics of infant neural activity.Infant EEG noise was drawn from a library of ten 4-5-month-old participants (M age = 5.12 months, SD = 0.43, 6 males, 4 females) who completed a resting state task in the laboratory.Additional details on the resting state paradigm and EEG processing are provided in Appendix A. We randomly assigned each simulated subject to one of the ten infant noise profiles, and then randomly combined the simulated waveforms with the noise epochs from the infant.We followed these simulation parameters to create 1000 datasets of simulated 'studies,' each of which consisted of 48 subjects (24 subjects in each of the maternal sensitivity groups).Additional details on simulation parameters are provided in Appendix Table B.1.

32We further repeated the process of simulating 1000 datasets for two realistic amplitude decay rates in which the raw mean amplitude habituated, or became less negative, with repeated stimulus presentations.For the 'same decay' condition, we simulated a more idealistic decay rate, in which both conditions decayed at a consistent 1.5 µV per repeated stimulus presentation (Borgström et al., 2016) and thus, the difference wave mean amplitude did not decay.In comparison, the 'different decay' condition involved a more egregious but also realistic decay pattern, in which decay rates differed across conditions (i.e., 1.5 µV for Happy and 0.5 µV for Neutral per repeated stimulus presentation).Thus, the difference wave mean amplitude became less negative with repeated stimulus presentations.These two conditions were used to examine model performance under decay rates that may be common for different ERP components.

33LME assumptions were checked for all datasets: linearity, normal distribution of residuals, and homoscedasticity.Assumptions were met in most models (linearity: 100 %, homoscedasticity: 87.8 %).Normal distribution of residuals was not met in all datasets but we moved forward with analyzing these datasets based on prior work that suggests that LME models are robust to violations of distributional assumptions (Schielzeth et al., 2020), and given that these assumptions may not be met in real datasets.

34Inducing Missingness Patterns.Each simulated dataset was examined at the 'population' level (i.e., no missing trials or subjects) and at different degrees and types of missing data.Following prior developmental ERP simulation work (Heise et al., 2022), missing trials were assigned based on trial presentation number (ranging from 1-10) and the age group in which subjects were assigned (i.e., younger or older).Specifically, as in Heise and colleagues (2022), we simulated three patterns of missing data: Missingness Pattern #1) greater missing data from both later trials in the experiment and from younger subjects, Missingness Pattern #2) greater missing data from later trials in the experiment and equally from older and younger subjects, and Missingness Pattern #3): data missing completely at random (i.e., equal numbers of missing trials across trial presentation numbers and age groups).When more data were missing from later trials, 70 % of missing data were excluded from trial presentation numbers between 6-10, and 30 % of missing data were excluded from trial presentation numbers 1-5.Similarly, when more data were missing from younger subjects, 70 % of subjects assigned to have low trial counts (i.e., fewer than 10 trials in one or both emotion conditions) were younger subjects and 30 % of subjects with low trial counts were older subjects.

35For each missingness pattern, we examined four percentages of subjects with low trial counts: 0, 6, 11, and 32 % (e.g., missing trial-level data were induced so that 32 % of subjects had fewer than 10 trials per condition in at least one emotion condition).These percentages reflected common levels of low trial counts for infant/toddlers, preschoolers, and older children based on a review of developmental ERP studies (Heise et al., 2022).Subjects with fewer than 10 trials per condition were casewise deleted prior to the ANOVA model but were included for LME models.

36Analysis Models.For each dataset and missing data pattern, 'Happy-minus-Neutral' difference waves were estimated in R (Version 3.6.1;R Core Team, 2019) for the following seven models: 1) Interaction, 2) Exact Match, 3a) Nearest Neighbor: No Prioritization, 3b) Nearest Neighbor: Presentation Number Prioritization, 3c) Nearest Neighbor: Stimulus Feature Prioritization, 4) Random Permutation, and 5) ANOVA.For the three Nearest Neighbor approaches, the MatchIt package (Version 4.5.0;Ho et al., 2011) identified trial pairs that were close matches using 'greedy matching' such that each trial pair was evaluated based on the Mahalanobis distance metric without trying to optimize across all possible trial pairs.All LME models were fit with restricted maximum likelihood using the lme4 package (Version 1.1-25; Bates et al., 2015).The ANOVA models were fit with the afex package (Version 0.28-1; Singmann et al., 2021).

37Details for each model's approach for estimating difference waves are described below.LME models are presented in mixed model format (i.e., a single equation combining the within-and between-subjects effects).

381 Ɛ ij represents the error of residuals in which error is normally distributed following N(0, σ 2 )

3a. LME Nearest Neighbor: No Prioritization (NN:N).

39Trials were paired within each subject by using the Mahalanobis distance to find a close match based on all design features.The average trial presentation number was calculated for paired trials.Eq. 2 was fit to the mean amplitude of the trial-level difference waves created by this trial pairing approach.

403b. LME Nearest Neighbor: Presentation Number Prioritization (NN:P).Trials were paired within each subject by prioritizing a feature match of presentation number (e.g., Happy-Trial 1 paired with Neutral-Trial 1), and then using the Mahalanobis distance to find a close match by stimulus features.Eq. 2 was fit to the trial-level difference wave mean amplitudes.

3c. LME Nearest Neighbor: Stimulus Feature Prioritization (NN:F).

41Trials were paired within each subject by prioritizing a feature match of stimulus features (e.g., Happy-Actor 1 paired with Neutral-Actor 1), and then using the Mahalanobis distance to find a close match for trial presentation number.The average trial presentation number was calculated for paired trials.Then, Eq. 2 was fit to the trial-level difference wave mean amplitudes.

424. LME Random Permutation.Trials were paired within each subject such that any Happy trial could be paired with any Neutral trial.The average trial presentation number was calculated for paired trials.Then, Eq. 2 was fit to the trial-level difference wave mean amplitudes.This process was repeated 10,000 times following guidelines by Chihara and Hesterberg (2022), resulting in 10,000 LME model estimates extracted from different random trial pairings for the same dataset.The final model estimates for each dataset were calculated as the average model estimates from the 10,000 iterations.

435. ANOVA.Subjects with low trial counts (fewer than 10 trials in at least one condition) were casewise deleted.For remaining subjects, subject-level ERPs were averaged across trials for each condition, and then the Happy-minus-Neutral difference wave was calculated.An ANOVA was fit in which the outcome was mean amplitude of the meanaveraged difference waves and predictors were maternal sensitivity and age.

44Model Evaluation Criteria.We first screened LME models for nonconvergence or singular fit and excluded a small subset from subsequent analysis (approximately 1-9 % of models; see Appendix Tables C.1 and D.1).To evaluate the best analysis technique for analyzing difference waves, we compared models on four criteria: 1) number of usable trials and subjects, 2) statistical power to detect the maternal sensitivity effect, 3) error of model estimates from the maternal sensitivity population value, and 4) bias of model estimates from the maternal sensitivity population value.

45The number of usable trials per subject (out of 100 trials per simulated dataset) was evaluated for LME approaches only.The number of usable subjects (out of 48 subjects per simulated dataset) was evaluated for all models.Better models retained more trials and subjects for analysis.

46Power was calculated as the number of datasets in which the model detected a significant maternal sensitivity effect divided by the total number of simulated datasets.To evaluate statistical significance for LME models, p-values of fixed effects were calculated using the Satterthwaite method for degrees of freedom with the lmerTest package (Version 3.1-3; Kuznetsova et al., 2017) and evaluated using a threshold of p ≤ .05.For the Random Permutation model only, significance of fixed effects was evaluated with non-parametric bias-corrected and accelerated 95 % confidence intervals calculated with the bca function from the coxed package (Version 0.3.3;Kropko and Harden, 2020;Harden and Kropko, 2019).A fixed effect was significant if 0 did not fall within the bootstrapped confidence interval.For the ANOVA model, p-values were calculated using a F-distribution and evaluated using a threshold of p ≤ .05.

47Error and bias were assessed based on the model's marginal means.The marginal means of the difference wave for each maternal sensitivity group were extracted using the emmeans package (Version 1.5.3;Lenth, 2021).Error was calculated as the root mean squared error (RMSE) of the model's marginal means from the population value across simulated datasets.Better models had lower RMSE values (in units of µV).Bias was calculated as the percentage difference of the model's marginal mean from the population value (relative bias, Enders et al., 2020).Average relative bias was calculated across simulated datasets, and ±10 % relative bias was acceptable based on prior literature (Enders et al., 2020, Finch et al., 1997, Kaplan, 1988).

Results from simulated data

48We analyzed data in both the 'different decay' and 'same decay' conditions, as planned.We report results from the more realistic and likely more problematic 'different decay' condition in the main text.We report results from the 'same decay' condition in Appendix D, which yielded similar patterns of results to the different decay analyses except where noted below for relative bias.

49In line with our predictions, the Interaction model retained the greatest number of trials and subjects (see Fig. 5A-B and Appendix Tables C.2-3).The ordering of models from most to least usable trials and subjects was: 1) Interaction, 2) Random Permutation and Nearest Neighbor: No Prioritization, 3) Nearest Neighbor: Stimulus Feature Prioritization, 4) Nearest Neighbor: Presentation Number Prioritization, 5) Exact Match, and 6) ANOVA.Although Exact Match retained the least number of trials and subjects compared to other LME models, it still retained more subjects than ANOVA.For example, Interaction retained all 48 subjects, Exact Match retained an average of 44 subjects [91.67 % of sample], and ANOVA retained only 32 subjects [66.67 % of sample] for Missingness Pattern #1/32 % low trial-count (see Fig. 5B).

50In terms of power to detect the maternal sensitivity effect, the Interaction and Random Permutation models performed the best in partial support of our predictions.Starting at the population level (i.e., no missing trials or subjects), Interaction had the greatest power compared to Exact Match and ANOVA (Interact: .82;Exact M and ANOVA: .57). 1 After missing data were simulated, Interaction and Random Permutation had greater power compared to all other models across all simulated conditions (Interact: .55-.65; Rand P: .77-.89; other models: .22-.42; see Appendix Table C.4).The general ordering of models from greatest to least power was: 1) Interaction and Random Permutation (statistical significance was calculated differently for each approach so we did not determine which had greater power), 2) ANOVA and Nearest Neighbor: Stimulus Feature Prioritization, 3) Nearest Neighbor: No Prioritization and Nearest Neighbor: Presentation Number Prioritization, and 4) Exact Match.As the percentage of low trial-count subjects increased from 0 % to 32 %, Interaction and Random Permutation had the smallest decrease in power while ANOVA had the greatest decrease in power.For example, the Interaction and Random Permutation models' power decreased by − .08 or less, while ANOVA's power decreased by − .16for Missingness Pattern #1.

51Next, the marginal means of each model were evaluated for error and bias.The marginal means for the High maternal sensitivity group are presented in Fig. 6 and Appendix Table C.5; the marginal means for the Low maternal sensitivity group are presented in Appendix Table C.9.The simulated population values differed between these two groups but did not impact trends in model error and bias.We summarize model results across both High and Low maternal sensitivity groups below.

52In terms of error (RMSE) from the true population value, the Interaction model performed the best, in partial support of our predictions.

53Starting at the population level, Interaction, Exact Match, and ANOVA had the same RMSE (e.g., 1.22 µV for High maternal sensitivity group).After missing data were simulated, Interaction had the lowest RMSE across all simulated conditions (see Appendix Tables C.6 and C.10).For example, Interaction had an RMSE of 1.58 µV compared to the other models whose values ranged from 1.72-3.27µV for the High maternal sensitivity group/Missingness Pattern #1/32 % low trial-count.This trend is illustrated in Fig. 6 where the Interaction model's marginal means had a smaller range of values that were clustered around the population value (indicated by the dashed line).The ordering of models from least to greatest RMSE was: 1) Interaction, 2) Random Permutation, 3) ANOVA, 4) Exact Match and Nearest Neighbor: Stimulus Feature Prioritization, 5) Nearest Neighbor: Presentation Number Prioritization, and 6) Nearest Neighbor: No Prioritization.As low trialcount subjects increased from 0 % to 32 %, Interaction had the smallest increase in RMSE while ANOVA and Nearest Neighbor: No Prioritization had the greatest increase in RMSE.For example, Interaction's RMSE increased by 0.17 µV, while ANOVA's RMSE increased by 0.32 µV and Nearest Neighbor: No Prioritization increased by 0.41 µV for the High maternal sensitivity group/Missingness Pattern #1.

54Finally, in terms of relative bias from the true population value, the Interaction, Exact Match, and Random Permutation models performed the best, in line with our predictions.Starting at the population level, Interaction, Exact Match, and ANOVA had average relative bias values within the ±10 % threshold (corresponding to the gray shaded area in Fig. 6), which suggested that all three models were, on average, unbiased when there was no missing data.After missing data were simulated, Interaction, Exact Match, and Random Permutation consistently had unbiased marginal means.Their average relative bias ranged from − 8.39-6.45% across all simulated conditions (see Appendix Tables C.7, C.11, D.7, and D.11).In contrast, ANOVA had unbiased marginal means only under two data simulation conditions: 1) different decay rate and data missing completely at random (equally across trial presentation numbers and age groups, Missingness Pattern #3, see Fig. 6C), or 2) same decay rate and all three missingness patterns (see Appendix Figure D.1).Under these conditions, ANOVA's average relative bias ranged from − 8.78-6.19%.However, for all other conditions, ANOVA's average relative bias ranged from − 22.92 % to − 8.15 %.Fig. 6A illustrates this trend where ANOVA's marginal means were shifted to be more negative than the true population value even when no subjects were casewise deleted (0 % low trial-count subjects).This negative bias was because the model could not account for later trials, which were missing at a higher percentage and had a more positive amplitude due to decay.Compared to the three best LME models (Interaction, Exact Match, Random Permutation), ANOVA was significantly more biased as indicated by paired t-tests with a Bonferroni correction of α = .001(see Appendix Tables C.8 and C.12).The Nearest Neighbor models had average relative bias values that met or exceeded ±10 % for all simulated conditions and were greater in magnitude than the other LME and ANOVA models.The magnitude of bias was greatest for Nearest Neighbor: No Prioritization (ranging from − 139.10-132.54%), followed by Nearest Neighbor: Presentation Number Prioritization (− 105.54-96.57%), and then Nearest Neighbor: Stimulus Feature Prioritization (− 72.72-65.68%).This is illustrated in Fig. 6 where Nearest Neighbor: No Prioritization's marginal means were shifted the furthest away from the true population value and Nearest Neighbor: Stimulus Feature Prioritization's marginal means were shifted the least.

Discussion of simulated ERP difference wave analyses

55Of the six LME approaches that we examined, the Interaction, Exact Match, and Random Permutation approaches accurately estimated the difference wave mean amplitude under realistic decay conditions, and variable-predicted missingness (e.g., missingness related to age).In contrast, the three LME Nearest Neighbor approaches and ANOVA had biased estimates for at least one of the decay and missing data conditions examined.We discuss the implications of each model below.

56The Interaction model was the best approach with more usable trials and subjects, greater power, lower error, and unbiased estimates.For example, the Interaction model consistently had the greatest power when no trials were missing (.82, given our sample size N = 48 and trial number N = 100) and had minimal changes in power when missing trials were induced (ranging from .55 of 32 % low trial-count subjects to .65 of 0 % low trial-count subjects).Although these estimates of power may seem low compared to anticipated power, they may have been conservative estimates based on a relatively limited sample size, small effect of 4 μV based on prior literature, and noise drawn from a real 1 At the population level, the LME Nearest Neighbor and Random Permutation models were not fit because all trials were available and data could be fit with the Exact Match pairing approach.infant sample.Follow-up simulations could examine sample and effect sizes needed to reach .80power and the impact of different realistic noise profiles.Aside from power, Interaction had minimal changes in error across all missingness patterns and percentages of low trial-count subjects, including when more trials were missing toward the end of the experiment and from younger subjects.This model fit mean amplitudes from the raw ERP waveforms, which have a higher signal-to-noise ratio compared to difference waves, and preserved more trials than LME approaches that created trial-level difference waves.These factors contributed to better performance compared to the other LME approaches and the ANOVA model.However, as discussed in Section 2.1, the Interaction model estimates did not have the same interpretation as difference waves.Namely, the model estimated the Happy-minus-Neutral 'difference wave mean amplitude' as the difference between model estimates of the Happy and Neutral condition at different levels of the behavioral predictor rather than measuring the mean amplitude from a difference wave directly.

57In terms of LME approaches that paired trials and created trial-level difference waves, two models had unbiased estimates: Exact Match and Random Permutation.For the Exact Match model, trials were paired by feature matching on all design features (e.g., trial presentation number, actor), which allowed the model to accurately isolate the effect of interest.While this approach retained fewer trials and subjects compared to the other LME approaches, it was consistently better than the ANOVA model and retained up to 12 more subjects [25 % of sample].This model also had a smaller increase in error compared to the ANOVA model as the percentage of low trial-count subjects increased.While Match had lower power (ranging from .22 at 32 % low trial-count to .57when no trials were missing in our simulations at our sample size N = 48 and trial number N = 100) relative to the other models, it may be the most generalizable method for pairing single trials and examining within-and between-subjects effects from trial-level difference waves.

58While the Random Permutation model was able to extract unbiased estimates with high power, it did not have additional benefits compared to the Interaction and Exact Match approaches.As discussed in Section 2.1, the Random Permutation returned accurate estimates of betweensubjects effects because bias from specific random trial pairings averaged out over 10,000 random permutation iterations.This approach also returned accurate estimates of trial presentation number because this within-subject variable could be estimated and averaged over a large number of iterations.However, this approach is not suitable for research questions examining categorical within-subjects effects because of the model's random trial pairing process.

59Compared to the other LME approaches, the three Nearest Neighbor models had biased estimates for all simulated conditions.These results suggest that prioritizing a feature match of some, but not all features (as in the Exact Match approach), biases models' estimates of trial-level difference waves.The Nearest Neighbor approaches also illustrated that features with greater modulation are important to match exactly.

60For example, stimulus feature modulation (ranging from 0-20 μV) resulted in greater bias when excluded from feature matching compared to trial presentation (ranging from 0-13.5 μV).Given that all Nearest Neighbor approaches were biased at all levels of missing data, we do not recommend this method of estimating trial-level difference waves.

61Finally, the traditional ANOVA model had unbiased estimates only under specific conditions of missing data.Given that the ANOVA model was unable to account for the trial-level effect of trial presentation number, it had unbiased estimates only when trial presentation number did not predict missingness or did not affect the model's estimates of the difference wave mean amplitude.In comparison, the ANOVA's estimates were negatively biased when there was a habituation (decay) effect modulating the difference wave mean amplitude and more data were missing from later trials (which had more positive amplitudes).Differing decay rates between conditions may be present for some ERP components (e.g., Volpert-Esmond et al. (2018) found different decay rates for N170 elicited by Black and White male faces), which poses a challenge for ANOVA models.Furthermore, the ANOVA's bias was present even when datasets were simulated with low levels of missing data such that no subjects were casewise deleted.In addition to biased estimates, the ANOVA model's estimates had the greatest increase in error and greatest decrease in power as the percentage of casewise deleted subjects increased.Our simulations compared LME approaches for trial pairing to an ANOVA fit to mean-averaged difference waves.Alternatively, an ANOVA could have been fit to an interaction of the mean-averaged data within each condition.However, this approach would have the same shortcomings as the ANOVA fit to mean-averaged difference waves because both approaches would average over ERP amplitude with different decay rates.In addition, ANOVA's lower power compared to LME Interaction was due to casewise deletion of participants with few usable trials, and therefore ANOVA models fit to difference waves or an interaction will have the same low power.Overall, ANOVA's ability to accurately estimate difference wave mean amplitudes is more limited than the three best LME approaches (Interaction, Exact Match, and Random Permutation).

Using real ERP data from preschool children to evaluate and compare approaches for difference wave analysis

62In this section, we examine the LME and ANOVA difference wave approaches with real ERP data from a sample of neurotypical preschool children.We extracted the Nc component elicited by emotional face stimuli from two conditions of varying intensity: Full-Intensity Angry and Reduced-Intensity Angry.The Full-minus-Reduced-Intensity Angry difference wave should reveal characteristics that are specific to a stronger intensity of an angry expression.We examined the modulation of the difference wave mean amplitude by a continuous predictor: the perceptual sensitivity subscale from the Early Childhood Behavioral Questionnaire-Short Form (ECBQ; Putnam et al., 2006Putnam et al., , 2010)).The ECBQ perceptual sensitivity subscale is a measure of children's sensitivity to low intensity environmental stimuli.Prior studies have found that perceptual sensitivity is related to neural processing of emotional faces in infants (Jessen and Grossmann, 2015), but not preschool children (Porter et al., 2021).However, the relation between perceptual sensitivity and differing intensities of an emotional face has been less explored and may reflect individual differences in processing of subtle emotional cues.We predicted that the degree of children's perceptual sensitivity is positively associated with greater differentiation between Full-Intensity and Reduced-Intensity Angry as measured through difference wave mean amplitudes.

63We compared the six LME approaches examined in the prior section (Interaction, Exact Match, three types of Nearest Neighbor, Random Permutation) to a linear regression approach (comparable to our ANOVA in the prior section).Two regression models were fit with casewise-deleted data using two common trial thresholds in developmental ERP studies (10 trials per condition and 15 trials per condition).Based on the simulation results, we predicted that the Interaction model should retain the greatest number of trials and participants in the real preschooler data.Given that the Interaction and Random Permutation models had the greatest power in the simulation results, we predicted that these models would be most likely to detect an effect of the ECBQ perceptual sensitivity subscale in our sample if one existed.If raw waveforms decayed at the same rate, we expected that the Interaction, Exact Match, Random Permutation and the two regression models would estimate similar effect sizes.If the raw waveforms decayed at different rates, we expected that the two regression models would estimate a biased effect size compared to the Interaction, Exact Match, and Random Permutation models.

Participants

64A sample of three-to five-year-old typically-developing children participated in a one-time EEG visit at a laboratory (N = 71).Children were recruited from a database of families interested in participating in research, and families were compensated for their time with a toy, a $5 giftcard, and a photo of the child wearing the EEG cap.The Institutional Review Board approved all methods and procedures used in this study, and all parents gave informed consent prior to participation.Seven children were excluded from the final sample: 6 were excluded due to technical issues and 1 due to refusal to wear the EEG cap.The final sample consisted of 64 children (25 males, 39 females, M age = 4.62 years, SD = 0.78).A full report on participant demographics including race, ethnicity, parental education, and family income, as well as a description of when data collection occurred can be found in Appendix E.

Parent-report behavioral measure

65During the visit, parents filled out the Early Childhood Behavioral Questionnaire-Short Form (ECBQ; Putnam et al., 2006Putnam et al., , 2010)).Parents answered 107 questions describing a short scenario or behavior that their child may display and responded on a 7-point Likert scale ranging from Never to Always.We analyzed the 5-item Perceptual Sensitivity subscale (e.g., 'During everyday activities, how often did your child notice changes in your appearance (such as wet hair, a hat, or jewelry)?').This subscale measures children's attention and sensitivity to changes in the environment.Scores used in analysis were the average of Likert ratings (Never = 1, Always = 7) out of completed items.There were minimal missing data (M = 4.83, SD = 0.46 items complete out of 5).

ERP faces task

66Children passively viewed human faces expressing different emotions of different intensities in a task that has been used in prior ERP research with infants and children (Bowman et al., 2022;Heise et al., 2022;Xia et al., 2024;Xie et al., 2019).Face stimuli consisted of static female faces expressing six emotions: Happy, Fearful, Angry, Neutral, as well as two reduced intensity images-Reduced-Intensity Fearful, and Reduced-Intensity Angry-achieved by morphing the neutral and emotional exemplars until final images included 40 % of the emotional expression and 60 % of the neutral expression.Face stimuli were taken from the NimStim set of emotional faces (Tottenham et al., 2009).Children viewed one of four face sets (African American actors, East Asian actors, and two sets of White actors, see Fig. 2), which each consisted of 4-5 unique faces and best matched the child's race as reported by their caregiver.Children viewed each unique face expressing each of the 6 emotions 10 times (with the exception of 20 times for one face in the African American condition), for a total trial count of 300 within the experiment.Faces were presented in a randomized order via E-Prime (Version 3.0; Psychology Software Tools, 2016) for 1000 ms, and were preceded by a fixation cross for 800-1400 ms.ERPs were time-locked to the onset of the face stimulus.The races of faces presented were constrained by those available in the NimStim emotional face data set.These stimuli are commonly used in ERP tasks in infants through adults, and this precise task with stimuli and race-matching procedure as described here has been established in published data with both infants and preschoolers (e.g., Bowman et al., 2022;Xia et al., 2024;Xie et al., 2019).

Procedure

67At the beginning of the session, children were capped with a 64-electrode montage High Precision fabric actiCAP snap cap (actiCAP snap Apparatus, 2020, Brain Products GmbH, Gilching, Germany) in which actiCAP slim electrodes were positioned in line with the 10-20 International system (actiCAP slim Apparatus 2020, Brain Products GmbH, Gilching, Germany).Data were recorded continuously during stimulus presentation with the BrainVision Recorder (Version 1.21.0303;Brain Products GmbH, Gilching, Germany) and actiCHamp (2020) amplifier (actiCHamp, Brain Products GmbH, Gilching, Germany).The majority of participants (n = 50) had data recorded bandpass filtered from 0 to 140 Hz and digitized at 500 Hz; a small subset of participants (n = 14) had data recorded bandpass filtered from 0 to 280 Hz and digitized at 1000 Hz.Data for all participants were referenced during recording to Cz.Following ERP data collection, children completed a behavioral task battery with an experimenter (not reported in this study) and parents completed a series of questionnaires.

ERP data processing

68Data were analyzed offline using the following MATLAB (Version 2019a; MATLAB, 2019) toolboxes: EEGLAB (Version 2019_0; Delorme and Makeig, 2004) and ERPLAB (Version 8.01; Lopez-Calderon and Luck, 2014).The pipeline described below is in line with the one previously reported in Heise and colleagues (2022).

69At the beginning of pre-processing, participants with a 1000 Hz sampling rate were downsampled to 500 Hz.Then, trial-level event markers were added to indicate the emotion condition, actor, and presentation number of each face presentation.Next, the continuous file was bandpass filtered with a Butterworth filter (half-amplitude cut-offs at 0.1 and 30 Hz, 12 dB/octave roll-off).After filtering, continuous artifact rejection by eye was performed to remove segments of noisy data.Noisy electrodes were identified through a combination of kurtosis values and visual inspection, and interpolated using spherical spline interpolation.An average of 0.28 electrodes were interpolated (SD = 0.70) and participants could have at most 4 interpolated electrodes [6.25 % of 64 electrodes] (see additional processing details in Supplemental Appendix IV of Xia et al., 2024).Independent components analysis (ICA) was performed on the cleaned dataset to isolate components corresponding to blink artifacts.Blink components were manually identified based on characteristics described by Debener and colleagues (2010) and removed in 95.31 % of participants.Data were re-referenced to the average of all 64 electrodes.

70Following re-referencing, data were assigned to trial-and conditionlevel bins using the ERPLAB BINLISTER function.Epochs were extracted in 1200 ms time windows, and were time-locked to face stimulus presentation.Each epoch consisted of a 200 ms pre-stimulus baseline and a 1000 ms window post-stimulus.Baseline correction was performed using the 200 ms baseline.Epochs exceeding a 100 µV sample-to-sample voltage threshold or a − 120-120 µV simple voltage threshold were removed in line with prior preschooler ERP literature (Batty and Taylor, 2006;Kungl et al., 2017, Todd et al., 2008).In terms of our two conditions of interest, participants had an average of 25.58 artifact-free trials (SD = 11.89) for the Full-Intensity Angry condition and 24.53 artifact-free trials (SD = 11.33) for the Reduced-Intensity Angry condition.There were no significant differences in the number of artifact-free trials by emotion condition, F(1,63) = 3.17, p = .080).

Nc extraction

71The Nc component was identified in the 300-500 ms window based on the grand-averaged waveform collapsed across participants and conditions.The mean amplitude was extracted from electrodes C3, Cz, and C4 based on prior literature (Dennis et al., 2009, Stahl et al., 2010, Xie et al., 2019), see further details about the inclusion of electrode information in analyses below.Difference wave mean amplitudes were calculated in the data analysis pipeline rather than during Nc extraction.

Data analysis plan

72Analysis Models.We paired and fit the trial-level Nc data for the following six LME models described in Section 2: Interaction, Exact Match, Nearest Neighbor: No Prioritization, Nearest Neighbor: Presentation Number Prioritization, Nearest Neighbor: Stimulus Feature Prioritization, and Random Permutation.LME models were fit with restricted maximum likelihood in R using packages described in Section 3.2.Mirroring our simulation analyses, trial presentation number in all models corresponded to the order in which a randomized trial was presented within each condition with a specific stimulus feature (i.e., each unique stimulus for an emotion condition and actor).Compared to our simulation analyses, this real dataset included multiple electrodes (C3, Cz, C4).Thus, electrode represented an important additional variable to represent in the models because there may be differences in mean amplitude due to hemisphere lateralization (e.g., greater Nc negative amplitude in the right hemisphere, Quadrelli et al., 2019;Peltola et al., 2009).There were complete data from all electrodes of interest due to interpolation in pre-processing, enabling trial-pairings to be matched within electrode.Thus, for LME models that used trial-pairing approaches, we feature matched based on electrode and thus subtracted out electrode variability and removed the need to include it as a separate variable in these models.For the LME Interaction model, electrode was included as a fixed effect.For linear regression models, data were averaged across the electrodes of interest as is common practice (Grossmann et al., 2011;van den Boomen et al. 2019) and fit using the lm function in the base R package.All LME and regression models met assumptions of linearity, normal distribution of residuals, and homoscedasticity.The analysis script is available at https://github.com/basclab/LME_MixedEffectsERPDifferenceWave.

731. LME Interaction.An LME was fit in which the outcome was raw mean amplitude, and predictors consisted of fixed main effects of emotion condition, ECBQ perceptual sensitivity subscale, presentation number, and electrode; fixed interactions of emotion condition by ECBQ perceptual sensitivity subscale, and emotion condition by presentation number; and random intercepts of subject and actor.See Appendix Equation E.1 for the Interaction model equation.Example raw trial-level waveforms are displayed in Fig. 7A.Electrode was included as a fixed effect because there were insufficient electrodes (only three) to fit a random effect (Volpert-Esmond et al., 2021 recommend at least 5 levels to fit a random effect).

742. LME Exact Match.Trials were paired within each participant and electrode if they matched on trial presentation number and actor.Example trial-level waveforms that have been paired using Exact Match are presented in Fig. 7B.An LME was fit in which the outcome was mean amplitude of the trial-level difference waves; fixed effect predictors were ECBQ perceptual sensitivity subscale and presentation number; and a random intercept of subject, see Appendix Equation E.2.

3a. LME Nearest Neighbor: No Prioritization (NN:N).

75Trials were paired within each participant and electrode by using the Mahalanobis distance to find a close match based on presentation number and actor.The average trial presentation number was calculated for paired trials.Appendix Equation E.2 was fit to the trial-level difference wave mean amplitudes.

3b. LME Nearest Neighbor: Presentation Number Prioritization (NN:P).

76Trials were paired within each participant and electrode by prioritizing a feature match of presentation number, and then using the Mahalanobis distance to find a close match for actor.Appendix Equation E.2 was fit to the trial-level difference wave mean amplitudes.

3c. LME Nearest Neighbor: Stimulus Feature Prioritization (NN:F).

77Trials were paired within each participant and electrode by prioritizing a feature match of actor, and then using the Mahalanobis distance to find 4. LME Random Permutation.Trials were paired within each participant and electrode such that any Full-Intensity Angry trial could be paired with any Reduced-Intensity Angry trial.The average trial presentation number was calculated for paired trials.Then Appendix Equation E.2 was fit to the trial-level difference wave mean amplitudes.This process was repeated 10,000 times and final model estimates were calculated by averaging across the 10,000 iterations.

785a. 10-Trial Regression.Participants with fewer than 10 trials in at least one condition were casewise deleted.For remaining participants, participant-level ERPs were averaged across trials and electrodes for each condition, and then the Full-minus-Reduced-Intensity Angry difference wave was calculated (see Fig. 8A for grand-mean averaged waveform).A linear regression was fit in which the outcome was mean amplitude of the mean-averaged difference waves and the predictor was ECBQ perceptual sensitivity subscale.

795b. 15-Trial Regression.Participants with fewer than 15 trials in at least one condition were casewise deleted.As in the 10-Trial Regression model, participant-level ERPs were averaged, and the Full-minus-Reduced-Intensity Angry difference wave was calculated (see Fig. 8B for grand-mean averaged waveform).A linear regression was fit in which the outcome was mean amplitude of the mean-averaged difference waves and the predictor was ECBQ perceptual sensitivity subscale.

80Model Evaluation Criteria.For all models, we extracted the number of usable trials and participants.In addition, we extracted estimates of the ECBQ perceptual sensitivity effect on the difference wave mean amplitude using the emtrends function from the emmeans package (Lenth, 2021).To calculate the significance of the ECBQ perceptual sensitivity estimate, we reported p-values calculated with Satterthwaite approximation for all LME approaches aside from Random Permutation.For the Random Permutation model, we calculated bias-corrected and accelerated 95 % confidence intervals and examined whether it contained 0. For the regression models, we reported p-values calculated using a t-distribution.We additionally examined the LME models' presentation number effect to determine if the Nc component decay rate differed between the Full-Intensity and Reduced-Intensity Angry conditions.

Results from real child ERP data

81Mirroring the simulation results, the Interaction model retained the greatest number of trials compared to the other LME approaches (see Fig. 9 and Appendix Table E.1 Three models detected a significant positive effect of ECBQ perceptual sensitivity on the Nc Full-minus-Reduced-Intensity Angry difference wave mean amplitude: LME Interaction, Exact Match, and Random Permutation (see Fig. 10).The magnitude of the effect varied from approximately 0.60 for the Interaction and Random Permutation models to 0.95 for the Exact Match model (see full model output in Appendix Tables E.2-4).The three Nearest Neighbor models and the two regression models did not detect a significant effect (ps > .05).In followup analyses, we examined if there was a same or different decay rate for the two emotion conditions.We focused on the LME Interaction and Exact Match models given that they had unbiased model estimates for the simulated data in Section 3.There was no significant different decay rate for either LME model as indicated by the null effect of presentation number by emotion (ps > .05).There was also no significant equivalence with a bound of [-0.1, 0.1] as calculated using the contest1D function from the lmerTest package.These results suggest that there may have been a difference in the decay rate across the two conditions that was not statistically detectable.

Discussion of real child ERP difference wave analyses

82In our analysis of real preschooler ERP data, three LME approaches-Interaction, Exact Match, and Random Permutation-detected a significant effect of perceptual sensitivity on the Nc Full-minus-Reduced-Intensity Angry difference wave mean amplitude.These results suggest that children who were more attuned to low intensity environmental stimuli, as assessed with a parent-report measure, showed patterns of neural activity that better differentiated between different intensities of anger expressions.This finding complements a prior study that also found a relation between perceptual sensitivity and Nc difference waves to other emotional expressions (i.e., happy and fearful, Jessen and Grossmann, 2015).While the population effect was not known in the preschooler dataset, Interaction, Exact Match, and Random Permutation models were expected to have minimal bias based on our data simulations and all detected an effect in our real Nc analysis.Although the three models returned slightly different parameter estimates of the perceptual sensitivity effect, the differences in their point estimates were minimal (≤0.35 µV) and their 95 % confidence intervals overlapped.However, similar to our discussion in Section 3, the interpretation of the Interaction model differs from the interpretation of the Exact Match and Random Permutation models.For Exact Match and Random Permutation models, results suggest that ERP amplitude unique to processing Full-Intensity Angry emotion faces after accounting for amplitude elicited by Reduced-Intensity Angry emotion faces is associated with children's perceptual sensitivity.In contrast, the Interaction model would be interpreted as showing that the relation between perceptual sensitivity and Nc mean amplitude is different for Full-Intensity and Reduced-Intensity Angry, and that a combination of the child's neural response to Full-Intensity and Reduced-Intensity Angry emotions and perceptual sensitivity predict the ERP.Depending on the research question of interest, one type of interpretation may be more suitable and guide the LME approach selection.

83Simulation results suggested that the Interaction and Random Permutation models achieve the highest power compared to the other approaches.In our analysis of the preschooler Nc difference wave, we detected a significant effect in these two models as well as Exact Match.We did not conduct a post-hoc power analysis (Zhang et al., 2019) but believe that LME analyses of the preschooler Nc may have been better-powered due to the greater number of preschool participants (62-64) compared to our simulations (48 simulated subjects).The reported effect sizes (i.e., unstandardized beta coefficients), sample size, and trial counts are reported for each model in Appendix Tables E.1-4 and can be used in power analyses in future research.For example, our Interaction model detected an effect size of approximately 0.60 μV in our sample of 64 participants, each of whom contributed on average about 25 trials per condition.These values may be used in power simulations (Kumle et al., 2021) to inform study planning and further examination of the relation between perceptual sensitivity and the Nc.

84We also examined whether the rate of habituation or decay to repeated stimulus presentations was the same or different between Full-Intensity and Reduced-Intensity Angry.Our results suggested that there may have been a different decay rate that we could not statistically detect.Although we could not conclude if there was a different decay rate for the Nc difference wave, the Interaction model found a significant decay rate for the raw Nc amplitude (β = 0.46, SE = 0.07, p < .001), in line with prior Nc studies (Borgström et al., 2016;Junge et al., 2012).There are no prior studies, to our knowledge, that have examined decay rates of Nc difference wave mean amplitudes.Future work is needed to examine whether the Nc mean amplitude may have different decay rates for different types of stimuli.This work would help determine whether the results from the same or different decay conditions in Section 3 are more applicable to Nc difference wave analysis.

85Compared to the three best LME models (Interaction, Exact Match, and Random Permutation), neither Nearest Neighbor nor linear regression detected a statistically significant effect of perceptual sensitivity on the Nc difference wave.The lack of a significant effect may have been due to lower power in Nearest Neighbor models (following our simulation results, Section 3) and systematic noise induced by not feature matching on all study design features.Given that the true population value was unknown in our real data, it was not possible to determine if Nearest Neighbor: Stimulus Feature Prioritization may have been less biased in the current dataset, as we found in simulations.Additional studies are needed to examine the relation between perceptual sensitivity and Nc difference wave mean amplitudes and determine what magnitudes may represent significant bias.For the regression models, we expected that model estimates would be unbiased when the decay rate was the same across conditions.Although we could not confirm if the real preschooler data exhibited a same or different decay rate, the regression model estimates did not appear biased because parameter estimates were similar in magnitude to the LME models.However, the regression models did not detect a significant effect of perceptual sensitivity, likely due to decreased power from casewise deletion of participants (89.06 % of participants retained for the 10-Trial Regression, and 73.44 % of participants retained for the 15-Trial Regression).Thus, these results from our real preschooler data highlight the limitations of traditional ANOVA/regression approaches compared to LME approaches for difference wave mean amplitude analysis.

General discussion of applying LMEs to ERP difference waves

86As evidenced in both simulations and analysis of real preschooler ERPs, the LME framework had multiple advantages over the standard ANOVA/regression approach for analyzing ERP difference wave mean amplitudes.In simulations, ANOVA resulted in biased difference wave estimates when ERP data had different decay rates and reduced statistical power when more subjects had few trials.Further, ANOVA did not detect any significant effect in our real preschooler data.In contrast, in simulations, the LME Interaction and Exact Match approaches had unbiased estimates and minimal changes in statistical power when more subjects had few trials.And in real ERP data, these same LME Interaction and Exact Match models detected a significant effect.Based on these results across simulated and real data sets, we endorse the use of both the LME Interaction and Exact Match approaches to ERP difference wave mean amplitude analyses, and encourage researchers to adopt them over standard ANOVA and linear regression approaches.As additional examples, the Interaction approach has been used for analysis of trial-level N170 and ERN waves (Volpert-Esmond et al., 2018) and our Exact Match approach has been used for trial-level Nc, N170, and MMN difference waves (Mon et al., 2024;Xia et al., 2024).

87When choosing between an LME Interaction and an Exact Match approach, researchers should consider their research question and theoretical motivations.ERP components that can be identified from raw waveforms (e.g., Nc) can be analyzed with either an Interaction or Exact Match approach.The Interaction approach offers greater power by analyzing raw mean amplitude data (which have a greater signal-tonoise ratio than difference wave mean amplitudes) and retaining more usable trials and subjects.These models facilitate a more comprehensive examination of variables that modulate the raw mean amplitude and those that modulate the difference wave mean amplitude.However, this approach requires examining mean amplitude changes as a function of stimulus condition and a second predictor (e.g., maternal sensitivity, trial presentation number, age), which results in a different interpretation than difference waves.In contrast, an Exact Match approach requires feature matching based on all design features, which allows researchers to 'subtract-out' variability that is related to nuisance features and build simpler analysis models.If an Exact Match approach is used, we recommend conducting a power analysis accounting for realistic data collection conditions (e.g., the number of trials that children may contribute after accounting for trial loss due to EEG artifacts, equipment failure and non-compliance).There are several resources available for conducting power analyses for LMEs, including modification of our own simulation scripts available on GitHub (https://github.com/basclab/LME_MixedEffectsERPTutorial, https://github.com/basclab/LME_MixedEffectsERPDifferenceWave), LME simulation resources by DeBruine and Barr (2021) and Kumle and colleagues (2021), and other tutorials (Cox, 2024: https://4ccoxau.github.io/PowerAnalysisWorkshopManyBabies/). Some ERP components are only visually observable through subtracting two conditions, such as subtracting the average of frequently presented trials from the average of infrequent or 'deviant' trials (i.e., MMN).For components not present in the raw waveforms (e.g., MMN,N2pc), the appropriate analysis model may depend on how the component is extracted.Components that involve the subtraction of waveforms recorded from the same electrode site (e.g., MMN) may be analyzed similarly to components present in the raw waveform.As a result, they may experience similar benefits with each analysis approach described above.In contrast, open questions remain about which analysis model may be appropriate for components that are revealed through the subtraction of waveforms from different electrode sites (e.g., N2pc is calculated as the difference between contralateral and ipsilateral sites).Including predictors for both electrode and contralaterality results in increased likelihood of collinearity, in which two predictors explain similar variance in mean amplitude.One possible solution for an Interaction approach could be to restrict the number of electrodes considered (e.g., TP7, TP8, P7, P8), and include contralaterality (e.g., contralateral vs. ipsilateral) and caudality (e.g., temporo-parietal vs. parietal regions) as predictors.However, this approach may result in model misspecification through omitting electrode as a predictor (Barr et al., 2013).An Exact Match model may face similar difficulties because noise is introduced when trial-level difference waves are created from different electrodes.Future studies are needed to systematically examine the impact of electrode variability for N2pc and similar components using Interaction and Exact Match approaches.

88We additionally examined the LME Random Permutation and Nearest Neighbor approaches.While the Random Permutation had unbiased model estimates and high power, it had greater computational demands compared to the other approaches.Using 1 core of a desktop computer (Intel Core i9-9900 CPU, 32 GB RAM), the Random Permutation approach took 60 min to complete 10,000 iterations for our real preschooler dataset (64 participants and 9621 total trials).In contrast, each of the other approaches took less than 3 s to complete.These computational demands would be especially impactful for larger datasets, such as those from multi-site studies.The Random Permutation approach is also limited to estimation of between-subjects or continuous within-subjects predictors and is not appropriate for estimating the effect of categorical variables, including design features (e.g., actor, color) or within-subjects predictors (e.g., 'correct' and 'incorrect' behavioral responses collected during each trial) which cannot be accounted for in a random trial pairing.We therefore do not recommend the Random Permutation approach when an Interaction or Exact Match approach can be applied instead.We also do not recommend the Nearest Neighbor approach, which had biased model estimates in simulated data and did not detect any significant effect in our real dataset.Our investigation of this Nearest Neighbor approach highlights the importance of correct model specification, such as including all variables that modulate ERP amplitude in analyses.Specifically, our Nearest Neighbor models did not feature match based on all design features, and all three of these models returned biased results in the simulated data analyses.While we focused on one specific implementation of the Nearest Neighbor using the Mahalanobis distance, it is likely that other implementations may be similarly biased because of their use of close, but not exact, matches.It is also likely that any models that do not account for variables that similarly affect a dependent variable of interest would be similarly biased.This finding has implications for model misspecification for LMEs of mean amplitude broadly, and for difference wave analyses specifically.That is, we were able to clearly show that not accounting for a variable that modulates mean amplitude results in biased estimates of ERP effects (see LeBeau et al., 2018 for meta-analysis on model misspecification in LME).

89These difference wave analysis recommendations have implications for analyses that extend the LME framework, such as mixed-effects location scale models (MELSMs).MELSMs are a trial-level analytic framework that can examine predictors of ERP mean amplitude (similar to LMEs), as well as predictors of trial-by-trial ERP variability (e.g., the extent that the mean amplitude fluctuates across trials).Trial-by-trial variability has been suggested to index perception and learning and found to differ in developmental and clinical groups (Garrett et al., 2013;Pinneo, 1966).MELSMs are recommended over LMEs when trial-by-trial variability differs across participants or conditions in a dataset (for further discussion, see Hoffman and Walters, 2022).In addition, MELSMs can be used to address research questions such as whether trial-by-trial variability differs by stimulus condition, decreases with age, or changes over the course of the experiment (Clayson et al., 2022;Mon et al., 2024).When analyzing difference waves, MELSMs face similar issues as LMEs, including decisions about how to pair data and assumptions that data are missing at random, given that they both fit trial-level data.However, MELSMs face an additional complication because trial-by-trial variability estimates are especially sensitive to measurement noise and data quality (e.g., changes in electrode impedance), which if not controlled or accounted for may be mistakenly interpreted as variability in the neural signal (Dinstein et al., 2015).An Interaction approach may be beneficial because it analyzes raw mean amplitudes, which have a greater signal-to-noise ratio, and can account for predictors of variability for both the raw mean amplitude and the difference wave mean amplitude.In contrast, an Exact Match approach may introduce noise if the variability related to design features is not 'subtracted out' when trial-level difference waves are created.We have previously shown the utility of Exact Match for analyzing trial-level MMN difference waves in an MELSM (Mon et al., 2024).Future studies are needed to compare the Interaction and Exact Match approaches in an MELSM framework and determine the impact of data quality on trial-by-trial variability estimates.

90Although our examination of difference wave analyses focused on trial pairing within two conditions of interest (e.g., Happy and Neutral in simulated data), these approaches are applicable to broader experiment designs.For designs with more than two conditions, trial-pairing approaches can be used for each grouping of two conditions (e.g., Happy and Neutral; Fearful and Neutral; Angry and Neutral).The resulting difference wave mean amplitudes can then be analyzed in one model with the difference wave type as a predictor.We have previously applied this type of model to examine how perception of emotional expressions (e.g., Happy-minus-Neutral, Fearful-minus-Neutral, Angry-minus-Neutral) is related to a parental emotionality variable (Xia et al., 2024).An Interaction approach can also be used to analyze this design via contrast coding in which a reference level (e.g., Neutral) is compared to all other conditions (Schad et al., 2020).There are also additional considerations for designs with a large imbalance in the number of trials per condition, such as auditory oddball tasks in which deviant trials may occur for only 10-15 % of trials.An Exact Match approach in which trials are paired based on each condition's trial presentation number may result in the inclusion of more standard trials from the beginning of the experiment compared to deviant trials.A more common approach would be to use Exact Match to pair deviant trials with the standard trials immediately preceding the deviants to better account for temporal closeness and other features that may modulate ERP amplitude (Bishop and Hardiman, 2010;Mon et al., 2024).Open questions remain about how to apply an Interaction approach to these types of unbalanced data.Future simulations may examine whether it may be beneficial to subsample trials prior to model fitting, or whether all trials can be included in analyses with an additional time variable for block number (e.g., all standard trials preceding a deviant could be in one block).

91In summary, our work here extends the utility of LMEs for analyzing ERPs by demonstrating that LMEs can indeed be applied to trial-level difference waves.Specifically, we identified two LME difference wave analysis approaches-Interaction and Exact Match-that accurately identified model estimates across a range of developmental ERP conditions (e.g., high proportions of missing data), isolated understudied trial-level ERP processes (e.g., habituation/decay of the difference wave mean amplitude), and accounted for trial-level predictors of missingness.These approaches are also broadly applicable to difference wave analysis beyond early development, including in adolescent, adult, and aging populations, and in clinical samples, which may be impacted by motivation to complete the experiment, time constraints on task duration, and challenges with sitting for long periods.Thus, we recommend the application of the LME Interaction and Exact Match approaches to real ERP data in future research, given clear demonstrated advantages over standard ERP mean amplitude difference wave analysis with ANOVA and linear regression.

Conclusion

92The present study utilizes a series of simulations and an analysis of real preschooler ERP data to demonstrate the broad utility of LMEs across varied ERP experimental designs and research questions.We expand upon prior work illustrating the utility of LMEs to mean amplitude by demonstrating novel analysis approaches that result in unbiased estimates of difference wave mean amplitude.Simulation results supported the use of an interaction term between two conditions or 'Exact Match' in which trial-level difference waves are created from trials paired on all design features (e.g., trial presentation number, actor).We then illustrated how these approaches can be used to examine brainbehavior relations in a real preschooler dataset.Finally, we provide recommendations for selecting a difference wave approach and taking advantage of the flexibility of the LME framework.

Fig. 1 .

93Fig. 1.Simulated Negative Central Difference Wave.Subtracting the mean amplitude of the ERP elicited to a neutral face (center) from the ERP to a happy face (left) reveals the ERP difference wave (right).The difference wave reveals the voltage changes that are specific to processing a happy face that are different from voltage changes specific to processing a neutral face, with the overlap in voltage across the two conditions subtracted out.The 300-500 ms time window of the Negative Central is shaded (in gray for the raw waveforms, and in red for the difference waveform).

Fig. 2 .

94Fig. 2. Schematic of ERP Face Task.ERP experimental design illustrating inter-trial interval and stimulus duration (A) and examples of emotion conditions (B).Reduced-intensity emotion conditions were created by morphing the full-intensity emotion with neutral until the image was 60 % neutral and 40 % emotion.Actors were grouped into different face sets shown to different participants across the sample (C).

Fig. 3 .

95Fig. 3. Schematic of Trial-Level Difference Wave Pairing Approaches.Exact Match, three types of Nearest Neighbor, and Random Permutation Pairing are used to create trial-level pairings between Condition A (e.g., Neutral) and Condition B (e.g., Happy) for subsequent statistical analyses.Trial-level difference waves are created by subtracting one paired trial from the other trial (e.g., Neutral trial subtracted from Happy trial).Trials presented in light gray represent data loss due to an artifact, and these trials cannot be paired in analyses.

Fig. 4 .

96Fig. 4. Simulated Example of Interaction Between Maternal Sensitivity and ERP Mean Amplitude.Scatterplot of simulated ERP mean amplitude (also referred to as 'raw mean amplitude' in text) for two subjects.The simulated data depicts an interaction between emotion condition and maternal sensitivity: An infant experiencing low maternal sensitivity shows more negative mean amplitude to a Neutral face compared to a Happy face, and an infant experiencing high maternal sensitivity shows more negative mean amplitude to a Happy face compared to a Neutral face.

97M.J.Heise et al.Developmental Cognitive Neuroscience 76 (2025) 101614

Fig. 5 .

98Fig. 5. Usable Trials and Subjects Across Difference Wave Approaches for Simulated Data.Values were averaged over 1000 simulated datasets in which each dataset was systematically varied such that: no trials were removed (Population), all subjects were assigned to have 10 or more trials (0 % Low Trial-Count), and the percentage of low trial-count subjects represented the average percentage of casewise deletion in typical age groups (e.g., older children, 6 %; preschoolers, 11 %; infants/toddlers, 32 %).Abbreviated approaches were NN:N-Nearest Neighbor: No Prioritization, NN:P-Nearest Neighbor: Presentation Number Prioritization, and NN:F-Nearest Neighbor: Stimulus Feature Prioritization.The percentage of usable trials per subject (out of 100 trials per subject) was presented for LME approaches only (A); the percentage of usable subjects (out of 48 subjects) was presented for all models (B).Error bars represent ±1 standard deviation.Values were presented for the different decay/Missingness Pattern #1 (more missing data in later trials and in younger subjects) for brevity; similar trends were found for other simulated conditions (see Appendix Tables C.2-3 and D.2-3).Parallel figures reporting number of trials and subjects (instead of percentages) are reported in Appendix Figure F.1.

Fig. 6 .

99Fig. 6.Marginal Means of Happy-minus-Neutral Difference Wave Mean Amplitude Extracted for High Maternal Sensitivity Group for Simulations With Different Decay.Values were extracted for 1000 simulated datasets from the different decay condition in which each dataset was systematically varied such that: no trials were removed (Population), all subjects were assigned to have 10 or more trials (0 % Low Trial-Count), and the percentage of low trial-count subjects represented the average percentage of casewise deletion in infants/toddlers (32 % Low Trial-Count).Additional percentages of low trial-count subjects corresponding to older children and preschoolers are presented in Appendix Figure C.1.Abbreviated approaches were NN:N-Nearest Neighbor: No Prioritization, NN:P-Nearest Neighbor: Presentation Number Prioritization, and NN:F-Nearest Neighbor: Stimulus Feature Prioritization.The population parameter of the High maternal sensitivity group (averaged over age and presentation number) is indicated by the dashed line at 2.5 μV.The gray shaded area indicates an acceptable relative bias threshold of ±10 %.Marginal means were extracted from each of the three patterns of missingness.For Missingness Pattern #3, missing trials were uniformly drawn from early and late trials and older and younger children.For the Random Permutation approach, estimates from all 10,000 iterations of each sample were plotted to illustrate estimate variability.

Fig. 7 .

100Fig. 7. Trial-Level Nc Full-minus-Reduced-Intensity Angry Difference Wave and Constituent Waveforms for an Exemplar Participant From Real Preschooler Data.Trial-level waveforms from one preschool participant are presented for the raw emotion conditions (A, top) and the difference wave calculated with Exact Match pairing (B, bottom) for electrode C4 from the Nc cluster of interest (C3, Cz, C4).The Nc component was extracted from the 300-500 ms time window.

Fig. 8 .

101Fig. 8. Grand-Mean Averaged Nc Full-minus-Reduced-Intensity Angry Difference Wave and Constituent Waveforms From Real Preschooler Data.Waveforms included preschoolers with at least 10 trials per condition (n = 57, A, top) and at least 15 trials per condition (n = 47, B, bottom).Waveforms were collapsed across electrodes of interest (C3, Cz, C4).The Nc component was extracted from the 300-500 ms time window.

102Fig. 9. Usable Trials and Participants Across Difference Wave Approaches for Real Preschooler Data.Abbreviated approaches were NN:N-Nearest Neighbor: No Prioritization, NN:P-Nearest Neighbor: Presentation Number Prioritization, and NN:F-Nearest Neighbor: Stimulus Feature Prioritization.The percentage of usable trials per participant (out of 300 trials per participant across three electrodes) was presented for LME approaches only (A); the percentage of usable participants (out of 64 participants) was presented for all models (B).Parallel figures reporting number of trials and participants (instead of percentages) are reported in Appendix Figure F.2.

Fig. 10 .

103Fig. 10.Estimated ECBQ Perceptual Sensitivity Effect on Nc Full-minus-Reduced-Intensity Angry Difference Wave Mean Amplitude for Real Preschooler Data.Estimated effect was extracted for six LME models and two regression models with varying casewise deletion threshold levels (10 trials per condition and 15 trials per condition).Error bars indicate 95 % confidence intervals; star represents p ≤ .05; the dashed line indicates an effect of 0 μV.Abbreviated approaches were NN: N-Nearest Neighbor: No Prioritization, NN:P-Nearest Neighbor: Presentation Number Prioritization, and NN:F-Nearest Neighbor: Stimulus Feature Prioritization.For the Random Permutation approach, a violin plot of the estimates from all 10,000 iterations was included to illustrate model estimate variability.Model estimates are presented in Appendix Table E.1.

104Conceptualization, Methodology, Investigation, Data curation, Project administration, Writingoriginal draft, Writingreview & editing.Serena K. Mon: Conceptualization, Methodology, Data curation, Formal analysis, Software, Writingoriginal draft, Writingreview & editing.Lindsay C. Bowman: Methodology, Resources, Writingreview & editing, Supervision.

105. LME Interaction.An LME was fit in which the outcome was raw mean amplitude, and predictors consisted of fixed main effects of emotion condition, maternal sensitivity, age, and presentation number; fixed interactions of emotion condition by sensitivity, emotion condition by age, and emotion condition by presentation number; and random intercepts of subject and actor, see Eq. 1.MeanAmplitude ij = γ 00 + γ 01 MaternalSensitivity j + γ 02 Age j + γ 10 Emotion ij + γ 20 PresentationNumber ij + (γ 11 MaternalSensitivity j + γ 12 Age j + γ 21 PresentationNumber ij )Emotion ij + u 0j + v 0a + Ɛ ij (1)γ 00 represents the grand-mean intercept across the sample γ 01 represents the coefficient of the fixed effect of Maternal Sensitivity γ 02 represents the coefficient of the fixed effect of Age γ 10 represents the coefficient of the fixed effect of Emotion γ 20 represents the coefficient of the fixed effect of Presentation Number γ 11 represents the coefficient of the fixed interaction between Emotion and Maternal Sensitivity γ 12 represents the coefficient of the fixed interaction between Emotion and Age γ 21 represents the coefficient of the fixed interaction between Emotion and Presentation Number Trials were paired within each subject if they matched on trial presentation number and stimulus features (e.g., actor expressing the emotion).An LME was fit in which the outcome was mean amplitude of the trial-level difference waves; fixed effect predictors were maternal sensitivity, age, and presentation number; and a random intercept of subject, see Eq. 2.TrialLevelDifferenceWaveMeanAmplitude ij = γ 00 + γ 01 MaternalSensitivity j + γ 02 Age j + γ 10 PresentationNumber ij + u 0j

106i represents trial-level estimates j represents subject-level estimates u represents Subject-level deviation from the grand mean (i.e., random intercept for Subject)v represents Actor-level deviation from the grand mean (i.e., random intercept for Actor)Ɛ ij represents the error of residuals in which error is normally distributed following N(0, σ 2 )2.LME Exact Match.

참고문헌 76건

  1. Mathematical Statistics with Resampling and R 2018 10.1002/9781119505969
  2. An Introduction to the Event-Related Potential Technique 2005
  3. Neural variability: friend or foe? Trends in Cognitive Sciences · Elsevier BV · 2015 10.1016/j.tics.2015.04.005
  4. Fitting Linear Mixed-Effects Models Using <b>lme4</b> Journal of Statistical Software · Foundation for Open Access Statistics · 2015 10.18637/jss.v067.i01
  5. Model averaging, missing data and multiple imputation: a case study for behavioural ecology Behavioral Ecology and Sociobiology · Springer Science+Business Media · 2010 10.1007/s00265-010-1044-7
  6. Eye contact and emotional face processing in 6-month-old infants: Advanced statistical methods applied to event-related potentials Brain and Development · Elsevier BV · 2009 10.1016/j.braindev.2009.04.001
  7. Missing data techniques for multilevel data: implications of model misspecification Journal of Applied Statistics · Taylor & Francis · 2010 10.1080/02664763.2010.529882
  8. Event-Related Potentials to Emotional Stimuli in Migrainous Children Journal of Child Neurology · SAGE Publishing · 2011 10.1177/0883073811408905
  9. The mismatch negativity (MMN) in basic research of central auditory processing: A review Clinical Neurophysiology · Elsevier BV · 2007 10.1016/j.clinph.2007.04.026
  10. A developmental investigation of ERP auditory rhyming effects Developmental Science · Wiley · 2002 10.1111/1467-7687.00241
  11. Maternal personality and infants’ neural and visual responsivity to facial expressions of emotion Journal of Child Psychology and Psychiatry · Wiley · 2004 10.1111/j.1469-7610.2004.00320.x
  12. Early adverse experiences and the neurobiology of facial emotion processing. Developmental Psychology · American Psychological Association · 2009 10.1037/a0014035
  13. Neural signatures of conscious and unconscious emotional face processing in human infants Cortex · Elsevier BV · 2014 10.1016/j.cortex.2014.11.007
  14. Measurement of mismatch negativity in individuals: A study using single-trial analysis Psychophysiology · Wiley · 2010 10.1111/j.1469-8986.2009.00970.x
  15. On noise in the nervous system. Psychological Review · American Psychological Association · 1966 10.1037/h0023240
  16. Human Behavior and the Developing Brain American Journal of Psychiatry · American Psychiatric Association · 1995 10.1176/ajp.152.4.637-a
  17. The Impact of Specification Error on the Estimation, Testing, and Improvement of Structural Equation Models Multivariate Behavioral Research · Taylor & Francis · 1988 10.1207/s15327906mbr2301_4
  18. Emotional Face Processing and Emotion Regulation in Children: An ERP Study Developmental Neuropsychology · Taylor & Francis · 2009 10.1080/87565640802564887
  19. Spatial filtering during visual search: Evidence from human electrophysiology. Journal of Experimental Psychology Human Perception & Performance · American Psychological Association · 1994 10.1037/0096-1523.20.5.1000
  20. Effects of sample size and nonnormality on the estimation of mediated effects in latent variable models Structural Equation Modeling A Multidisciplinary Journal · Taylor & Francis · 1997 10.1080/10705519709540063
  21. Measurement of fine-grained aspects of toddler temperament: The Early Childhood Behavior Questionnaire Infant Behavior and Development · Elsevier BV · 2006 10.1016/j.infbeh.2006.01.004
  22. An introduction to modern missing data analyses Journal of School Psychology · Elsevier BV · 2009 10.1016/j.jsp.2009.10.001
  23. The Effects of Parental Behavior on Infants' Neural Processing of Emotion Expressions Child Development · Wiley · 2015 10.1111/cdev.12348
  24. Event-Related Brain Potentials to Human Faces in Infants Child Development · Wiley · 1981 1023071129080
  25. The NimStim set of facial expressions: Judgments from untrained research participants Psychiatry Research · Elsevier BV · 2009 10.1016/j.psychres.2008.05.006
  26. Age‐related differences in neural correlates of face recognition during the toddler and preschool years Developmental Psychobiology · Wiley · 2003 10.1002/dev.10078
  27. Electrophysiological evidence of early word learning Neuropsychologia · Elsevier BV · 2012 10.1016/j.neuropsychologia.2012.10.012
  28. Familiarization, Attention, and Recognition Memory in Infancy: An Event-Related Potential and Cortical Source Localization Study. Developmental Psychology · American Psychological Association · 2005 10.1037/0012-1649.41.4.598
  29. The development of emotional face processing during childhood Developmental Science · Wiley · 2006 10.1111/j.1467-7687.2006.00480.x
  30. Simultaneous EEG and fMRI Oxford University Press eBooks · Oxford University Press · 2010 10.1093/acprof:oso/9780195372731.001.0001
  31. ERPLAB: an open-source toolbox for the analysis of event-related potentials Frontiers in Human Neuroscience · Frontiers Media · 2014 10.3389/fnhum.2014.00213
  32. EEGLAB: an open source toolbox for analysis of single-trial EEG dynamics including independent component analysis Journal of Neuroscience Methods · Elsevier BV · 2004 10.1016/j.jneumeth.2003.10.009
  33. The time course of social-emotional processing in early childhood: ERP responses to facial affect and personal familiarity in a Go-Nogo task Neuropsychologia · Elsevier BV · 2007 10.1016/j.neuropsychologia.2007.10.011
  34. Genetic and neural dissociation of individual responses to emotional expressions in human infants Developmental Cognitive Neuroscience · Elsevier BV · 2010 10.1016/j.dcn.2010.07.001
  35. Event-Related Potentials: A Methods Handbook Neurology · Lippincott Williams & Wilkins · 2006 10.1212/01.wnl.0000217365.45426.9a
  36. Random effects structure for confirmatory hypothesis testing: Keep it maximal Journal of Memory and Language · Elsevier BV · 2013 10.1016/j.jml.2012.11.001
  37. Moment-to-moment brain signal variability: A next frontier in human brain mapping? Neuroscience & Biobehavioral Reviews · Elsevier BV · 2013 10.1016/j.neubiorev.2013.02.015
  38. Visual Attention to Global and Local Stimulus Properties in 6‐Month‐Old Infants: Individual Differences and Event‐Related Potentials Child Development · Wiley · 2013 10.1111/cdev.12053
  39. <b>MatchIt</b>: Nonparametric Preprocessing for Parametric Causal Inference Journal of Statistical Software · Foundation for Open Access Statistics · 2011 10.18637/jss.v042.i08
  40. An ERP Study of Emotional Face Processing in the Adult and Infant Brain Child Development · Wiley · 2007 10.1111/j.1467-8624.2007.00994.x
  41. Neural Correlates of Face and Object Recognition in Young Children with Autism Spectrum Disorder, Developmental Delay, and Typical Development Child Development · Wiley · 2002 10.1111/1467-8624.00433
  42. Emergence of enhanced attention to fearful faces between 5 and 7 months of age Social Cognitive and Affective Neuroscience · University of Oxford · 2009 10.1093/scan/nsn046
  43. Visual Event-Related Potentials to Novel Objects Predict Rapid Word Learning Ability in 20-Month-Olds Developmental Neuropsychology · Taylor & Francis · 2016 10.1080/87565641.2016.1243111
  44. Considering ERP difference scores as individual difference measures: Issues with subtraction and alternative approaches Psychophysiology · Wiley · 2016 10.1111/psyp.12664
  45. Conflict and performance monitoring throughout the lifespan: An event-related potential (ERP) and temporospatial component analysis Biological Psychology · Elsevier BV · 2017 10.1016/j.biopsycho.2017.01.012
  46. Neural correlates of face processing in etiologically-distinct 12-month-old infants at high-risk of autism spectrum disorder Developmental Cognitive Neuroscience · Elsevier BV · 2017 10.1016/j.dcn.2017.03.002
  47. Emotion processing in the infant brain: The importance of local information Neuropsychologia · Elsevier BV · 2017 10.1016/j.neuropsychologia.2017.09.006
  48. Beyond the Hazard Ratio: Generating Expected Durations from the Cox Proportional Hazards Model British Journal of Political Science · Cambridge University Press · 2017 10.1017/s000712341700045x
  49. Early Adverse Caregiving Experiences and Preschoolers' Current Attachment Affect Brain Responses during Facial Familiarity Processing: An ERP Study Frontiers in Psychology · Frontiers Media · 2017 10.3389/fpsyg.2017.02047
  50. Using trial‐level data and multilevel modeling to investigate within‐task change in event‐related potentials Psychophysiology · Wiley · 2017 10.1111/psyp.13044
  51. <b>lmerTest</b> Package: Tests in Linear Mixed Effects Models Journal of Statistical Software · Foundation for Open Access Statistics · 2017 10.18637/jss.v082.i13
  52. Model Misspecification and Assumption Violations With the Linear Mixed Model: A Meta-Analysis SAGE Open · SAGE Publishing · 2018 10.1177/2158244018820380
  53. Simulating Duration Data for the Cox Model Political Science Research and Methods · Cambridge University Press · 2018 10.1017/psrm.2018.19
  54. Neural correlates of facial emotion processing in infancy Developmental Science · Wiley · 2018 10.1111/desc.12758
  55. Developmental Psychopathology. Volume 1: Theory and Method 1995
  56. ERP evidence of semantic processing in children with ASD Developmental Cognitive Neuroscience · Elsevier BV · 2019 10.1016/j.dcn.2019.100640
  57. Emotion in motion: Facial dynamics affect infants' neural processing of emotions Developmental Psychobiology · Wiley · 2019 10.1002/dev.21860
  58. Understanding Mixed-Effects Models Through Data Simulation Advances in Methods and Practices in Psychological Science · SAGE Publishing · 2021 10.1177/2515245920965119
  59. SEREEGA: Simulating event-related EEG activity Journal of Neuroscience Methods · Elsevier BV · 2018 10.1016/j.jneumeth.2018.08.001
  60. A model-based imputation procedure for multilevel regression models with random coefficients, interaction effects, and nonlinear terms. Psychological Methods · American Psychological Association · 2019 10.1037/met0000228
  61. Post hoc power analysis: is it an informative and meaningful analysis? General Psychiatry · BMJ · 2019 10.1136/gpsych-2019-100069
  62. How to capitalize on a priori contrasts in linear (mixed) models publish.UP (University of Potsdam) · University of Potsdam · 2019 10.1016/j.jml.2019.104038
  63. 14 challenges and their solutions for conducting social neuroscience and longitudinal EEG research with infants Infant Behavior and Development · Elsevier BV · 2019 10.1016/j.infbeh.2019.101393
  64. Robustness of linear mixed‐effects models to violations of distributional assumptions Methods in Ecology and Evolution · Wiley · 2020 10.1111/2041-210x.13434
  65. Evaluating the internal consistency of subtraction‐based and residualized difference scores: Considerations for psychometric reliability analyses of event‐related potentials Psychophysiology · Wiley · 2021 10.1111/psyp.13762
  66. Using multilevel models for the analysis of event-related potentials International Journal of Psychophysiology · Elsevier BV · 2021 10.1016/j.ijpsycho.2021.02.006
  67. Estimating power in (generalized) linear mixed models: An open introduction and tutorial in R Behavior Research Methods · Springer Science+Business Media · 2021 10.3758/s13428-021-01546-0
  68. Infants’ neural responses to emotional faces are related to maternal anxiety Journal of Child Psychology and Psychiatry · Wiley · 2021 10.1111/jcpp.13429
  69. Associations between brain and behavioral processing of facial expressions of emotion and sensory reactivity in young children Developmental Science · Wiley · 2021 10.1111/desc.13134
  70. Understanding the Error in Psychopathology: Notable Intraindividual Differences in Neural Variability of Performance Monitoring Biological Psychiatry Cognitive Neuroscience and Neuroimaging · Elsevier BV · 2021 10.1016/j.bpsc.2021.10.016
  71. Catching Up on Multilevel Modeling Annual Review of Psychology · Annual Reviews · 2022 10.1146/annurev-psych-020821-103525
  72. Utility of linear mixed effects models for event-related potential research with infants and children Developmental Cognitive Neuroscience · Elsevier BV · 2022 10.1016/j.dcn.2022.101070
  73. Metric Learning: A Survey Foundations and Trends® in Machine Learning · Now Publishers · 2013 10.1561/2200000019
  74. ERPs Studies of Short- and Long-Term Habituation in Humans: A Systematic Review Psykhe (Santiago) · Pontifical Catholic University of Chile · 2022 10.7764/psykhe.2021.36885
  75. Parental Emotionality is Related to Preschool Children’s Neural Responses to Emotional Faces Social Cognitive and Affective Neuroscience · University of Oxford · 2023 10.1093/scan/nsad078
  76. Leveraging mixed-effects location scale models to assess the ERP mismatch negativity’s psychometric properties and trial-by-trial neural variability in toddler-mother dyads Developmental Cognitive Neuroscience · Elsevier BV · 2024 10.1016/j.dcn.2024.101459