首页 > 解决方案 > 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 问题?

我感谢您的帮助。

谢谢哈迪

标签: rstatistical-test

解决方案


推荐阅读