gpt4 book ai didi

r - 如何从 R 中的汇总方差分析检验中获取 p 值?

转载 作者:行者123 更新时间:2023-12-05 09:23:20 24 4
gpt4 key购买 nike

<分区>

我有这个R代码

As = rnorm(5, mean = 0, sd = 5)
Bs = rnorm(5, mean = 0, sd = 5)
Cs = rnorm(5, mean = 0, sd = 5)

dat = data.frame(factor = c("A","A","A","A","A","B","B","B","B","B",
"C","C","C","C","C"),
response = c(As, Bs, Cs))

summary(aov(response ~ factor, data = dat))

返回这个结果

> summary(aov(response ~ factor, data = dat))
Df Sum Sq Mean Sq F value Pr(>F)
factor 2 36.08 18.04 0.807 0.469
Residuals 12 268.22 22.

我想访问值 Pr(>F),即 0.469。我该怎么做?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com