问题描述
我在 Kruskal–Wallis 测试中发现了几个问题。但是,我在之前的帖子中没有遇到以下问题:
我想做以下事情:
-
测试每个
Idcollection
处每个median_value
的study_group
之间的nutrient
是否不同。为此,我想执行一个Kruskal–Wallis 测试。但是,我的代码给了我相同的 p 值。 -
是否也可以调整 p 值以考虑多次测试?
-
Kruskal–Wallis 检验能否以同样的方式用于检验
timepoint
随时间变化的中位数? 注意:nutrient
是一段时间内高度相关的数据。
这是我的数据:
nutrient
请参阅下面的代码:
d2 <- structure(list(study_group = structure(c(1L,1L,2L,2L),.Label = c("Intervention group","Control group"),class = "factor"),timepoint = structure(c(1L,3L,4L,4L),.Label = c("Baseline","6 months","24 months","48 months"),nutrient = structure(c(1L,.Label = c("Energy_kcal","Carbohydrates_g","Sugar_g","Fat_g","Saturated_FA_g","Protein_g","Fibre_g","Alcohol_g","Vegetables_g","Fruit_g","Grains_g","Whole_grain_bread_g","dairy_products_g","fat_reduced_milk_and_cheese_g","Red_and_processed_meat_g","Fast_food_g","Sweets_g","Juice_and_soft_drinks_ml"
),median_value = c(1879.6,1557.2,1540.4,1667.6,1888.8,1827.2,1824.4,1830.3,209,180.2,178.2,189.2,210.3,203.3,199.4,193.6)),row.names = c(NA,16L),class = "data.frame")
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)