gpt4 book ai didi

r - 田口交叉阵列设计创建和分析

转载 作者:行者123 更新时间:2023-12-04 09:40:18 25 4
gpt4 key购买 nike

我正在尝试在 R 中创建以下田口交叉阵列设计。

enter image description here

Table12.1Inner <- FrF2::FrF2(nruns = 8,  generators = "ABC", randomize = FALSE)
Table12.1Outer <- DoE.base::fac.design(nlevels = 2, nfactors=1, factor.names = "E", randomize = FALSE)
Error in fac.design(nlevels = c(4)) :
one factor only is not covered by fac.design

DoE.base::cross.design(Table12.1Inner, Table12.1Outer)

所以我无法创建外部阵列设计。

最佳答案

尝试使用 expand.grid :

expand.grid(A = vals, B = vals, C = vals, D = vals, E.neg = 0, E.pos = 0, y = 0, sdev = 0)


A B C D E.neg E.pos y sdev
1 + + + + 0 0 0 0
2 - + + + 0 0 0 0
3 + - + + 0 0 0 0
4 - - + + 0 0 0 0
5 + + - + 0 0 0 0
6 - + - + 0 0 0 0
7 + - - + 0 0 0 0
8 - - - + 0 0 0 0
9 + + + - 0 0 0 0
10 - + + - 0 0 0 0
11 + - + - 0 0 0 0
12 - - + - 0 0 0 0
13 + + - - 0 0 0 0
14 - + - - 0 0 0 0
15 + - - - 0 0 0 0
16 - - - - 0 0 0 0

关于r - 田口交叉阵列设计创建和分析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40741779/

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