<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Reliability Analysis | Thiago Oliveira</title>
    <link>https://prof-thiagooliveira.netlify.app/tags/reliability-analysis/</link>
      <atom:link href="https://prof-thiagooliveira.netlify.app/tags/reliability-analysis/index.xml" rel="self" type="application/rss+xml" />
    <description>Reliability Analysis</description>
    <generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Fri, 01 Nov 2024 00:00:00 +0000</lastBuildDate>
    <image>
      <url>https://prof-thiagooliveira.netlify.app/media/logo_hua8192a3d26f52862b6ecd0fa00b0dcdd_44669_300x300_fit_lanczos_3.png</url>
      <title>Reliability Analysis</title>
      <link>https://prof-thiagooliveira.netlify.app/tags/reliability-analysis/</link>
    </image>
    
    <item>
      <title>matrixCorr: Correlation, Agreement &amp; Reliability Toolkit</title>
      <link>https://prof-thiagooliveira.netlify.app/rpackage/matrixcorr/</link>
      <pubDate>Fri, 01 Nov 2024 00:00:00 +0000</pubDate>
      <guid>https://prof-thiagooliveira.netlify.app/rpackage/matrixcorr/</guid>
      <description>&lt;p&gt;&lt;code&gt;matrixCorr&lt;/code&gt; is an R package for analysing association, agreement, and reliability without switching between unrelated interfaces. It is designed around a practical distinction: correlation asks whether variables move together, agreement asks whether methods produce sufficiently similar values on the measurement scale, and reliability asks how much variation reflects stable differences among subjects rather than measurement error or method disagreement.&lt;/p&gt;
