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.


翻译:皮尔逊相关系数通常用作两个响应变量间关联强度的单数值概括。然而在许多应用中,关联强度本身具有异质性,可能随人口学、生物学、实验或环境协变量而改变。regcorr包实现了将皮尔逊相关系数与协变量线性预测因子相关联的回归模型。该包支持二元正态响应和二元伯努利响应,提供牛顿-拉夫森估计程序,包含用于模拟研究的数据生成器,并提供了基于自助法的子程序来评估协变量效应的显著性与统计检验效能。其实现遵循Dufera、Liu和Xu(2023)的似然框架,通过轻量级R接口暴露功能,无需编译代码且依赖项极少。本文描述了统计模型、regcorr的计算设计、可复现的使用示例,以及解释协变量依赖性相关系数的实用指南。该包以MIT许可协议发布于综合R档案网络,网址为https://CRAN.R-project.org/package=regcorr。

0
下载
关闭预览

相关内容

专知会员服务
24+阅读 · 2021年1月30日
可解释强化学习,Explainable Reinforcement Learning: A Survey
专知会员服务
133+阅读 · 2020年5月14日
推荐召回算法之深度召回模型串讲
AINLP
22+阅读 · 2019年6月14日
技术贴│R语言13种相关矩阵图
R语言中文社区
15+阅读 · 2018年11月26日
R语言数据挖掘利器:Rattle包
R语言中文社区
21+阅读 · 2018年11月17日
数据分析师应该知道的16种回归方法:负二项回归
数萃大数据
74+阅读 · 2018年9月16日
数据分析师应该知道的16种回归方法:泊松回归
数萃大数据
35+阅读 · 2018年9月13日
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
5+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
4+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
VIP会员
最新内容
边缘计算的军事应用
专知会员服务
6+阅读 · 8月9日
一种考虑资源机动性的武器目标分配混合算法
专知会员服务
8+阅读 · 8月8日
《多域冲突比较支持模型》60页
专知会员服务
13+阅读 · 8月7日
相关VIP内容
专知会员服务
24+阅读 · 2021年1月30日
可解释强化学习,Explainable Reinforcement Learning: A Survey
专知会员服务
133+阅读 · 2020年5月14日
相关基金
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
5+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
4+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员