r - r cor spearman 处理缺失值
问题描述
我想计算非正态分布的变量之间的相关性,所以我将使用 Spearman。有一些缺失值,我不知道如何处理它们。在有关 Spearman 的 cor 函数中,它说:
"In the case of missing values, the ranks are calculated depending on the value of use, either based on complete observations, or based on pairwise completeness with reranking for each pair."
它还说:
"For cov and var, "pairwise.complete.obs" only works with the "pearson" method."
那么如何将“或基于对每对的重新排序的成对完整性”作为“使用”的标准呢?
cor(df, method="spearman", use= WHAT?) :)
解决方案
推荐阅读
- regex - 正则表达式从不带空格的括号中获取名称
- amazon-web-services - Lambda 读取 DynamoDB 并发送到 ML Endpoint
- flexbox - 我可以改变 Bootstrap 放置列的方式吗?
- python - How to convert aggregates in pandas into string?
- android - 使用文件传输插件从科尔多瓦的 s3 服务器下载图像文件
- android - 为什么没有数据库文件
- cryptography - 了解明文组合规则、加密算法和 2 个密文块,如何找到明文和密钥
- azure - Azure 持久功能:JsonSerializationException 通过将复杂对象从触发器传递到协调器
- python - 每次我按下一个键时 CLI 清除屏幕
- wordpress - 单个 URL mod_rewrite 不断回到原始 URL