&lt;p&gt;The package combines five workflow families. Wide-data functions accept a matrix or data frame with variables in columns and return square results indexed by the original column names. Repeated-measures functions use long-format data with explicit subject, method, and time identifiers where required. Most fitted objects support a familiar inspection pattern: &lt;code&gt;print()&lt;/code&gt; for a compact preview, &lt;code&gt;summary()&lt;/code&gt; for a richer digest, &lt;code&gt;plot()&lt;/code&gt; for a graphical summary, and accessors such as &lt;code&gt;estimate()&lt;/code&gt;, &lt;code&gt;confint()&lt;/code&gt;, &lt;code&gt;ci()&lt;/code&gt;, and &lt;code&gt;tidy()&lt;/code&gt; where appropriate.&lt;/p&gt;
&lt;h3 id=&#34;choose-a-workflow&#34;&gt;Choose a workflow&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scientific question or data structure&lt;/th&gt;
&lt;th&gt;Start with&lt;/th&gt;
&lt;th&gt;What it targets&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Approximately linear association among continuous variables&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pearson_corr()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Pearson correlation on the original measurement scale&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Monotone association or rank-based analysis&lt;/td&gt;
&lt;td&gt;&lt;code&gt;spearman_rho()&lt;/code&gt; or &lt;code&gt;kendall_tau()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Rank correlation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Non-linear dependence that Pearson correlation may miss&lt;/td&gt;
&lt;td&gt;&lt;code&gt;dcor()&lt;/code&gt; or &lt;code&gt;hsic()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;General dependence rather than only linear association&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Directed dependence&lt;/td&gt;
&lt;td&gt;&lt;code&gt;xi_corr()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Chatterjee&amp;rsquo;s asymmetric rank correlation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Outlier-prone numeric data&lt;/td&gt;
&lt;td&gt;&lt;code&gt;bicor()&lt;/code&gt;, &lt;code&gt;pbcor()&lt;/code&gt;, &lt;code&gt;wincor()&lt;/code&gt;, or &lt;code&gt;skipped_corr()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Robust alternatives to ordinary correlation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conditional association after accounting for other variables&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pcorr()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Partial correlation, including regularised estimators&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;High-dimensional data where &lt;strong&gt;p &amp;gt;= n&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;shrinkage_corr()&lt;/code&gt; or regularised &lt;code&gt;pcorr()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Better-conditioned correlation or precision estimates&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Binary, ordinal, or mixed-scale variables&lt;/td&gt;
&lt;td&gt;&lt;code&gt;tetrachoric()&lt;/code&gt;, &lt;code&gt;polychoric()&lt;/code&gt;, &lt;code&gt;polyserial()&lt;/code&gt;, or &lt;code&gt;biserial()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Latent association under threshold models&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Similarity between measurement methods&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ccc()&lt;/code&gt; or &lt;code&gt;ba()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Concordance, bias, and limits of agreement&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reliability across methods or raters&lt;/td&gt;
&lt;td&gt;&lt;code&gt;icc()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Pairwise or overall intraclass correlation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nominal agreement between two raters&lt;/td&gt;
&lt;td&gt;&lt;code&gt;cohen_kappa()&lt;/code&gt; or &lt;code&gt;gwet_ac()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Cohen&amp;rsquo;s kappa or Gwet&amp;rsquo;s AC1/AC2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ordered agreement between two raters&lt;/td&gt;
&lt;td&gt;&lt;code&gt;weighted_kappa()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Weighted kappa with unweighted, linear, quadratic, or custom weights&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nominal agreement across multiple raters&lt;/td&gt;
&lt;td&gt;&lt;code&gt;multirater_kappa()&lt;/code&gt; or &lt;code&gt;gwet_ac()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Fleiss, Randolph, or panel AC1/AC2 agreement&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Panel reliability with nominal, ordinal, interval, or ratio disagreement&lt;/td&gt;
&lt;td&gt;&lt;code&gt;krippendorff_alpha()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Krippendorff&amp;rsquo;s alpha, including missing ratings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reliability expressed as an agreement probability curve&lt;/td&gt;
&lt;td&gt;&lt;code&gt;prob_agree()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Probability of agreement for binomial reliability curves&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Individual agreement with replicated readings&lt;/td&gt;
&lt;td&gt;&lt;code&gt;cia()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Coefficient of individual agreement relative to within-method disagreement&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Within-subject association over repeated observations&lt;/td&gt;
&lt;td&gt;&lt;code&gt;rmcorr()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Repeated-measures correlation after subject-level offsets are removed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Repeated-measures agreement or reliability&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ba_rm()&lt;/code&gt;, &lt;code&gt;ccc_rm_ustat()&lt;/code&gt;, &lt;code&gt;ccc_rm_reml()&lt;/code&gt;, &lt;code&gt;icc_rm_reml()&lt;/code&gt;, or &lt;code&gt;cia_rm()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Repeated bias, concordance, reliability, or individual agreement&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Concordance for count data&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ccc_glmm()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Poisson GLMM concordance, including total, inter-, and method-specific intra-CCC&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id=&#34;quick-start&#34;&gt;Quick start&lt;/h3&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-r&#34; data-lang=&#34;r&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;library&lt;/span&gt;(matrixCorr)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;set.seed&lt;/span&gt;(&lt;span style=&#34;color:#099&#34;&gt;1&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;X &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;&amp;lt;-&lt;/span&gt; &lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;as.data.frame&lt;/span&gt;(&lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;matrix&lt;/span&gt;(&lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;rnorm&lt;/span&gt;(&lt;span style=&#34;color:#099&#34;&gt;300&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#099&#34;&gt;6&lt;/span&gt;), ncol &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#099&#34;&gt;6&lt;/span&gt;))
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;names&lt;/span&gt;(X) &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;&amp;lt;-&lt;/span&gt; &lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;paste0&lt;/span&gt;(&lt;span style=&#34;color:#d14&#34;&gt;&amp;#34;V&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#099&#34;&gt;1&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#099&#34;&gt;6&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;fit &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;&amp;lt;-&lt;/span&gt; &lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;pearson_corr&lt;/span&gt;(X, ci &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;TRUE&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;print&lt;/span&gt;(fit, digits &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#099&#34;&gt;2&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;summary&lt;/span&gt;(fit)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;plot&lt;/span&gt;(fit)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;tidy&lt;/span&gt;(fit)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The same matrix-oriented pattern extends to rank correlation, distance correlation, robust estimators, shrinkage correlation, latent correlation, concordance, and ICC. For repeated-measures designs, the package keeps a shared long-format interface but changes the estimator to account for within-subject structure explicitly.&lt;/p&gt;
&lt;h3 id=&#34;installation&#34;&gt;Installation&lt;/h3&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-r&#34; data-lang=&#34;r&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#998;font-style:italic&#34;&gt;# CRAN release&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;install.packages&lt;/span&gt;(&lt;span style=&#34;color:#d14&#34;&gt;&amp;#34;matrixCorr&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#998;font-style:italic&#34;&gt;# Development version from GitHub&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#998;font-style:italic&#34;&gt;# install.packages(&amp;#34;remotes&amp;#34;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;remotes&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;::&lt;/span&gt;&lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;install_github&lt;/span&gt;(&lt;span style=&#34;color:#d14&#34;&gt;&amp;#34;Prof-ThiagoOliveira/matrixCorr&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;important-distinctions&#34;&gt;Important distinctions&lt;/h3&gt;
&lt;p&gt;The functions are intentionally related, but they are not interchangeable:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;ccc()&lt;/code&gt; summarises pairwise concordance by combining precision and accuracy, while &lt;code&gt;ba()&lt;/code&gt; makes bias and limits of agreement visible on the original scale.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;icc(scope = &amp;quot;pairwise&amp;quot;)&lt;/code&gt; asks how reliable each method pair is. &lt;code&gt;icc(scope = &amp;quot;overall&amp;quot;)&lt;/code&gt; asks how reliable the full set of methods is when analysed jointly.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;icc(type = &amp;quot;consistency&amp;quot;)&lt;/code&gt; discounts additive method shifts, whereas &lt;code&gt;icc(type = &amp;quot;agreement&amp;quot;)&lt;/code&gt; penalises them.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;rmcorr()&lt;/code&gt; targets within-subject association. It is not an agreement coefficient.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ccc_rm_ustat()&lt;/code&gt; is a non-parametric repeated-measures CCC route. &lt;code&gt;ccc_rm_reml()&lt;/code&gt; is the model-based path when variance components and residual structure need to be handled explicitly.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;icc_rm_reml()&lt;/code&gt; uses the repeated-measures REML backend but targets reliability rather than CCC concordance.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;implementation&#34;&gt;Implementation&lt;/h3&gt;
&lt;p&gt;Most computational functions expose &lt;code&gt;n_threads&lt;/code&gt;, with package-wide defaults configurable through &lt;code&gt;options(matrixCorr.threads = ...)&lt;/code&gt;. Performance-critical paths use optimized C++ backends with Rcpp, BLAS/OpenMP, and memory-aware symmetric updates. Optional Shiny viewers support interactive matrix inspection.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&#34;https://github.com/Prof-ThiagoOliveira/matrixCorr&#34;&gt;GitHub repository&lt;/a&gt; contains the README, issue tracker, and six workflow vignettes:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/Prof-ThiagoOliveira/matrixCorr/blob/main/vignettes/v01-matrixCorr-introduction.Rmd&#34;&gt;Introduction to matrixCorr&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/Prof-ThiagoOliveira/matrixCorr/blob/main/vignettes/v02-wide-correlation-workflows.Rmd&#34;&gt;Wide Correlation Workflows&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/Prof-ThiagoOliveira/matrixCorr/blob/main/vignettes/v03-robust-and-highdim-correlation.Rmd&#34;&gt;Robust and High-Dimensional Correlation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/Prof-ThiagoOliveira/matrixCorr/blob/main/vignettes/v04-latent-and-mixed-scale-correlation.Rmd&#34;&gt;Latent and Mixed-Scale Correlation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/Prof-ThiagoOliveira/matrixCorr/blob/main/vignettes/v05-agreement-and-icc-wide.Rmd&#34;&gt;Agreement and ICC for Wide Data&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/Prof-ThiagoOliveira/matrixCorr/blob/main/vignettes/v06-repeated-measures-workflows.Rmd&#34;&gt;Repeated-Measures Workflows&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
</description>
    </item>
    
  </channel>
</rss>
