r - R - Friedman_test - 错误:不是未复制的完整块设计
问题描述
我有一个庞大的论文实验数据集,需要 15 天才能收集。实验重复 15 次。我想运行friedman_test 来检查我的数据在统计上是否不同。我使用了以下代码片段
Data <- read.csv(file = 'myR/statistics.csv')
Data %>% group_by(algorithm) %>% get_summary_stats(MutationScore, type = "common")
res.fried <- Data %>% friedman_test(MutationScore ~ algorithm |CUT)
我的数据如下所示, 如您所见,重复了实验。绿色是第一次运行,黄色是第二次运行。
当我尝试运行上述 R 代码时,出现以下错误 Exception: not an unreplicated complete block design
我在堆栈溢出时读到我的数据可能无效,或者我需要使用矩阵。但是,我对 R 很陌生,并且被困了一周。我忍不住了。
那么,我怎样才能忽略无效行?以及如何解决我的friedman_test 问题?
我感谢您的帮助。
谢谢哈迪
解决方案
推荐阅读
- python - 关于 Python 输入和拆分错误
- python - 回归模型不成功-python
- sql - 不使用 EXISTS 引入子查询时,选择列表中只能指定一个表达式一直失败
- python - Python matplotlib - 如何选择较深的颜色
- python - 如何在管理面板中显示 Django 模型的外键作为其属性?
- node.js - Telegraf.js 使用 ctx.reply || bot.action/hears 内循环
- javascript - 在 Angular 中使用动态类型实现
- firebase - 如何在 Google 和 Microsoft 的文档查看器上使用 Firebase 存储 URL
- php - 将 JSON 存储到 oracle 数据库
- python - 尝试运行 tensorflow 示例代码时不兼容的包