如何使用 R 中的 FrF2 或质量工具包指定生成器和因子?



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

分数阶乘实验是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    
...

使用质量工具包也没有获得成功。

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)

相关内容

  • 没有找到相关文章