如何使用FrF2
orqualityTools
包指定生成器和因子R
?
部分阶乘实验是2^{kp} where k = 5 (factors), p = 1, and I = ABCD how generator, 其中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)