regcorr: An R Package for Regression Models of Pearson Correlation Coefficients

๐Ÿ“… 2026-06-03
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF

career value

166K/year
๐Ÿค– AI Summary
Traditional Pearson correlation coefficients cannot capture the heterogeneity in association strength that varies with covariates. This work proposes a likelihood-based regression framework that models the correlation coefficient as a function of covariates, accommodating both bivariate normal and Bernoulli responses. Parameter estimation is carried out via the Newtonโ€“Raphson algorithm, and statistical inference is facilitated through bootstrapping. The method is implemented for the first time in regcorr, a lightweight R package requiring no compilation and minimal dependencies, now available on CRAN. The package supports reproducible analysis and includes practical guidance, substantially enhancing the flexibility and feasibility of modeling covariate-dependent correlation structures.
๐Ÿ“ Abstract
Pearson's correlation coefficient is commonly used as a single-number summary of association between two responses. In many applications, however, the strength of association is itself heterogeneous and may vary with demographic, biological, experimental, or environmental covariates. The regcorr package implements regression models in which a Pearson correlation coefficient is linked to a linear predictor of covariates. The package supports bivariate normal responses and bivariate Bernoulli responses, provides Newton-Raphson estimation routines, includes data generators for simulation studies, and supplies a bootstrap-based subroutine for assessing the significance and power of covariate effects. The implementation follows the likelihood-based framework of Dufera, Liu, and Xu (2023) and exposes it through a lightweight R interface with no compiled code and minimal dependencies. This paper describes the statistical model, the computational design of regcorr, reproducible usage examples, and practical guidance for interpreting covariate-dependent correlations. The package is available from the Comprehensive R Archive Network at https://CRAN.R-project.org/package=regcorr under the MIT license.
Problem

Research questions and friction points this paper is trying to address.

correlation heterogeneity
covariate-dependent correlation
Pearson correlation coefficient
regression models
Innovation

Methods, ideas, or system contributions that make the work stand out.

regression models
Pearson correlation
covariate-dependent correlation
likelihood-based inference
R package
๐Ÿ”Ž Similar Papers
No similar papers found.