<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Archiving and Interchange DTD v2.3 20070202//EN" "archivearticle.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="methods-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Psychol.</journal-id>
<journal-title>Frontiers in Psychology</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Psychol.</abbrev-journal-title>
<issn pub-type="epub">1664-1078</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fpsyg.2017.00456</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Psychology</subject>
<subj-group>
<subject>Methods</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Repeated Measures Correlation</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>Bakdash</surname> <given-names>Jonathan Z.</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="author-notes" rid="fn001"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/404431/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Marusich</surname> <given-names>Laura R.</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/298440/overview"/>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>US Army Research Laboratory, Human Research and Engineering Directorate</institution> <country>Aberdeen Proving Ground, USA</country></aff>
<aff id="aff2"><sup>2</sup><institution>US Army Laboratory South Field Element, Human Research and Engineering Directorate, University of Texas Arlington</institution> <country>Arlington, TX, USA</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Prathiba Natesan, University of North Texas, USA</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Zhaohui Sheng, Western Illinois University, USA; Jocelyn Holden Bolin, Ball State University, USA</p></fn>
<fn fn-type="corresp" id="fn001"><p>&#x0002A;Correspondence: Jonathan Z. Bakdash <email>jonathan.z.bakdash.civ&#x00040;mail.mil</email></p></fn>
<fn fn-type="other" id="fn002"><p>This article was submitted to Quantitative Psychology and Measurement, a section of the journal Frontiers in Psychology</p></fn></author-notes>
<pub-date pub-type="epub">
<day>07</day>
<month>04</month>
<year>2017</year>
</pub-date>
<pub-date pub-type="collection">
<year>2017</year>
</pub-date>
<volume>8</volume>
<elocation-id>456</elocation-id>
<history>
<date date-type="received">
<day>06</day>
<month>01</month>
<year>2017</year>
</date>
<date date-type="accepted">
<day>13</day>
<month>03</month>
<year>2017</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2017 Bakdash and Marusich.</copyright-statement>
<copyright-year>2017</copyright-year>
<copyright-holder>Bakdash and Marusich</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license>
</permissions>
<abstract><p>Repeated measures correlation (rmcorr) is a statistical technique for determining the common within-individual association for paired measures assessed on two or more occasions for multiple individuals. Simple regression/correlation is often applied to non-independent observations or aggregated data; this may produce biased, specious results due to violation of independence and/or differing patterns between-participants versus within-participants. Unlike simple regression/correlation, rmcorr does not violate the assumption of independence of observations. Also, rmcorr tends to have much greater statistical power because neither averaging nor aggregation is necessary for an intra-individual research question. Rmcorr estimates the common regression slope, the association shared among individuals. To make rmcorr accessible, we provide background information for its assumptions and equations, visualization, power, and tradeoffs with rmcorr compared to multilevel modeling. We introduce the R package (rmcorr) and demonstrate its use for inferential statistics and visualization with two example datasets. The examples are used to illustrate research questions at different levels of analysis, intra-individual, and inter-individual. Rmcorr is well-suited for research questions regarding the common linear association in paired repeated measures data. All results are fully reproducible.</p></abstract>
<kwd-group>
<kwd>correlation</kwd>
<kwd>repeated measures</kwd>
<kwd>individual differences</kwd>
<kwd>intra-individual</kwd>
<kwd>statistical power</kwd>
<kwd>multilevel modeling</kwd>
</kwd-group>
<counts>
<fig-count count="6"/>
<table-count count="3"/>
<equation-count count="5"/>
<ref-count count="44"/>
<page-count count="13"/>
<word-count count="7879"/>
</counts>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>Introduction</title>
<p>Correlation is a popular measure to quantify the association between two variables. However, widely used techniques for correlation, such as simple (ordinary least squares with a single independent variable) regression/Pearson correlation, assume independence of error between observations (Howell, <xref ref-type="bibr" rid="B19">1997</xref>; Johnston and DiNardo, <xref ref-type="bibr" rid="B21">1997</xref>; Cohen et al., <xref ref-type="bibr" rid="B9">2003</xref>). This assumption does not pose a problem if each participant or independent observation is a single data point of paired measures (i.e., two data points corresponding to the same individual such as height and weight). For example, when correlating the current height and weight of people drawn from a random sample, there is no reason to expect a violation of independence.</p>
<p>However, the assumption of independence is violated in repeated measures, in which each participant provides more than one data point. For example, if a study collected height and weight for a sample of people at three time points, there would likely be non-independence in the errors of the three observations belonging to the same person. Analyzing non-independent data with techniques that assume independence is a widespread practice but one that often produces erroneous results (Kenny and Judd, <xref ref-type="bibr" rid="B22">1986</xref>; Molenaar, <xref ref-type="bibr" rid="B27">2004</xref>; Aarts et al., <xref ref-type="bibr" rid="B1">2014</xref>). One common solution is to average the repeated measures data for each participant prior to performing the correlation. This aggregation may resolve the issue of non-independence but can produce misleading results if there are meaningful individual differences (Estes, <xref ref-type="bibr" rid="B13">1956</xref>; Myung et al., <xref ref-type="bibr" rid="B29">2000</xref>). Furthermore, analysis of individual differences can be useful as a strong test for theory (Underwood, <xref ref-type="bibr" rid="B41">1975</xref>; Vogel and Awh, <xref ref-type="bibr" rid="B42">2008</xref>).</p>
<p>Bland and Altman (<xref ref-type="bibr" rid="B4">1995a</xref>,<xref ref-type="bibr" rid="B5">b</xref>) introduced the within-participants correlation in biostatistics to analyze the common intra-individual association for paired repeated measures, which are two corresponding measures assessed for each participant/case/individual on two or more occasions. Here, we refer to the technique as the repeated measures correlation (rmcorr). Rmcorr accounts for non-independence among observations using analysis of covariance (ANCOVA) to statistically adjust for inter-individual variability. By removing measured variance between-participants, rmcorr provides the best linear fit for each participant using parallel regression lines (the same slope) with varying intercepts. Like a Pearson correlation coefficient (r), the rmcorr coefficient (<italic>r</italic><sub>rm</sub>) is bounded by &#x02212;1 to 1 and represents the strength of the linear association between two variables. Also akin to the Pearson correlation, the null hypothesis for rmcorr is &#x003C1;<sub><italic>rm</italic></sub> &#x0003D; 0, and the research/alternative hypothesis is &#x003C1;<sub>rm</sub> &#x02260; 0. Unlike the Pearson correlation, which assesses the inter-individual association because it assumes each paired data point is Independent and Identically Distributed (IID), rmcorr evaluates the overall or common intra-individual association between two measures. Because rmcorr takes into account non-independence, it tends to yield much greater power than data that are averaged in order to meet the IID assumption for simple regression/correlation. Hence, rmcorr can detect associations between variables that might otherwise be obscured or spurious due to aggregation or treating non-independent values as IID.</p>
<p>Conceptually, rmcorr is close to a null multilevel model (i.e., varying intercept and a common slope for each individual), but the techniques differ on how they treat/pool variance. Rmcorr assesses the common intra-individual variance in data, whereas multilevel modeling can simultaneously analyze different sources of variance using fixed and random effects. The tradeoff with more complex multilevel models is that they require more data and are more challenging to specify and interpret than simpler analysis of variance (ANOVA)/regression models, such as rmcorr. However, the flexibility of multilevel modeling has benefits: Overall and individual differences can be analyzed simultaneously, models of varying complexity can be systematically compared, and they can provide greater insights into individual differences.</p>
<p>Besides multilevel modeling, we contend there are no other widely used techniques that can correctly model paired and repeated measures data that are continuous. The common correlation techniques (e.g., Pearson, Kendall, and Spearman) for paired data and canonical correlation for multivariate data all assume independent observations. Repeated observations can be modeled with multivariate analysis of variance (MANOVA) and repeated measures ANOVA, but they are for factorial designs and not paired data. While ANCOVA can operate on paired data, its purpose (to statistically adjust for a nuisance, within-participants variance, in each individual) is opposite to that of rmcorr (using one of the paired measures to statistically adjust for between-participants variance) (see Rmcorr and ANCOVA for details).</p>
<p>Despite the potential utility of rmcorr for repeated measures data, it is relatively unknown in psychological research. To address this gap, the paper is structured as follows. The background describes how rmcorr works, its relation to ANCOVA, and the tradeoffs for rmcorr compared to multilevel modeling. Next, we provide an overview of the <bold>rmcorr R package</bold> using two examples with real data. Last, we summarize when rmcorr may be informative and potential applications.</p>
<p>All graphs and results are fully reproducible using R (R Core Team, <xref ref-type="bibr" rid="B32">2017</xref>), the <bold>rmcorr R package</bold> <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/web/packages/rmcorr/">https://cran.r-project.org/web/packages/rmcorr/</ext-link>, and the accompanying R Markdown document: <ext-link ext-link-type="uri" xlink:href="https://osf.io/djphm/">https://osf.io/djphm/</ext-link>. R packages used in the paper, but not cited in the references, are listed in Appendix <xref ref-type="supplementary-material" rid="SM1">A</xref>.</p>
</sec>
<sec id="s2">
<title>Background</title>
<p>To convey a conceptual understanding of rmcorr, we first provide visualizations comparing rmcorr and simple regression/correlation using hypothetical data. Then, to explain the underlying mechanics of rmcorr we provide an overview of ANCOVA for aspects relevant to rmcorr; key assumptions (e.g., parallel slopes); and the notation, data structure, and formulas for rmcorr (equations for calculations and degrees of freedom). Last, we calculate power curves for rmcorr to show the benefits of repeated measures for higher statistical power relative to simple regression/correlation.</p>
<sec>
<title>Visualization: rmcorr plot</title>
<p>In rmcorr, separate parallel lines are fit to the data from each participant. The sign of the rmcorr coefficient (i.e., positive or negative) is indicated by the direction of the common regression slope. The left panel of Figure <xref ref-type="fig" rid="F1">1</xref> shows an rmcorr plot for a set of hypothetical repeated measures data, with 10 participants providing five data points each. Each participant&#x00027;s data and corresponding line are shown in a different color. The computed rmcorr value for this notional data is 0.96. The right panel shows the same notional data, but with each subject&#x00027;s data averaged into one data point each. The regression line is plotted with this averaged data. Note that the computed correlation coefficient for this averaged data is much smaller (0.13) and is not significant. In this example, rmcorr captures the strong intra-individual relationship between the two variables that is missed by using averaged data.</p>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p><bold>(A)</bold> Rmcorr plot: rmcorr plot for a set of hypothetical data and <bold>(B)</bold> simple regression plot: the corresponding regression plot for the same data averaged by participant.</p></caption>
<graphic xlink:href="fpsyg-08-00456-g0001.tif"/>
</fig>
<sec>
<title>Interpreting results</title>
<p>Note that rmcorr can reveal very different within-participant associations among similar patterns of aggregated data, as depicted with notional data in Figure <xref ref-type="fig" rid="F2">2</xref>. All the data in a given row exhibit the same relationship when treated (incorrectly) as IID, indicated by the black simple regression line in each cell. However, across columns the intra-individual association is quite different. This phenomenon is why generating an rmcorr plot can be helpful for understanding a given dataset. As with other statistical techniques, visualization is key for interpreting results (Tukey, <xref ref-type="bibr" rid="B40">1977</xref>).</p>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p><bold>These notional plots illustrate the range of potential similarities and differences in the intra-individual association assessed by rmcorr and the inter-individual association assessed by ordinary least squares (OLS) regression</bold>. Rmcorr-values depend only on the intra-individual association between variables and will be the same across different patterns of inter-individual variability. <bold>(A)</bold> <italic>r</italic><sub><italic>rm</italic></sub> &#x0003D; &#x02212;1: depicts notional data with a perfect negative intra-individual association between variables, <bold>(B)</bold> <italic>r</italic><sub><italic>rm</italic></sub> &#x0003D; 0: depicts data with no intra-individual association, and <bold>(C)</bold> <italic>r</italic><sub><italic>rm</italic></sub> &#x0003D; 1: depicts data with a perfect positive intra-individual association. In each column, the relationship <italic>between</italic> subjects (inter-individual variability) is different, which does not change the rmcorr-values within a column. However, this does change the association that would be predicted by OLS regression (black lines) if the data were treated as IID or averaged by participant.</p></caption>
<graphic xlink:href="fpsyg-08-00456-g0002.tif"/>
</fig>
<p>Figure <xref ref-type="fig" rid="F2">2</xref> also depicts examples of Simpson&#x00027;s Paradox (note in particular Panel (A), Row 1, and Panel (C), Row 3), in which patterns at a higher level of analysis (e.g., sample, experiment, study, or aggregated data) conflict with patterns at a lower level of analysis (Tu et al., <xref ref-type="bibr" rid="B39">2008</xref>; Robinson, <xref ref-type="bibr" rid="B33">2009</xref>; see Kievit et al., <xref ref-type="bibr" rid="B23">2013</xref>; e.g., individual). For patterns at one level of analysis to generalize to another, the data must be ergodic between levels (Molenaar, <xref ref-type="bibr" rid="B27">2004</xref>; Molenaar and Campbell, <xref ref-type="bibr" rid="B28">2009</xref>). Rmcorr, and especially the rmcorr plot, may be useful for understanding non-ergodic data that have intra-individual and inter-individual patterns that do not generalize to each other.</p>
<p>Similar to Pearson correlation, linear transformations (i.e., addition, subtraction, multiplication, and/or division) of data do not alter the rmcorr value because the relationships among variables are preserved. More specifically, a linear transformation can be applied to the entire dataset, all data for one or more participants, or even by applying different transformations to the data of each participant without affecting the value of rmcorr. Figure <xref ref-type="fig" rid="F3">3</xref> depicts linear transformations for hypothetical data in which effect sizes do not change. The first panel shows the rmcorr plot for a set of three participants, with five data points each. The second panel shows the resulting rmcorr plot when the x-variable values for all participants are transformed by dividing by 2 and adding 1. The third panel depicts the rmcorr plot when the y-variable values for only one subject are transformed by subtracting 2. Note that the rmcorr values are the same for the original data and the two transformations.</p>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p><bold>Rmcorr-values (and corresponding <italic>p</italic>-values) do not change with linear transformations of the data, illustrated here with three examples: (A)</bold> original, <bold>(B)</bold> <italic>x/</italic>2 &#x0002B; 1, and <bold>(C)</bold> <italic>y</italic> &#x02212; 1.</p></caption>
<graphic xlink:href="fpsyg-08-00456-g0003.tif"/>
</fig>
</sec>
</sec>
<sec>
<title>Rmcorr and ANCOVA</title>
<p>Rmcorr is calculated using a form of ANCOVA, thus the two techniques share assumptions and equations (Howell, <xref ref-type="bibr" rid="B19">1997</xref>; Miller and Chapman, <xref ref-type="bibr" rid="B26">2001</xref>; Tabachnick and Fidell, <xref ref-type="bibr" rid="B38">2007</xref>). However, rmcorr is an atypical application of ANCOVA. Typically, ANCOVA is used to determine the effect of a categorical independent variable upon a continuous dependent variable by removing the observed variance of a second &#x0201C;nuisance&#x0201D; continuous variable, or covariate (Howell, <xref ref-type="bibr" rid="B19">1997</xref>; Miller and Chapman, <xref ref-type="bibr" rid="B26">2001</xref>; Tabachnick and Fidell, <xref ref-type="bibr" rid="B38">2007</xref>). Rmcorr, however, is used to determine the relationship between the two continuous variables, while controlling for the effect of the categorical variable, which in this case is the between-participants variance. In other words, the typical use of ANCOVA is opposite to the purpose of rmcorr.</p>
<p>Rmcorr is estimated using ANCOVA, albeit with an unusual model specification. ANCOVA is typically used to assess the effects of different (treatment or factor) levels upon a dependent measure, while controlling for the effects of another continuous variable (the covariate). For rmcorr, the participant is the factor level and the covariate is the second measure. We describe estimation of rmcorr by first providing the equation for a one-way ANCOVA (Equation 1); second, modifying this equation for rmcorr (Equation 2); and third, simplifying it (Equation 3). Last, we show the rmcorr table and calculations for the rmcorr coefficient (the direction is based on the sign of the slope).</p>
<sec>
<title>Assumptions</title>
<p>The standard assumptions required for rmcorr include the standard ones for General Linear Model (GLM) techniques (e.g., Gelman and Hill, <xref ref-type="bibr" rid="B16">2007</xref>) with a single exception: Independence of errors is relaxed in rmcorr. Major GLM assumptions include linearity (predictors are a linear function of the dependent measure), errors are IID [independent and identically distributed (i.e., equal variance)], and errors are normally distributed. Severe violations of the above assumptions could result in a biased model, which may be misleading or even uninterpretable.</p>
<p>In addition to the basic GLM assumptions, an additional assumption for ANCOVA is that the slopes indicating the relationship between the dependent variable and the covariate be parallel across conditions (e.g., Howell, <xref ref-type="bibr" rid="B19">1997</xref>; Miller and Chapman, <xref ref-type="bibr" rid="B26">2001</xref>; Tabachnick and Fidell, <xref ref-type="bibr" rid="B38">2007</xref>)<xref ref-type="fn" rid="fn0001"><sup>1</sup></xref>. In practice, this assumption is considered to be met when there is no evidence of strong heterogeneity of slopes<xref ref-type="fn" rid="fn0002"><sup>2</sup></xref>. However, parallel lines are not an assumption for rmcorr; rather, rmcorr specifically tests for such a common association between variables. Therefore, the degree to which each subject&#x00027;s data is reflected by the common slope of the best-fit parallel lines is appropriately represented in the rmcorr effect size. When the relationship between variables varies widely across subjects, the rmcorr effect size will be near zero with confidence intervals also around zero. When there is no strong heterogeneity across subjects and parallel lines provide a good fit, the rmcorr effect size will be large, with tight confidence intervals.</p>
<p>If modeling varying slopes is important and there is sufficient data, the best approach would be fitting and comparing multilevel models (see Multilevel Modeling). Small effect sizes for rmcorr may be caused not only by heterogeneous slopes (poor model fit), however, but also by consistently near-zero slopes across subjects (see Interpreting Results and Figure <xref ref-type="fig" rid="F2">2B</xref>), or by restriction in the range of one or both measures (Cohen et al., <xref ref-type="bibr" rid="B9">2003</xref>). Visualization of the data is critical to determine which of these is the underlying cause of a small effect size.</p>
<p>Two additional ANCOVA assumptions that are directly relevant to rmcorr are a linear association (linearity is also a standard GLM assumption) and high reliability for the covariate/measure (Howell, <xref ref-type="bibr" rid="B19">1997</xref>; Miller and Chapman, <xref ref-type="bibr" rid="B26">2001</xref>; Tabachnick and Fidell, <xref ref-type="bibr" rid="B38">2007</xref>). A clear nonlinear association should be visually apparent from plotting the raw data and examining the rmcorr plot. One option is to apply a transformation to the data to make the association more linear (e.g., Cohen et al., <xref ref-type="bibr" rid="B9">2003</xref>). Another possibility is to fit a nonlinear multilevel model. There are many methods for assessing reliability (consistency) (e.g., John and Benet-Martinez, <xref ref-type="bibr" rid="B20">2014</xref>). Reliability is a complicated topic that is beyond the scope of this paper. However, if measurement reliability is previously known, or can be calculated, a correction for attenuation (e.g., John and Benet-Martinez, <xref ref-type="bibr" rid="B20">2014</xref>) could be applied to the rmcorr coefficient.</p>
</sec>
<sec>
<title>Rmcorr notation and data format</title>
<p>The notation for rmcorr is defined in Table <xref ref-type="table" rid="T1">1</xref>, and the data format for the rmcorr and Pearson correlation are shown in Table <xref ref-type="table" rid="T2">2</xref>.</p>
<table-wrap position="float" id="T1">
<label>Table 1</label>
<caption><p><bold>Notation</bold>.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>Notation</bold></th>
<th valign="top" align="left"><bold>Definition</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left"><italic>L</italic></td>
<td valign="top" align="left">Total number of paired repeated measures (number of rows)</td>
</tr>
<tr>
<td valign="top" align="left"><italic>N</italic></td>
<td valign="top" align="left">Sample size (number of unique individuals)</td>
</tr>
<tr>
<td valign="top" align="left"><italic>k</italic> &#x0003D; <inline-formula><mml:math id="M1"><mml:mfrac><mml:mrow><mml:mi>L</mml:mi></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mtext>&#x000A0;</mml:mtext></mml:mrow></mml:mfrac></mml:math></inline-formula></td>
<td valign="top" align="left">Mean number of paired repeated measures per individual</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>The notation and their definitions. Rmcorr can accommodate unbalanced designs (i.e., differing numbers of paired repeated measures per participant)</italic>.</p>
</table-wrap-foot>
</table-wrap>
<table-wrap position="float" id="T2">
<label>Table 2</label>
<caption><p><bold>Data Format</bold>.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>Participant (i)</bold></th>
<th valign="top" align="center"><bold>Trial (j)</bold></th>
<th valign="top" align="left"><bold><italic>X</italic></bold></th>
<th valign="top" align="left"><bold><italic>Y</italic></bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left" colspan="4" style="background-color:#bdbec1"><bold>(A) Rmcorr DATA FORMAT, <italic>k</italic> &#x0003D; 3</bold>.</td>
</tr>
<tr>
<td valign="top" align="left">1</td>
<td valign="top" align="center">1</td>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">1</td>
<td valign="top" align="center">2</td>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">1</td>
<td valign="top" align="center">3</td>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">2</td>
<td valign="top" align="center">1</td>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">2</td>
<td valign="top" align="center">2</td>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">2</td>
<td valign="top" align="center">3</td>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">&#x02026;</td>
<td valign="top" align="center">&#x02026;</td>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">&#x02026;</td>
<td valign="top" align="center">&#x02026;</td>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">&#x02026;</td>
<td valign="top" align="center">&#x02026;</td>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">N</td>
<td valign="top" align="center">1</td>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">N</td>
<td valign="top" align="center">2</td>
<td/>
<td/>
</tr>
<tr style="border-bottom: thin solid #000000;">
<td valign="top" align="left">N</td>
<td valign="top" align="center">3</td>
<td/>
<td/>
</tr> <tr>
<td valign="top" align="left"><bold>Participant</bold></td>
<td valign="top" align="center" colspan="2"><italic><bold>X</bold></italic></td>
<td valign="top" align="left"><italic><bold>Y</bold></italic></td>
</tr>
<tr>
<td valign="top" align="left" colspan="4" style="background-color:#bdbec1"><bold>(B) SIMPLE REGRESSION/CORRELATION</bold>.</td>
</tr>
<tr>
<td valign="top" align="left">1</td>
<td/>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">2</td>
<td/>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">&#x02026;</td>
<td/>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">N</td>
<td/>
<td/>
<td/>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>The two measures are represented by X and Y. Lines between participant rows indicate independence between observations. Data for rmcorr is in a wide/long format with a minimum of two repeated observations. The i subscript represents each participant and the j subscript indicates each trial (per participant)</italic>.</p>
</table-wrap-foot>
</table-wrap>
<p>Rmcorr data is in a long or narrow format with separate columns for the participant and paired measures, and separate rows for each repeated observation, labeled by participant (Table <xref ref-type="table" rid="T2">2A</xref>). In contrast, each row of data formatted for the simple regression/correlation is presumed to be an independent observation (Table <xref ref-type="table" rid="T2">2B</xref>). The distinction between the two data formats is similar to the difference between the person period format and the person level format used in longitudinal data analysis.</p>
</sec>
<sec>
<title>Equations and rmcorr table</title>
<p>Rmcorr is estimated using ANCOVA, albeit with an unusual model specification. ANCOVA is typically used to assess the effects of different (treatment or factor) levels upon a dependent measure, while controlling for the effects of another continuous variable (the covariate). For rmcorr, the participant is the factor level and the covariate is the second measure. We describe estimation of rmcorr by first providing the equation for a one-way ANCOVA (Equation 1); second, modifying this equation for rmcorr (Equation 2); and third, simplifying it (Equation 3). Last, we show the rmcorr table and calculations for the rmcorr coefficient (the direction is based on the sign of the slope).</p>
<p>The equation for a one-way ANCOVA with <italic>i</italic> participants and <italic>j</italic> (factor) levels (Howell, <xref ref-type="bibr" rid="B19">1997</xref>; Tabachnick and Fidell, <xref ref-type="bibr" rid="B38">2007</xref>) is:
<disp-formula id="E1"><label>(1)</label><mml:math id="M2"><mml:mrow><mml:msub><mml:mi>Y</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mtext>&#x02009;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x02009;</mml:mtext><mml:mi>&#x003BC;</mml:mi><mml:mo>&#x0002B;</mml:mo><mml:mtext>&#x02009;</mml:mtext><mml:msub><mml:mi>&#x003C4;</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mtext>&#x02009;</mml:mtext><mml:mo>&#x0002B;</mml:mo><mml:mtext>&#x02009;</mml:mtext><mml:mi>c</mml:mi><mml:mtext>&#x02009;</mml:mtext><mml:mo>&#x0002B;</mml:mo><mml:mtext>&#x02009;</mml:mtext><mml:msub><mml:mi>&#x003B5;</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></disp-formula></p>
<p><italic>Y</italic><sub><italic>ij</italic></sub> is the dependent measure for the <italic>i</italic>th participant at the <italic>j</italic>th factor level.</p>
<p>&#x003BC; is the overall mean.</p>
<p>&#x003C4;<sub><italic>j</italic></sub> is the effect of the <italic>j</italic>th factor level.</p>
<p><italic>c</italic> is the covariate: <inline-formula><mml:math id="M3"><mml:mi>c</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>&#x003B2;</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>X</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mtext>&#x000A0;</mml:mtext><mml:mo>-</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mover accent="false" class="mml-overline"><mml:mrow><mml:msub><mml:mrow><mml:mi>X</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo accent="true">&#x000AF;</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula> (&#x003B2; is overall slope coefficient for the covariate, <italic>X</italic><sub><italic>ij</italic></sub> is the value of the covariate for the <italic>i</italic>th participant at the <italic>j</italic>th factor level, and <inline-formula><mml:math id="M4"><mml:mover accent="false" class="mml-overline"><mml:mrow><mml:msub><mml:mrow><mml:mi>X</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo accent="true">&#x000AF;</mml:mo></mml:mover></mml:math></inline-formula> is the mean of the covariate values at the <italic>j</italic>th factor level).</p>
<p>&#x003B5;<sub><italic>ij</italic></sub> is the error for the <italic>i</italic>th participant at the <italic>j</italic>th factor level (the error is the difference between the actual value of dependent measure and its estimated value, for the <italic>i</italic>th participant at the <italic>j</italic>th factor level).</p>
<p>In Equations 2 and 3, Equation 1 is rewritten for rmcorr to show one measure as a function of its mean value, participant, and the covaried value of the other measure. Note following Equation 1, <italic>i</italic> and <italic>j</italic> are now exchanged for consistency: <italic>j</italic>  &#x0003D;  participant and <italic>i</italic>  &#x0003D;  trial or repeated measure.</p>
<disp-formula id="E2"><label>(2)</label><mml:math id="M5"><mml:mtable class="eqnarray" columnalign="right center left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mover accent="false" class="mml-overline"><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mn>1</mml:mn></mml:mrow><mml:mo accent="true">&#x000AF;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>P</mml:mi><mml:mi>a</mml:mi><mml:mi>r</mml:mi><mml:mi>t</mml:mi><mml:mi>i</mml:mi><mml:mi>c</mml:mi><mml:mi>i</mml:mi><mml:mi>p</mml:mi><mml:mi>a</mml:mi><mml:mi>n</mml:mi><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mtd><mml:mtd></mml:mtd><mml:mtd><mml:mo>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x0002B;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>&#x003B2;</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mover accent="false" class="mml-overline"><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mn>2</mml:mn></mml:mrow><mml:mo accent="true">&#x000AF;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>&#x0002B;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>&#x003B5;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p><italic>Measure</italic>1 and <italic>Measure</italic>2 are exchangeable.</p>
<p><italic>Measure</italic>1<sub><italic>ij</italic></sub> is the value of <italic>Measure</italic>1 for the <italic>j</italic>th participant at their <italic>i</italic>th trial.</p>
<p><inline-formula><mml:math id="M6"><mml:msub><mml:mrow><mml:mover accent="false" class="mml-overline"><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mn>1</mml:mn></mml:mrow><mml:mo accent="true">&#x000AF;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the mean of <italic>Measure</italic>1 (all <italic>i</italic> trials) for the <italic>j</italic>th participant.</p>
<p><italic>Participant</italic><sub><italic>j</italic></sub> is a unique identifier that acts as a dummy or proxy coded variable.</p>
<p>&#x003B2; is the value of the covariate, which is the overall or common slope.</p>
<p><italic>Measure</italic>2<sub><italic>ij</italic></sub> is the value of <italic>Measure</italic>2 for the <italic>j</italic>th participant at their <italic>i</italic>th trial.</p>
<p><inline-formula><mml:math id="M7"><mml:msub><mml:mrow><mml:mover accent="false" class="mml-overline"><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mn>2</mml:mn></mml:mrow><mml:mo accent="true">&#x000AF;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the mean of <italic>Measure</italic>2 (all <italic>i</italic> trials) for the <italic>j</italic>th participant.</p>
<p>&#x003B5;<sub><italic>ij</italic></sub> is the error for the <italic>j</italic>th participant at their <italic>i</italic>th trial.</p>
<p>Equation 2 is rewritten to calculate the predicted value of the rmcorr regression line for each participant by trial. We drop the error term because we do not fit a confidence interval for the regression line.</p>
<disp-formula id="E3"><label>(3)</label><mml:math id="M8"><mml:mtable class="eqnarray" columnalign="right center left"><mml:mtr><mml:mtd><mml:msubsup><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mover accent="false" class="mml-overline"><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mn>1</mml:mn></mml:mrow><mml:mo accent="true">&#x000AF;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>P</mml:mi><mml:mi>a</mml:mi><mml:mi>r</mml:mi><mml:mi>t</mml:mi><mml:mi>i</mml:mi><mml:mi>c</mml:mi><mml:mi>i</mml:mi><mml:mi>p</mml:mi><mml:mi>a</mml:mi><mml:mi>n</mml:mi><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mo>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x0002B;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>&#x003B2;</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mover accent="false" class="mml-overline"><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mn>2</mml:mn></mml:mrow><mml:mo accent="true">&#x000AF;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p><inline-formula><mml:math id="M9"><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:msub><mml:mn>1</mml:mn><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:msup><mml:mrow></mml:mrow><mml:mo>&#x02032;</mml:mo></mml:msup></mml:math></inline-formula> is the predicted y-value of <italic>Measure</italic>1 for the <italic>j</italic>th participant at their <italic>i</italic>th trial.</p>
<p><italic>Measure</italic>2<sub><italic>ij</italic></sub> is the actual x-value which corresponds to the predicted y-value in the regression line.</p>
<p>Please note that the <bold>rmcorr package</bold> has always produced the corrected results.</p>
<p>Like a regression or ANOVA table, the rmcorr table summarizes quantitative results (Table <xref ref-type="table" rid="T3">3</xref>).</p>
<table-wrap position="float" id="T3">
<label>Table 3</label>
<caption><p><bold>Rmcorr Table</bold>.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>Source</bold></th>
<th valign="top" align="center"><bold>Degrees of Freedom</bold></th>
<th valign="top" align="left"><bold>Sum of Squares</bold></th>
<th valign="top" align="left"><bold>Mean Square Error</bold></th>
<th valign="top" align="left"><bold><italic>F</italic> ratio</bold></th>
<th valign="top" align="left"><bold><italic>p</italic>-value</bold></th>
</tr>
</thead>
<tbody>
<tr style="border-bottom: thin solid #000000;">
<td valign="top" align="left">Participants</td>
<td valign="top" align="center"><italic>N &#x02013;</italic> 1</td>
<td valign="top" align="left"><italic>SS</italic><sub><italic>Participant</italic></sub></td>
<td valign="top" align="left"><inline-formula><mml:math id="M10"><mml:mfrac><mml:mrow><mml:mi>S</mml:mi><mml:msub><mml:mrow><mml:mi>S</mml:mi></mml:mrow><mml:mrow><mml:mi>P</mml:mi><mml:mi>a</mml:mi><mml:mi>r</mml:mi><mml:mi>t</mml:mi><mml:mi>i</mml:mi><mml:mi>c</mml:mi><mml:mi>i</mml:mi><mml:mi>p</mml:mi><mml:mi>a</mml:mi><mml:mi>n</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:mfrac></mml:math></inline-formula></td>
<td valign="top" align="left"><inline-formula><mml:math id="M11"><mml:mfrac><mml:mrow><mml:mi>M</mml:mi><mml:mi>S</mml:mi><mml:msub><mml:mrow><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>M</mml:mi><mml:mi>S</mml:mi><mml:msub><mml:mrow><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mi>r</mml:mi><mml:mi>r</mml:mi><mml:mi>o</mml:mi><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:math></inline-formula></td>
<td/>
</tr> <tr style="border-bottom: thin solid #000000;">
<td valign="top" align="left">Measure</td>
<td valign="top" align="center">1</td>
<td valign="top" align="left"><italic>SS</italic><sub><italic>Measure</italic></sub></td>
<td valign="top" align="left"><inline-formula><mml:math id="M12"><mml:mfrac><mml:mrow><mml:mi>S</mml:mi><mml:msub><mml:mrow><mml:mi>S</mml:mi></mml:mrow><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:mfrac></mml:math></inline-formula></td>
<td valign="top" align="left"><inline-formula><mml:math id="M13"><mml:mfrac><mml:mrow><mml:mi>M</mml:mi><mml:mi>S</mml:mi><mml:msub><mml:mrow><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>M</mml:mi><mml:mi>S</mml:mi><mml:msub><mml:mrow><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mi>r</mml:mi><mml:mi>r</mml:mi><mml:mi>o</mml:mi><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:math></inline-formula></td>
<td valign="top" align="left">Significance value is determined by the <italic>F</italic>-ratio: <italic>F</italic>(<italic>Measure df</italic> (1), <italic>Error df</italic>)</td>
</tr> <tr style="border-bottom: thin solid #000000;">
<td valign="top" align="left">Error</td>
<td valign="top" align="center"><italic>N(k &#x02212; 1)</italic> &#x02212; 1</td>
<td valign="top" align="left"><italic>SS</italic><sub><italic>Error</italic></sub></td>
<td valign="top" align="left"><inline-formula><mml:math id="M14"><mml:mfrac><mml:mrow><mml:mi>S</mml:mi><mml:msub><mml:mrow><mml:mi>S</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mi>r</mml:mi><mml:mi>r</mml:mi><mml:mi>o</mml:mi><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>k</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:mfrac></mml:math></inline-formula></td>
<td/>
<td/>
</tr> <tr>
<td valign="top" align="left">Total</td>
<td valign="top" align="center"><italic>(Nk) &#x02212; 1</italic></td>
<td valign="top" align="left"><italic>SS</italic><sub><italic>Total</italic></sub></td>
<td valign="top" align="left"><inline-formula><mml:math id="M15"><mml:mfrac><mml:mrow><mml:mi>S</mml:mi><mml:msub><mml:mrow><mml:mi>S</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi><mml:mi>o</mml:mi><mml:mi>t</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>N</mml:mi><mml:mi>k</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:mfrac></mml:math></inline-formula></td>
<td/>
<td/>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>This table is similar to a regression/ANOVA table</italic>.</p>
</table-wrap-foot>
</table-wrap>
<p>Based on the sums of squares values for the measure and error, the rmcorr correlation coefficient is calculated as follows:
<disp-formula id="E4"><label>(4)</label><mml:math id="M16"><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:mtext>&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;&#x02009;</mml:mtext><mml:msub><mml:mi>r</mml:mi><mml:mrow><mml:mi>r</mml:mi><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mtext>&#x02009;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x02009;</mml:mtext><mml:msqrt><mml:mrow><mml:mfrac><mml:mrow><mml:mi>S</mml:mi><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>S</mml:mi><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:mi>M</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mtext>&#x02009;</mml:mtext><mml:mo>&#x0002B;</mml:mo><mml:mtext>&#x02009;</mml:mtext><mml:mi>S</mml:mi><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:mi>E</mml:mi><mml:mi>r</mml:mi><mml:mi>r</mml:mi><mml:mi>o</mml:mi><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:msqrt></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>Sign&#x000A0;of&#x000A0;</mml:mtext><mml:msub><mml:mi>r</mml:mi><mml:mrow><mml:mi>r</mml:mi><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mtext>&#x000A0;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mtext>positive&#x000A0;&#x000A0;or&#x000A0;&#x000A0;negative</mml:mtext></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mtext>&#x000A0;&#x000A0;Sign&#x000A0;&#x000A0;of&#x000A0;</mml:mtext><mml:mi>&#x003B2;</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>Whether <italic>r</italic><sub><italic>rm</italic></sub> takes a positive or negative value is based on the sign of &#x003B2; (the common slope), in Equation 3. Additionally, the sign of the slope should be apparent in the rmcorr plot.</p>
<p>It does not matter which of the two measures is specified as the dependent variable and which one is the covariate. This is equivalent to switching the dependent and independent variable in simple regression/correlation. In rmcorr, the variable specification only changes the values of the sums of squares. All other parameter estimates are unchanged.</p>
<p>We recommend reporting rmcorr descriptively with the rmcorr plot and quantitatively using the <italic>r</italic><sub><italic>rm</italic></sub> (error degrees of freedom in parentheses), <italic>p</italic>-value, and a 95% confidence interval for <italic>r</italic><sub><italic>rm</italic></sub> (see <bold>rmcorr R package</bold> section). Presenting the point (<italic>r</italic><sub><italic>rm</italic></sub>) and interval estimate (95% CI) of effect sizes is a meta-analytic approach (Wilkinson, <xref ref-type="bibr" rid="B44">1999</xref>; Cumming, <xref ref-type="bibr" rid="B10">2014</xref>), and is consistent with current statistical best practices.</p>
</sec>
</sec>
<sec>
<title>Degrees of freedom and power</title>
<p>Because rmcorr uses repeated measures, it will generally have higher degrees of freedom and power than a simple regression/correlation with averaged data. The covariate in rmcorr slightly reduces the degrees of freedom, by one, but this loss is miniscule compared to the gains because of repeated measures. Consequently, rmcorr generally has much higher power than Pearson correlation with averaged data.</p>
<sec>
<title>Degrees of freedom</title>
<p>To calculate statistical power for rmcorr, we provide the exact degrees of freedom as well as approximations for convenience. The exact degrees of for rmcorr (from Table <xref ref-type="table" rid="T3">3</xref>) are:
<disp-formula id="E5"><label>(5)</label><mml:math id="M17"><mml:mrow><mml:mi>N</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:mi>k</mml:mi><mml:mo>&#x02212;</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy='false'>)</mml:mo><mml:mtext>&#x02009;</mml:mtext><mml:mo>&#x02212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:math></disp-formula></p>
<p>Where <italic>k</italic> is the (average) number of repeated measures per participant and <italic>N</italic> is the total number of participants. Note the loss of a degree of freedom for the covariate. The degrees of freedom for rmcorr can be approximated as a multiplier of (<italic>k</italic> &#x02212; 1) times the degrees of freedom for the Pearson correlation (<italic>N</italic> &#x02212; 2). See Appendix <xref ref-type="supplementary-material" rid="SM1">B</xref> for the proof for this approximation.</p>
<p>In standard power tables or programs such as G<sup>&#x0002A;</sup>Power (Faul et al., <xref ref-type="bibr" rid="B14">2009</xref>), users may calculate power for rmcorr by using the entries for a Pearson correlation, but substituting in the appropriate degrees of freedom for rmcorr.</p>
</sec>
<sec>
<title>Power</title>
<p>Because rmcorr is able to take advantage of multiple data points per participant, it generally has much greater statistical power than a standard Pearson correlation using averaged data. Low power typically overestimates effect sizes (e.g., Button et al., <xref ref-type="bibr" rid="B7">2013</xref>). Power for rmcorr increases exponentially when either the value of <italic>k</italic> (the number of repeated observations) or the value of <italic>N</italic> (the total number of unique participants) increases. Figure <xref ref-type="fig" rid="F4">4</xref> illustrates the power curves over different values of <italic><bold>k</bold></italic> and <italic><bold>N</bold></italic> for small, medium, and large effect sizes.</p>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p><bold>Power curves for (A)</bold> small, <italic>r</italic><sub><italic>rm</italic></sub>, and <italic>r</italic> &#x0003D; 0.10, <bold>(B)</bold> medium, <italic>r</italic><sub><italic>rm</italic></sub>, and <italic>r</italic> &#x0003D; 0.3, and <bold>(C)</bold> large effect sizes, <italic>r</italic><sub><italic>rm</italic></sub>, and <italic>r</italic> &#x0003D; 0.50. X-axis is sample size. Note the sample size range differs among the panels. Y-axis is power. <italic>k</italic> denotes the number of repeated paired measures. Eighty percent power is indicated by the dotted black line. For rmcorr, the power of <italic>k</italic> &#x0003D; 2 is asymptotically equivalent to <italic>k</italic> &#x0003D; 1. A comparison to the power for a Pearson correlation with one data point per participant (<italic>k</italic> &#x0003D; 1) is also shown.</p></caption>
<graphic xlink:href="fpsyg-08-00456-g0004.tif"/>
</fig>
</sec>
</sec>
<sec>
<title>Multilevel modeling</title>
<p>A powerful and flexible method for handling different sources of variance simultaneously is multilevel (linear) modeling<xref ref-type="fn" rid="fn0003"><sup>3</sup></xref> (Kreft and de Leeuw, <xref ref-type="bibr" rid="B24">1998</xref>; Singer and Willett, <xref ref-type="bibr" rid="B37">2003</xref>; Gelman and Hill, <xref ref-type="bibr" rid="B16">2007</xref>; see Aarts et al., <xref ref-type="bibr" rid="B1">2014</xref>). Rmcorr can be viewed as a &#x0201C;light&#x0201D; version of multilevel modeling because it is comparable to a simple, null multilevel model with random/varying effects of intercept for each individual and a fixed effect (i.e., common/overall) slope (see Appendix <xref ref-type="supplementary-material" rid="SM1">C</xref> for direct comparisons). However, rmcorr only analyzes intra-individual variance. Multilevel modeling can simultaneously analyze both intra- and inter-individual variance using partial pooling, which permits varying slopes and other parameters that cannot be estimated with simpler techniques.</p>
<p>Compared to other types of pooling, and thus other statistical techniques, multilevel modeling has the unique advantage of being able to estimate variance at multiple hierarchical levels of analysis <italic>simultaneously</italic> using partial pooling<xref ref-type="fn" rid="fn0004"><sup>4</sup></xref>. Partial pooling estimates parameters at multiple levels by treating a lower level of analysis (e.g., individuals) as random/varying effects from a probability distribution drawn from a higher level of analysis (e.g., experiment) (see Gelman, <xref ref-type="bibr" rid="B15">2005</xref>). Estimating random or varying effects requires sufficient, but not excessive, variation, and typically five or more levels (Bolker, <xref ref-type="bibr" rid="B6">2015</xref>). Consequently, multilevel models with varying slopes will generally need more data than is required for rmcorr and other ANOVA techniques.</p>
<p>With partial pooling, multilevel models have the potential to provide far greater insight into individual differences and other patterns compared to ANOVA techniques. The main advantages of multilevel modeling are that it can accommodate much more complex designs than ANOVAs, such as varying slopes, crossed and nested factors&#x02014;up to three hierarchical levels&#x02014;and missing data. This flexibility may make it challenging to implement and understand compared to ANOVA (Gueorguieva and Krystal, <xref ref-type="bibr" rid="B18">2004</xref>; Quen&#x000E9; and van den Bergh, <xref ref-type="bibr" rid="B30">2004</xref>). With more complex multilevel models, there is potential for overfitting or overparameterization (i.e., excessive free parameters given the amount of data and the model form). Overfitting may produce uninterpretable results, so model comparison is essential (Singer and Willett, <xref ref-type="bibr" rid="B37">2003</xref>; Bates et al., <xref ref-type="bibr" rid="B3">2015</xref>). However, concerns about model overfitting are general and extend to ANOVA/regression/correlation and numerous other techniques (Babyak, <xref ref-type="bibr" rid="B2">2004</xref>; e.g., Aarts et al., <xref ref-type="bibr" rid="B1">2014</xref>). Nevertheless, multilevel modeling can provide insights that are otherwise impossible with ANOVA/regression.</p>
</sec>
</sec>
<sec id="s3">
<title>Rmcorr R package</title>
<p>To make rmcorr more accessible to researchers, we have developed the <bold>rmcorr package</bold> for use in R (R Core Team, <xref ref-type="bibr" rid="B32">2017</xref>). The package contains functions for both computing the rmcorr coefficient (as well as confidence intervals, etc.) and generating rmcorr plots. It also includes several example data sets, two of which are described in detail below. This package can be accessed in CRAN R: <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/web/packages/rmcorr/">https://cran.r-project.org/web/packages/rmcorr/</ext-link> and installed and loaded in R using the following commands:</p>
<list list-type="order">
<list-item><p><monospace>install.packages(&#x0201C;rmcorr&#x0201D;)</monospace></p></list-item>
<list-item><p><monospace>library(rmcorr)</monospace></p></list-item>
</list>
<sec>
<title>Package overview</title>
<sec>
<title>Package</title>
<p>The <bold>rmcorr package</bold> has two primary functions: <italic>rmcorr</italic> and <italic>plot.rmc</italic>.</p>
<list list-type="order">
<list-item><p><italic>rmcorr:</italic> This function takes as input repeated measures paired data and computes the repeated measures correlation coefficient. It takes the form:
<preformat>rmc.out &#x0003C;- rmcorr(participant,
measure1, measure2, dataset, CIs &#x0003D;
c(&#x0201C;analytic,&#x0201D; &#x0201C;bootstrap&#x0201D;), nreps &#x0003D; 100,
bstrap.out &#x0003D; F)</preformat></p>
<p>Where <monospace>participant</monospace>, <monospace>measure1</monospace>, and <monospace>measure2</monospace> are variables giving the participant ID/number, observations for the first measure, and observations for the second measure, respectively, and <monospace>dataset</monospace> is a data frame containing these three variables. The function returns an <monospace>rmc</monospace> object, a list containing four primary components: The value of the rmcorr coefficient, error numerator degrees of freedom, the 95% confidence interval for the rmcorr coefficient, and the <italic>p</italic>-value for the rmcorr coefficient.</p>
<p>An additional optional parameter, <monospace>CIs</monospace>, allows the user to specify if the confidence intervals generated by the function are computed analytically using the Fisher transformation or using a bootstrapping procedure. If bootstrapped confidence intervals are chosen, additional arguments specify the number of resamples and whether the function output will include the resampled rmcorr values.</p></list-item>
<list-item><p><italic>plot.rmc:</italic> This function takes as input an <monospace>rmc</monospace> object (the output from the <italic>rmcorr</italic> function) and the dataset used to generate it. It produces a scatterplot of the repeated measures paired data, with each participant&#x00027;s data plotted in a different color. The function takes the form:
<preformat>plot(rmc, dataset, overall &#x0003D; T, palette
&#x0003D; NULL, xlab &#x0003D; NULL, ylab &#x0003D; NULL,
overall.col &#x0003D; &#x0201C;gray60,&#x0201D; overall.lwd &#x0003D; 3,
overall.lty &#x0003D; 2,&#x02026;)</preformat></p>
<p>The <monospace>overall</monospace> parameter specifies whether a line should be plotted, indicating the regression line that would result from treating the data as independent observations (ignoring the repeated measures nature of the data). <monospace>overall.col</monospace>, <monospace>overall.lwd</monospace>, and <monospace>overall.lty</monospace> are optional parameters specifying the appearance of this line. The <monospace>palette</monospace> parameter allows the user to optionally choose a color palette for the plot. <monospace>xlab</monospace> and <monospace>ylab</monospace> are parameters for labeling the x- and y-axis, defaulting to the variable names in <monospace>dataset</monospace>. Finally, additional arguments to the generic plot function (&#x02026;) can specify other aspects of the plot&#x00027;s appearance.</p></list-item>
</list>
<p>Help and examples for each of these functions can be accessed within R by typing <monospace>help(function.name)</monospace> or <monospace>?function.name</monospace>. The <bold>Rmcorr package</bold> also includes three built-in example datasets: <monospace>bland1995</monospace> the data described in Bland and Altman (<xref ref-type="bibr" rid="B4">1995a</xref>), <monospace>raz2005</monospace> (the dataset used in the first example below), and <monospace>gilden2010</monospace> (the dataset used in the second example below). More information about each dataset is accessible within R with the commands of <monospace>help()</monospace> or <monospace>?</monospace>. In the sections below, we describe the bootstrapping procedure available in this package in more detail, and then provide examples of the package functions using real data.</p>
</sec>
<sec>
<title>Bootstrapping</title>
<p>The rmcorr effect size is estimated using a parametric confidence interval, which assumes normality but can be more robustly determined using bootstrapping. Bootstrapping does not require distributional assumptions and uses random resampling to estimate parameter accuracy (Efron and Tibshirani, <xref ref-type="bibr" rid="B12">1994</xref>). The bootstrap for rmcorr is implemented by randomly drawing observations with replacement, within-individuals. This procedure is repeated on each individual, yielding a bootstrapped sample. The number of bootstrapped samples can be specified. Each bootstrap sample is then analyzed with rmcorr, producing a distribution of <italic>r</italic><sub><italic>rm</italic></sub> values. Last, these values are used to calculate the bootstrapped rmcorr coefficient (<sub><italic>r</italic><sub><italic>rm</italic></sub><italic>boot</italic></sub>) and its corresponding confidence interval (<italic>CI</italic><sub><italic>boot</italic></sub>). There are a variety of methods for calculating a bootstrapped confidence interval (see (DiCiccio and Efron, <xref ref-type="bibr" rid="B11">1996</xref>; Canty and Support, <xref ref-type="bibr" rid="B8">2015</xref>). An example is presented in the documentation for the <bold>rmcorr</bold> package.</p>
</sec>
</sec>
<sec>
<title>Two example datasets</title>
<p>Two example datasets are shown using the <bold>rmcorr</bold> package to calculate inferential statistics and visualize results. These examples demonstrate the potential application of rmcorr for intra-individual research questions, and illustrate how and why results can differ from simple regression/correlation, which addresses inter-individual research questions. The first dataset is composed of repeated measures of age and brain structure volume over two time periods. The second dataset is the average reaction time (RT) and accuracy for repeated blocks of visual search trials.</p>
<sec>
<title>Example 1: age and brain structure volume</title>
<p>Using data from (Raz et al., <xref ref-type="bibr" rid="B31">2005</xref>) we assess the intra-individual relationship between age and cerebellar hemisphere brain (CBH) structural volume. Each measure was assessed on two occasions approximately 5 years apart, thus the data are longitudinal. The researchers found a negative association between age and CBH volume when using separate simple regression/correlation models for each of the two time periods (Raz et al., <xref ref-type="bibr" rid="B31">2005</xref>).</p>
<p>Here, we demonstrate a variety of ways to analyze these data, using both simple regression/correlation and rmcorr: (a) separate simple regression/correlations, (b) rmcorr, and (c) simple regression/correlation using averaged data. For each of these three methods, we describe and plot the generated results and discuss their interpretation.</p>
<p>First, we recreate the original cross-sectional (between-participants) analysis from the paper, where the relationship between age and CBH volume were assessed with separate simple regression/correlation models at Time 1 [<italic>r</italic><sub>(70)</sub> &#x0003D; &#x02212;0.36, 95% CI [&#x02212;0.54, &#x02212;0.14], <italic>p</italic> &#x0003C; 0.01] and Time 2 [<italic>r</italic><sub>(70)</sub> &#x0003D; &#x02212;0.40, 95% CI [&#x02212;0.58, &#x02212;0.19], <italic>p</italic> &#x0003C; 0.001; Figure <xref ref-type="fig" rid="F5">5A</xref>]. The interpretation of these results is cross-sectional: They indicate a moderately negative relationship between age and CBH volume across people, where older individuals tend to have a smaller volume and vice versa. If we instead analyze this data at the intra-individual level using rmcorr, we see a much stronger negative association between age and CBH volume, <italic>r</italic><sub><italic>rm</italic></sub> (71) &#x0003D; &#x02212;0.70, 95% CI [&#x02212;0.81, &#x02212;0.56], <italic>p</italic> &#x0003C; 0.001 (Figure <xref ref-type="fig" rid="F5">5B</xref>). These results are interpreted longitudinally, and indicate that as an individual ages, CBH volume tends to decrease. Finally, it is possible to analyze the relationship between age and CBH volume using each participant&#x00027;s data averaged across the two time periods and a simple regression/correlation. This model produces similar results to the original cross-sectional analysis: <italic>r</italic><sub>(70)</sub> &#x0003D; &#x02212;0.39, 95% CI [&#x02212;0.57, &#x02212;0.17], <italic>p</italic> &#x0003C; 0.01 (Figure <xref ref-type="fig" rid="F5">5C</xref>).</p>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p><bold>Comparison of rmcorr and simple regression/correlation results for age and brain structure volume data</bold>. Each dot represents one of two separate observations of age and CBH for a participant. <bold>(A)</bold> Separate simple regressions/correlations by time: each observation is treated as independent, represented by shading all the data points black. The red line is the fit of the simple regression/correlation. <bold>(B)</bold> Rmcorr: observations from the same participant are given the same color, with corresponding lines to show the rmcorr fit for each participant. <bold>(C)</bold> Simple regression/correlation: averaged by participant. Note that the effect size is greater (stronger negative relationship) using rmcorr <bold>(B)</bold> than with either use of simple regression models <bold>(A)</bold> and <bold>(C)</bold>. This figure was created using data from Raz et al. (<xref ref-type="bibr" rid="B31">2005</xref>).</p></caption>
<graphic xlink:href="fpsyg-08-00456-g0005.tif"/>
</fig>
<p>The three approaches address different research questions. The separate models analyze between-individual or cross-sectional change (Figure <xref ref-type="fig" rid="F5">5A</xref>), whereas rmcorr assesses the intra-individual or longitudinal change (Figure <xref ref-type="fig" rid="F5">5B</xref>). Taken together, differing magnitudes of associations indicate that the negative relationship for age and CBH volume is stronger within-individuals than between-individuals. Separate models presume that longitudinal and cross-sectional data are interchangeable, which is not the case here and is a general challenge with assessing the relationship between changes in age and brain volume.<xref ref-type="fn" rid="fn0005"><sup>5</sup></xref> The third result assesses a similar question as the original, separate models (Figure <xref ref-type="fig" rid="F5">5C</xref>). Although this model is straightforward, using averaged data may reduce or obscure meaningful intra-individual variance, leading to decreased power.</p>
<p>Rmcorr results and the rmcorr plot (a simplified version of Figure <xref ref-type="fig" rid="F5">5B</xref>) are produced by running the following code:</p>
<list list-type="order">
<list-item><p>Rmcorr: <monospace>brainvolage.rmc</monospace> &#x0003C; - <monospace>rmcorr(participant</monospace> &#x0003D; <monospace>Participant, measure1</monospace> &#x0003D; <monospace>Age, measure2</monospace> &#x0003D; <monospace>Volume, dataset</monospace> &#x0003D; <monospace>raz2005)</monospace></p></list-item>
<list-item><p>Rmcorr<monospace>plot: plot(brainvolage.rmc, raz2005</monospace>, <monospace>overall</monospace> &#x0003D; <monospace>F, lty</monospace> &#x0003D; <monospace>2</monospace>, <monospace>xlab</monospace> &#x0003D; <monospace>&#x0201C;Age&#x0201D;</monospace>, <monospace>ylab</monospace> &#x0003D; <monospace>expression(Cerebellar</monospace>&#x0007E;<monospace>Hemisphere</monospace>&#x0007E;<monospace>Volume</monospace>&#x0007E;<monospace>(cm&#x002C6;{3})))</monospace></p></list-item>
</list>
</sec>
<sec>
<title>Example 2: visual search and response time</title>
<p>Using visual search data from one of the many search tasks reported in Gilden et al. (<xref ref-type="bibr" rid="B17">2010</xref>), we assess the intra-individual association between speed and accuracy. The continuous tradeoff between speed (reaction time) and accuracy (correct or incorrect) is well-known and occurs in a variety of tasks assessing cognitive processes (Wickelgren, <xref ref-type="bibr" rid="B43">1977</xref>). In this experiment, 11 participants each completed four separate blocks of 288 visual search trials apiece. RT and accuracy were computed for each block, for each participant.</p>
<p>As in the first example dataset, we worked through three different models for analyzing the relationship between RT and accuracy in Figure <xref ref-type="fig" rid="F6">6</xref>: <xref ref-type="fig" rid="F6">(A)</xref> rmcorr, <xref ref-type="fig" rid="F6">(B)</xref> simple regression/correlation (averaged data), and <xref ref-type="fig" rid="F6">(C)</xref> simple regression/correlation (aggregated data): improperly treating each observation as independent. At the intra-individual level, rmcorr yields a negative relationship between speed and accuracy, <italic>r</italic><sub><italic>rm</italic></sub> (32) &#x0003D; &#x02212;0.41, 95% CI [&#x02212;0.66, &#x02212;0.07], <italic>p</italic> &#x0003C; 0.02 (Figure <xref ref-type="fig" rid="F6">6A</xref>), consistent with a speed-accuracy tradeoff. This indicates that for a given individual, faster speed comes at the cost of reduced accuracy.</p>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p><bold>The x-axis is reaction time (seconds) and the y-axis is accuracy in visual search. (A)</bold> Rmcorr: each dot represents the average reaction time and accuracy for a block, color identifies participant, and colored lines show rmcorr fits for each participant. <bold>(B)</bold> Simple regression/correlation (averaged data): each dot represents a block, (improperly) treated as an independent observation. The red line is the fit to the simple regression/correlation. <bold>(C)</bold> Simple regression/correlation (aggregated data): improperly treating each dot as independent. This figure was created using data from Gilden et al. (<xref ref-type="bibr" rid="B17">2010</xref>).</p></caption>
<graphic xlink:href="fpsyg-08-00456-g0006.tif"/>
</fig>
<p>We can instead average each participant&#x00027;s RT and accuracy across the four experimental blocks and assess the inter-individual relationship between speed and accuracy. A simple regression/correlation model suggests a positive relationship, although the result is not significant: <italic>r</italic><sub>(9)</sub> &#x0003D; 0.59, 95% CI [&#x02212;0.01, 0.88], <italic>p</italic> &#x0003D; 0.06 (Figure <xref ref-type="fig" rid="F6">6B</xref>). Note the decrease in power and that a large correlation, albeit a highly unstable one, is not significant because this model has only nine degrees of freedom. The first and second analyses appear contradictory. However, the appropriate analysis and interpretation of the results depend on the research question. If we want to quantify the speed-accuracy tradeoff, a phenomena that occurs within-individuals, the first analysis with rmcorr is appropriate. If we want to know, between participants and collapsed across blocks, if faster people tend to be more or less accurate, the second analysis is informative (though underpowered).</p>
<p>Finally, we show the result of aggregating all data and improperly treating each observation as independent. Because the data are not averaged, power is much higher, which may make this model initially attractive. Indeed, results show a significant positive relationship between RT and accuracy: <italic>r</italic><sub>(42)</sub> &#x0003D; 0.38, 95% CI [0.09, 0.61], <italic>p</italic> &#x0003D; 0.01 (Figure <xref ref-type="fig" rid="F6">6C</xref>). However, the model violates the assumption of independence; in essence, the data are treated as if 44 separate participants each completed one block of data. This incorrect specification overfits the model, making the results uninterpretable. We include this example to illustrate the importance of identifying the research question of interest, whether within-individuals, between-individuals, or both, and defining the analysis accordingly.</p>
<p>Rmcorr results and an rmcorr plot (similar to Figure <xref ref-type="fig" rid="F6">6A</xref>) are produced by running the following code:</p>
<list list-type="order">
<list-item><p>Rmcorr: <monospace>vissearch.rmc</monospace> &#x0003C; <monospace>-</monospace> <monospace>rmcorr(participant</monospace> &#x0003D; <monospace>sub, measure1</monospace> &#x0003D; <monospace>rt, measure2</monospace> &#x0003D; <monospace>acc, dataset</monospace> &#x0003D; <monospace>gilden2010)</monospace></p></list-item>
<list-item><p>Rmcorr plot: <monospace>plot(vissearch.rmc, gilden2010, overall</monospace> &#x0003D; <monospace>F, lty</monospace> &#x0003D; <monospace>2, xlab</monospace> &#x0003D; <monospace>&#x0201C;Reaction Time,&#x0201D; ylab</monospace> &#x0003D; <monospace>&#x0201C;Accuracy&#x0201D;)</monospace></p></list-item>
</list>
</sec>
</sec>
</sec>
<sec sec-type="conclusions" id="s4">
<title>Conclusion</title>
<p>Unlike standard correlation/regression techniques, rmcorr can handle repeated measures data without violating independence assumptions or requiring first averaging the data. The strengths of rmcorr are in its potential for high statistical power, as well as its simplicity. Rmcorr is ideal for assessing a common association across individuals, specifically a homogenous intra-individual linear association relationship between two paired measures. The two examples provided above illustrate how rmcorr is straightforward to apply, visualize, and interpret with real data.</p>
<p>Because rmcorr analyzes paired repeated measures without averaging or violating the IID assumption it has clear advantages over simple regression/correlation. This is particularly true when there are violations of assumptions that result in biased and spurious parameter estimates. Researchers may find the analysis and visualization tools available in the <bold>rmcorr</bold> package useful for understanding and interpreting paired repeated measures data, especially in cases where these data exhibit non-intuitive patterns (e.g., Simpson&#x00027;s Paradox). This may include assessing and comparing the association within-individuals versus the association between individuals. For more complex datasets, rmcorr is not a replacement for multilevel modeling.</p>
<p>Future work will expand the examples and functionality of the <bold>rmcorr</bold> package. Rmcorr could complement multilevel modeling. For example, it may be informative for assessing collinearity in multilevel models and provide an effect size for a null multilevel model. Other possibilities include more detailed comparisons with a null multilevel model. Another future direction could be determining the stability of the rmcorr coefficient across different sample and effect sizes, building upon research simulating the stability of Pearson correlations (Sch&#x000F6;nbrodt and Perugini, <xref ref-type="bibr" rid="B36">2013</xref>).</p>
</sec>
<sec id="s5">
<title>Ethics statement</title>
<p>Both datasets are from previously published papers, no new data was collected for this manuscript.</p>
</sec>
<sec id="s6">
<title>Author contributions</title>
<p>JB drafted the paper, LM wrote sections, and both revised the paper. Both authors contributed to the analyses and LM wrote the majority of the code for the R package. The authors approve the final version of the paper.</p>
</sec>
<sec id="s7">
<title>Funding</title>
<p>This research was supported by the second author&#x00027;s appointment to the U.S. Army Research Laboratory Postdoctoral Fellowship Program administered by the Oak Ridge Associated Universities under Cooperative Agreement W911NF-16-2-0008. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the U.S. Army Research Laboratory or the U.S. government.</p>
<sec>
<title>Conflict of interest statement</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
</sec>
</body>
<back>
<ack><p>We thank Jessica Schultheis and Walter Bailey for copy-editing and also acknowledge Sean Fitzhugh, Katherine Gamble, and Don Headley for helpful and insightful comments.</p>
</ack><sec sec-type="supplementary-material" id="s8">
<title>Supplementary material</title>
<p>The Supplementary Material for this article can be found online at: <ext-link ext-link-type="uri" xlink:href="http://journal.frontiersin.org/article/10.3389/fpsyg.2017.00456/full#supplementary-material">http://journal.frontiersin.org/article/10.3389/fpsyg.2017.00456/full#supplementary-material</ext-link></p>
<supplementary-material xlink:href="DataSheet1.pdf" id="SM1" mimetype="application/pdf" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Aarts</surname> <given-names>E.</given-names></name> <name><surname>Verhage</surname> <given-names>M.</given-names></name> <name><surname>Veenvliet</surname> <given-names>J. V.</given-names></name> <name><surname>Dolan</surname> <given-names>C. V.</given-names></name> <name><surname>van der Sluis</surname> <given-names>S.</given-names></name></person-group> (<year>2014</year>). <article-title>A solution to dependency: using multilevel analysis to accommodate nested data</article-title>. <source>Nat. Neurosci.</source> <volume>17</volume>, <fpage>491</fpage>&#x02013;<lpage>496</lpage>. <pub-id pub-id-type="doi">10.1038/nn.3648</pub-id><pub-id pub-id-type="pmid">24671065</pub-id></citation></ref>
<ref id="B2">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Babyak</surname> <given-names>M. A.</given-names></name></person-group> (<year>2004</year>). <article-title>What you see may not be what you get: a brief, nontechnical introduction to overfitting in regression-type models</article-title>. <source>Psychosom. Med.</source> <volume>66</volume>, <fpage>411</fpage>&#x02013;<lpage>421</lpage>.</citation></ref>
<ref id="B3">
<citation citation-type="web"><person-group person-group-type="author"><name><surname>Bates</surname> <given-names>D.</given-names></name> <name><surname>Kliegl</surname> <given-names>R.</given-names></name> <name><surname>Vasishth</surname> <given-names>S.</given-names></name> <name><surname>Baayen</surname> <given-names>H.</given-names></name></person-group> (<year>2015</year>). <source>Parsimonious Mixed Models. ArXiv150604967 Stat</source>. Available online at: <ext-link ext-link-type="uri" xlink:href="http://arxiv.org/abs/1506.04967">http://arxiv.org/abs/1506.04967</ext-link> (Accessed February 7, 2016).</citation></ref>
<ref id="B4">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bland</surname> <given-names>J. M.</given-names></name> <name><surname>Altman</surname> <given-names>D. G.</given-names></name></person-group> (<year>1995a</year>). <article-title>Calculating correlation coefficients with repeated observations: part 1 Correlation within subjects</article-title>. <source>BMJ</source> <volume>310</volume>:<fpage>446</fpage>. <pub-id pub-id-type="doi">10.1136/bmj.310.6977.446</pub-id><pub-id pub-id-type="pmid">7873953</pub-id></citation></ref>
<ref id="B5">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bland</surname> <given-names>J. M.</given-names></name> <name><surname>Altman</surname> <given-names>D. G.</given-names></name></person-group> (<year>1995b</year>). <article-title>Calculating correlation coefficients with repeated observations: part 2Correlation between subjects</article-title>. <source>BMJ</source> <volume>310</volume>:<fpage>633</fpage>. <pub-id pub-id-type="doi">10.1136/bmj.310.6980.633</pub-id></citation></ref>
<ref id="B6">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Bolker</surname> <given-names>B. M.</given-names></name></person-group> (<year>2015</year>). <article-title>Linear and generalized linear mixed models</article-title>, in <source>Ecological Statistics: Contemporary Theory and Application</source>, eds <person-group person-group-type="editor"><name><surname>Fox</surname> <given-names>G. A.</given-names></name> <name><surname>Negrete-Yankelevich</surname> <given-names>S.</given-names></name> <name><surname>Sosa</surname> <given-names>V. J.</given-names></name></person-group> (<publisher-loc>Oxford</publisher-loc>: <publisher-name>Oxford University Press</publisher-name>), <fpage>309</fpage>&#x02013;<lpage>334</lpage>. <pub-id pub-id-type="doi">10.1093/acprof:oso/9780199672547.003.0014</pub-id></citation></ref>
<ref id="B7">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Button</surname> <given-names>K. S.</given-names></name> <name><surname>Ioannidis</surname> <given-names>J. P. A.</given-names></name> <name><surname>Mokrysz</surname> <given-names>C.</given-names></name> <name><surname>Nosek</surname> <given-names>B. A.</given-names></name> <name><surname>Flint</surname> <given-names>J.</given-names></name> <name><surname>Robinson</surname> <given-names>E. S. J.</given-names></name> <etal/></person-group>. (<year>2013</year>). <article-title>Power failure: why small sample size undermines the reliability of neuroscience</article-title>. <source>Nat. Rev. Neurosci.</source> <volume>14</volume>, <fpage>365</fpage>&#x02013;<lpage>376</lpage>. <pub-id pub-id-type="doi">10.1038/nrn3475</pub-id><pub-id pub-id-type="pmid">23571845</pub-id></citation></ref>
<ref id="B8">
<citation citation-type="web"><person-group person-group-type="author"><name><surname>Canty</surname> <given-names>A.</given-names></name> <name><surname>Support</surname> <given-names>B. R</given-names></name></person-group> (<year>2015</year>). <source>boot: Bootstrap Functions (Originally by Angelo Canty for S)</source>. Available online at: <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/web/packages/boot/index.html">https://cran.r-project.org/web/packages/boot/index.html</ext-link> (Accessed October <italic>28</italic>, 2015).</citation></ref>
<ref id="B9">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Cohen</surname> <given-names>J.</given-names></name> <name><surname>Cohen</surname> <given-names>P.</given-names></name> <name><surname>West</surname> <given-names>S. G.</given-names></name> <name><surname>Aiken</surname> <given-names>L. S.</given-names></name></person-group> (<year>2003</year>). <source>Applied Multiple Regression/Correlation Analysis for the Behavioral Sciences, 3rd Edn</source>. <publisher-loc>Mahwah, NJ</publisher-loc>: <publisher-name>Lawrence Erlbaum Associates, Inc</publisher-name>.</citation></ref>
<ref id="B10">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cumming</surname> <given-names>G.</given-names></name></person-group> (<year>2014</year>). <article-title>The new statistics why and how</article-title>. <source>Psychol. Sci.</source> <volume>25</volume>, <fpage>7</fpage>&#x02013;<lpage>29</lpage>. <pub-id pub-id-type="doi">10.1177/0956797613504966</pub-id><pub-id pub-id-type="pmid">24220629</pub-id></citation></ref>
<ref id="B11">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>DiCiccio</surname> <given-names>T. J.</given-names></name> <name><surname>Efron</surname> <given-names>B.</given-names></name></person-group> (<year>1996</year>). <article-title>Bootstrap confidence intervals</article-title>. <source>Stat. Sci.</source> <fpage>189</fpage>&#x02013;<lpage>212</lpage>.</citation></ref>
<ref id="B12">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Efron</surname> <given-names>B.</given-names></name> <name><surname>Tibshirani</surname> <given-names>R. J.</given-names></name></person-group> (<year>1994</year>). <source>An Introduction to the Bootstrap</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>CRC Press</publisher-name>.</citation></ref>
<ref id="B13">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Estes</surname> <given-names>W. K.</given-names></name></person-group> (<year>1956</year>). <article-title>The problem of inference from curves based on group data</article-title>. <source>Psychol. Bull.</source> <volume>53</volume>, <fpage>134</fpage>. <pub-id pub-id-type="doi">10.1037/h0045156</pub-id><pub-id pub-id-type="pmid">13297917</pub-id></citation></ref>
<ref id="B14">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Faul</surname> <given-names>F.</given-names></name> <name><surname>Erdfelder</surname> <given-names>E.</given-names></name> <name><surname>Buchner</surname> <given-names>A.</given-names></name> <name><surname>Lang</surname> <given-names>A.-G.</given-names></name></person-group> (<year>2009</year>). <article-title>Statistical power analyses using G<sup>&#x0002A;</sup>Power 3.1: tests for correlation and regression analyses</article-title>. <source>Behav. Res. Methods</source> <volume>41</volume>, <fpage>1149</fpage>&#x02013;<lpage>1160</lpage>. <pub-id pub-id-type="doi">10.3758/BRM.41.4.1149</pub-id><pub-id pub-id-type="pmid">19897823</pub-id></citation></ref>
<ref id="B15">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gelman</surname> <given-names>A.</given-names></name></person-group> (<year>2005</year>). <article-title>Analysis of variance? Why it is more important than ever</article-title>. <source>Ann. Stat.</source> <volume>33</volume>, <fpage>1</fpage>&#x02013;<lpage>53</lpage>. <pub-id pub-id-type="doi">10.1214/009053604000001048</pub-id></citation></ref>
<ref id="B16">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Gelman</surname> <given-names>A.</given-names></name> <name><surname>Hill</surname> <given-names>J.</given-names></name></person-group> (<year>2007</year>). <source>Data Analysis Using Regression and Multilevel/Hierarchical Models</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Cambridge University Press</publisher-name>.</citation></ref>
<ref id="B17">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gilden</surname> <given-names>D. L.</given-names></name> <name><surname>Thornton</surname> <given-names>T. L.</given-names></name> <name><surname>Marusich</surname> <given-names>L. R.</given-names></name></person-group> (<year>2010</year>). <article-title>The serial process in visual search</article-title>. <source>J. Exp. Psychol. Hum. Percept. Perform.</source> <volume>36</volume>, <fpage>533</fpage>. <pub-id pub-id-type="doi">10.1037/a0016464</pub-id><pub-id pub-id-type="pmid">20515187</pub-id></citation></ref>
<ref id="B18">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gueorguieva</surname> <given-names>R.</given-names></name> <name><surname>Krystal</surname> <given-names>J. H.</given-names></name></person-group> (<year>2004</year>). <article-title>Move over anova: progress in analyzing repeated-measures data andits reflection in papers published in the archives of general psychiatry</article-title>. <source>Arch. Gen. Psychiatry</source> <volume>61</volume>, <fpage>310</fpage>&#x02013;<lpage>317</lpage>. <pub-id pub-id-type="doi">10.1001/archpsyc.61.3.310</pub-id></citation></ref>
<ref id="B19">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Howell</surname> <given-names>D.</given-names></name></person-group> (<year>1997</year>). <source>Statistical Methods for Psychology, 4th Edn.</source> <publisher-loc>Belmont, CA</publisher-loc>: <publisher-name>Wadsworth Publishing Company</publisher-name>.</citation></ref>
<ref id="B20">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>John</surname> <given-names>O. P.</given-names></name> <name><surname>Benet-Martinez</surname> <given-names>V.</given-names></name></person-group> (<year>2014</year>). <article-title>Measurement: reliability, construction validation, and scale construction</article-title>, in <source>Handbook of Research Methods in Social and Personality Psychology</source>, eds <person-group person-group-type="editor"><name><surname>Reis</surname> <given-names>H. T.</given-names></name> <name><surname>Judd</surname> <given-names>C. M.</given-names></name></person-group> (<publisher-loc>New York, NY</publisher-loc>: <publisher-name>Cambridge University Press</publisher-name>), <fpage>473</fpage>&#x02013;<lpage>503</lpage>.</citation></ref>
<ref id="B21">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Johnston</surname> <given-names>J.</given-names></name> <name><surname>DiNardo</surname> <given-names>J. E.</given-names></name></person-group> (<year>1997</year>). <source>Econometric Methods, 3rd Edn</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>McGraw-Hill Compaines, Inc</publisher-name>.</citation></ref>
<ref id="B22">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kenny</surname> <given-names>D. A.</given-names></name> <name><surname>Judd</surname> <given-names>C. M.</given-names></name></person-group> (<year>1986</year>). <article-title>Consequences of violating the independence assumption in analysis of variance</article-title>. <source>Psychol. Bull.</source> <volume>99</volume>:<fpage>422</fpage>. <pub-id pub-id-type="doi">10.1037/0033-2909.99.3.422</pub-id></citation></ref>
<ref id="B23">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kievit</surname> <given-names>R. A.</given-names></name> <name><surname>Frankenhuis</surname> <given-names>W. E.</given-names></name> <name><surname>Waldorp</surname> <given-names>L. J.</given-names></name> <name><surname>Borsboom</surname> <given-names>D.</given-names></name></person-group> (<year>2013</year>). <article-title>Simpson&#x00027;s paradox in psychological science: a practical guide</article-title>. <source>Front. Psychol</source>. <volume>4</volume>:<fpage>513</fpage>. <pub-id pub-id-type="doi">10.3389/fpsyg.2013.00513</pub-id><pub-id pub-id-type="pmid">23964259</pub-id></citation></ref>
<ref id="B24">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Kreft</surname> <given-names>I.</given-names></name> <name><surname>de Leeuw</surname> <given-names>J.</given-names></name></person-group> (<year>1998</year>). <source>Introducing Multilevel Modeling.</source> <publisher-loc>Thousand Oaks, CA</publisher-loc>: <publisher-name>SAGE Publications</publisher-name>.</citation></ref>
<ref id="B25">
<citation citation-type="other"><person-group person-group-type="author"><name><surname>Matuschek</surname> <given-names>H.</given-names></name> <name><surname>Kliegl</surname> <given-names>R.</given-names></name> <name><surname>Vasishth</surname> <given-names>S.</given-names></name> <name><surname>Baayen</surname> <given-names>H.</given-names></name> <name><surname>Bates</surname> <given-names>D.</given-names></name></person-group> (<year>2015</year>). <source>Balancing Type I Error and Power in Linear Mixed Models</source>. ArXiv Prepr. ArXiv151101864.</citation></ref>
<ref id="B26">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Miller</surname> <given-names>G. A.</given-names></name> <name><surname>Chapman</surname> <given-names>J. P.</given-names></name></person-group> (<year>2001</year>). <article-title>Misunderstanding analysis of covariance</article-title>. <source>J. Abnorm. Psychol.</source> <volume>110</volume>:<fpage>40</fpage>. <pub-id pub-id-type="doi">10.1037/0021-843X.110.1.40</pub-id><pub-id pub-id-type="pmid">11261398</pub-id></citation></ref>
<ref id="B27">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Molenaar</surname> <given-names>P. C.</given-names></name></person-group> (<year>2004</year>). <article-title>A manifesto on psychology as idiographic science: bringing the person back into scientific psychology, this time forever</article-title>. <source>Measurement</source> <volume>2</volume>, <fpage>201</fpage>&#x02013;<lpage>218</lpage>. <pub-id pub-id-type="doi">10.1207/s15366359mea0204_1</pub-id></citation></ref>
<ref id="B28">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Molenaar</surname> <given-names>P. C.</given-names></name> <name><surname>Campbell</surname> <given-names>C. G.</given-names></name></person-group> (<year>2009</year>). <article-title>The new person-specific paradigm in psychology</article-title>. <source>Curr. Dir. Psychol. Sci.</source> <volume>18</volume>, <fpage>112</fpage>&#x02013;<lpage>117</lpage>. <pub-id pub-id-type="doi">10.1111/j.1467-8721.2009.01619.x</pub-id></citation></ref>
<ref id="B29">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Myung</surname> <given-names>I. J.</given-names></name> <name><surname>Kim</surname> <given-names>C.</given-names></name> <name><surname>Pitt</surname> <given-names>M. A.</given-names></name></person-group> (<year>2000</year>). <article-title>Toward an explanation of the power law artifact: insights from response surface analysis</article-title>. <source>Mem. Cognit.</source> <volume>28</volume>, <fpage>832</fpage>&#x02013;<lpage>840</lpage>. <pub-id pub-id-type="doi">10.3758/BF03198418</pub-id><pub-id pub-id-type="pmid">10983457</pub-id></citation></ref>
<ref id="B30">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Quen&#x000E9;</surname> <given-names>H.</given-names></name> <name><surname>van den Bergh</surname> <given-names>H.</given-names></name></person-group> (<year>2004</year>). <article-title>On multilevel modeling of data from repeated measures designs: a tutorial</article-title>. <source>Speech Commun.</source> <volume>43</volume>, <fpage>103</fpage>&#x02013;<lpage>121</lpage>. <pub-id pub-id-type="doi">10.1016/j.specom.2004.02.004</pub-id></citation></ref>
<ref id="B31">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Raz</surname> <given-names>N.</given-names></name> <name><surname>Lindenberger</surname> <given-names>U.</given-names></name> <name><surname>Rodrigue</surname> <given-names>K. M.</given-names></name> <name><surname>Kennedy</surname> <given-names>K. M.</given-names></name> <name><surname>Head</surname> <given-names>D.</given-names></name> <name><surname>Williamson</surname> <given-names>A.</given-names></name> <etal/></person-group>. (<year>2005</year>). <article-title>Regional brain changes in aging healthy adults: general trends, individual differences and modifiers</article-title>. <source>Cereb. Cortex</source> <volume>15</volume>, <fpage>1676</fpage>&#x02013;<lpage>1689</lpage>. <pub-id pub-id-type="doi">10.1093/cercor/bhi044</pub-id><pub-id pub-id-type="pmid">15703252</pub-id></citation></ref>
<ref id="B32">
<citation citation-type="book"><person-group person-group-type="author"><collab>R Core Team</collab></person-group> (<year>2017</year>). <source>R: A Language and Environment for Statistical Computing.</source> <publisher-loc>Vienna</publisher-loc>: <publisher-name>R Foundation for Statistical Computing</publisher-name>. Available online at: <ext-link ext-link-type="uri" xlink:href="https://www.R-project.org/">https://www.R-project.org/</ext-link></citation></ref>
<ref id="B33">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Robinson</surname> <given-names>W.</given-names></name></person-group> (<year>2009</year>). <article-title>Ecological Correlations and the behavior of Individuals</article-title>. <source>Int. J. Epidemiol.</source> <volume>38</volume>, <fpage>337</fpage>&#x02013;<lpage>341</lpage>. <pub-id pub-id-type="doi">10.1093/ije/dyn357</pub-id><pub-id pub-id-type="pmid">19179346</pub-id></citation></ref>
<ref id="B34">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rogosa</surname> <given-names>D.</given-names></name></person-group> (<year>1980</year>). <article-title>Comparing nonparallel regression lines</article-title>. <source>Psychol. Bull.</source> <volume>88</volume>, <fpage>307</fpage>&#x02013;<lpage>321</lpage>. <pub-id pub-id-type="doi">10.1037/0033-2909.88.2.307</pub-id></citation></ref>
<ref id="B35">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Salthouse</surname> <given-names>T. A.</given-names></name></person-group> (<year>2011</year>). <article-title>Cognitive correlates of cross-sectional differences and longitudinal changes in trail making performance</article-title>. <source>J. Clin. Exp. Neuropsychol.</source> <volume>33</volume>, <fpage>242</fpage>&#x02013;<lpage>248</lpage>. <pub-id pub-id-type="doi">10.1080/13803395.2010.509922</pub-id><pub-id pub-id-type="pmid">20865618</pub-id></citation></ref>
<ref id="B36">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sch&#x000F6;nbrodt</surname> <given-names>F. D.</given-names></name> <name><surname>Perugini</surname> <given-names>M.</given-names></name></person-group> (<year>2013</year>). <article-title>At what sample size do correlations stabilize?</article-title> <source>J. Res. Personal.</source> <volume>47</volume>, <fpage>609</fpage>&#x02013;<lpage>612</lpage>. <pub-id pub-id-type="doi">10.1016/j.jrp.2013.05.009</pub-id></citation></ref>
<ref id="B37">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Singer</surname> <given-names>J. D.</given-names></name> <name><surname>Willett</surname> <given-names>J. B.</given-names></name></person-group> (<year>2003</year>). <source>Applied Longitudinal Data Analysis: Modeling Change and Event Occurrence.</source> <publisher-loc>Oxford</publisher-loc>: <publisher-name>Oxford University Press</publisher-name></citation></ref>
<ref id="B38">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Tabachnick</surname> <given-names>B. G.</given-names></name> <name><surname>Fidell</surname> <given-names>L. S.</given-names></name></person-group> (<year>2007</year>). <source>Using Multivariate Statistics, 4th Edn</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Pearson Education</publisher-name>.</citation></ref>
<ref id="B39">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Tu</surname> <given-names>Y.-K.</given-names></name> <name><surname>Gunnell</surname> <given-names>D.</given-names></name> <name><surname>Gilthorpe</surname> <given-names>M. S.</given-names></name></person-group> (<year>2008</year>). <article-title>Simpson&#x00027;s Paradox, Lord&#x00027;s Paradox, and Suppression Effects are the same phenomenon the reversal paradox</article-title>. <source>Emerg. Themes Epidemiol.</source> <volume>5</volume>:<fpage>2</fpage>. <pub-id pub-id-type="doi">10.1186/1742-7622-5-2</pub-id><pub-id pub-id-type="pmid">18211676</pub-id></citation></ref>
<ref id="B40">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Tukey</surname> <given-names>J. W.</given-names></name></person-group> (<year>1977</year>). <source>Exploratory Data Analysis</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Addison-Wesley Publishing Company</publisher-name>.</citation></ref>
<ref id="B41">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Underwood</surname> <given-names>B. J.</given-names></name></person-group> (<year>1975</year>). <article-title>Individual differences as a crucible in theory construction</article-title>. <source>Am. Psychol.</source> <volume>30</volume>, <fpage>128</fpage>. <pub-id pub-id-type="doi">10.1037/h0076759</pub-id></citation></ref>
<ref id="B42">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Vogel</surname> <given-names>E. K.</given-names></name> <name><surname>Awh</surname> <given-names>E.</given-names></name></person-group> (<year>2008</year>). <article-title>How to exploit diversity for scientific gain: using individual differences to constrain cognitive theory</article-title>. <source>Curr. Dir. Psychol. Sci.</source> <volume>17</volume>, <fpage>171</fpage>&#x02013;<lpage>176</lpage>. <pub-id pub-id-type="doi">10.1111/j.1467-8721.2008.00569.x</pub-id></citation></ref>
<ref id="B43">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wickelgren</surname> <given-names>W. A.</given-names></name></person-group> (<year>1977</year>). <article-title>Speed-accuracy tradeoff and information processing dynamics</article-title>. <source>Acta Psychol.</source> <volume>41</volume>, <fpage>67</fpage>&#x02013;<lpage>85</lpage>. <pub-id pub-id-type="doi">10.1016/0001-6918(77)90012-9</pub-id></citation></ref>
<ref id="B44">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wilkinson</surname> <given-names>L.</given-names></name></person-group> (<year>1999</year>). <article-title>Statistical methods in psychology journals: guidelines and explanations</article-title>. <source>Am. Psychol.</source> <volume>54</volume>, <fpage>594</fpage>&#x02013;<lpage>604</lpage>. <pub-id pub-id-type="doi">10.1037/0003-066X.54.8.594</pub-id></citation></ref>
</ref-list>
<fn-group>
<fn id="fn0001"><p><sup>1</sup>In ANCOVA, parallel slopes are tested by adding an interaction term to the model for the factor by the covariate (e.g., Tabachnick and Fidell, <xref ref-type="bibr" rid="B38">2007</xref>). A significant interaction indicates non-parallel slopes, which for ANCOVA may be considered an uninterpretable model depending on a variety of factors (e.g., Miller and Chapman, <xref ref-type="bibr" rid="B26">2001</xref>; Tabachnick and Fidell, <xref ref-type="bibr" rid="B38">2007</xref>). Although such an interaction test could be used with rmcorr, we contend it is not likely to be informative because non-parallel slopes would be appropriately indicated by the rmcorr effect size and multilevel modeling could be used instead.</p></fn>
<fn id="fn0002"><p><sup>2</sup>Slopes can be non-parallel in countless ways (e.g., strongly heterogeneous with opposing directions from positive to negative to weakly heterogeneous, all in the same direction with small variation). This is supported by evidence that, for ANCOVA, the degree of heterogeneity in slopes is what matters not merely the presence of a statistically significant interaction (Rogosa, <xref ref-type="bibr" rid="B34">1980</xref>).</p></fn>
<fn id="fn0003"><p><sup>3</sup>Multilevel modeling has many different names (e.g., hierarchical linear modeling, generalized linear [mixed] modeling, and linear mixed effects modeling).</p></fn>
<fn id="fn0004"><p><sup>4</sup>In partial pooling the levels must influence each other, see Gelman and Hill (<xref ref-type="bibr" rid="B16">2007</xref>) and Kreft and de Leeuw (<xref ref-type="bibr" rid="B24">1998</xref>).</p></fn>
<fn id="fn0005"><p><sup>5</sup>Observed associations for changes in age and brain volume with longitudinal (within-individual) versus cross-sectional (between-individual) designs are not necessarily equivalent (Salthouse, <xref ref-type="bibr" rid="B35">2011</xref>).</p></fn>
</fn-group>
</back>
</article>
