如何使用 R 中的 FrF2 或 qualityTools 包指定生成器和因子?

How can I specify a generator and factor using the FrF2 or qualityTools package in R?

如何使用 R 中的 FrF2qualityTools 包指定生成器和因子?

小数阶乘experiment是2^{k-p} 其中k=5(因子),p=1,I=ABCD如何生成,其中D因子混淆。因此,D = ABC.

if(!require("FrF2")) install.packages("FrF2") ; library(FrF2)

plan <- FrF2(nfactors = 5,
         nruns = 16,
         generators = "D=ABC",  # <<<
         replications = 3,
         repeat.only = T,
         randomize = FALSE)
print(plan)

控制台:

...

$`generators`
[1] E=ABCD    

...

使用 qualityTools 包也没有成功。

if(!require("qualityTools")) install.packages("qualityTools") ; library(qualityTools)

plan2 <- fracDesign(k = 5,
               p = 1,
               replicates = 1,
               gen = "D = ABC")
# or gen = c("D = ABC")

runOrd(plan2) <- standOrd(plan2)
print(plan2)

答案:

plan2 <- fracDesign(k = 5,
                replicates = 1,
                gen = "D = ABC")

runOrd(plan2) <- standOrd(plan2)
summary(plan2)