oa.design: Function for accessing orthogonal arrays

Description Usage Arguments Details Value Warning Note Author(s) References See Also Examples

View source: R/oa.design.R

Description

Function for accessing orthogonal arrays, allowing limited optimal allocation of columns

Usage

1
2
3
4
5
6
7
8
9
oa.design(ID=NULL, nruns=NULL, nfactors=NULL, nlevels=NULL,
      factor.names = if (!is.null(nfactors)) {
        if (nfactors <= 50) Letters[1:nfactors]
           else paste("F", 1:nfactors, sep = "")}
        else NULL,
        columns="order",
        replications=1, repeat.only=FALSE,
        randomize=TRUE, seed=NULL, min.residual.df=0, levordold = FALSE)
origin(ID)

Arguments

ID

orthogonal array to be used; must be given as the name without quotes (e.g. L12.2.2.6.1); available names can be looked at using function show.oas; furthermore, L18, L36 and L54 for the respective Taguchi arrays can be used.
Users can also specify names of their own designs here (cf. details).
ID must be of class oa. If omitted, ID is automatically determined based on nlevels or factor.names.

nruns

minimum number of runs to be used, can be omitted if obvious from ID or if the smallest possible array is to be found

nfactors

number of factors; only needed if nlevels is a single number and factor.names is omitted; can otherwise determined from length of factor.names, nlevels or column

nlevels

number(s) of levels, vector with nfactors entries or single number; can be omitted, if obvious from factor.names or if ID and columns are given or if all columns of ID are to be used with default factor names and levels; can be a single number if nfactors is known directly or as length of factor.names

factor.names

a character vector of nfactors factor names or a list with nfactors elements;
if the list is named, list names represent factor names, otherwise default factor names are used;
the elements of the list are
EITHER vectors of appropriate length (corresponding to nlevels) with factor levels for the respective factor
OR empty strings;
Default factor names are the first elements of the character vector Letters, or the factors position numbers preceded by capital F in case of more than 50 factors. Default factor levels are the numbers from 1 to the number of levels for each factor.

columns

EITHER
a vector of column numbers referring to columns of design ID, assigning a specific column of the array to each factor;
this can only be specified, if ID is also given;
OR
a string that defines the degree of optimization requested in terms of column allocation (cf. section “Details”): choices are "order", "min3", "min34", "min3.rela", "min34.rela", "minRPFT" or "minRelProjAberr".
For resource reasons, the default is "order", but smaller designs can sometimes be substantially improved with other choices. Cf. the “Details” section for the meaning of the character string specifications for columns. Column optimization can be computationally intensive. If it cannot be accomplished with the given ressources, a warning is issued, and an unoptimized design is returned.
Some of the optimization methods have just been proposed, and there is little experience with them. It is strongly recommended to always check the properties of the design w.r.t. suitability for the planned experiment BEFORE starting expensive investments.

replications

the number of replications of the array, the setting of repeat.only determines, whether these are real replications or repeated measurements only. Note that replications are not considered for accomodation of min.residual.df residual degrees of freedom, unless a full factorial is used.

repeat.only

default FALSE implies real replications, TRUE implies repeated measurements only

randomize

logical indicating whether the run order is to be randomized ?

seed

integer seed for the random number generator
In R version 3.6.0 and later, the default behavior of function sample has changed. If you work in a new (i.e., >= 3.6.-0) R version and want to reproduce a randomized design from an earlier R version (before 3.6.0), you have to change the RNGkind setting by
RNGkind(sample.kind="Rounding")
before running function oa.design.
It is recommended to change the setting back to the new recommended way afterwards:
RNGkind(sample.kind="default")
For an example, see the documentation of the example data set VSGFS.

min.residual.df

minimum number of residual degrees of freedom;
Note: function oa.design does not count replications specified with option replications in determining residual degrees of freedom for min.resid.df.

levordold

logical indicating whether or not old (=pre version 0.27) level ordering should be used;
defaults to FALSE, which implies that levels are ordered as indicated in factor.names;
in the old ordering, levels were automatically reordered by the as.factor function, which is usually undesirable, but may be desired for reproducing designs created with earlier versions

Details

Package DoE.base is described in Groemping (2016), which is a preprint of a paper in the Journal of Statistical Software. This paper also has detailed material on function oa.design.

Function oa.design assigns factors to the columns of orthogonal arrays that are available within package DoE.base or are provided by the user. The available arrays and their properties are listed in the data frame oacat and can be systematically searched for using function show.oas. The design names also indicate the number of runs and the numbers of factors for each number of levels, e.g. L18.3.6.6.1 is an 18 run design with six factors in 3 levels (3.6) and one factor in 6 levels (6.1).

oa is the S3 class used for orthogonal arrays. Objects of class oa should at least have the attribute origin, an attribute comment should be used for additional information.

Users can define their own orthogonal arrays and hand them to oa.design with parameter ID.
Requirements for the arrays:

Users are encouraged to send additional arrays to the package maintainer. The requirements for these are the same as listed above, with attribute origin being a MUST in this case. (See the last example for how to assign an attribute.)
For relatively small important applications, creation of a tailor-made array of class oa can be attempted with package DoE.MIParray, which uses mixed integer optimization for creating a design from scratch (see Gr<f6>mping and Fontana 2019 for the algorithm behind that approach).

The data frame oacat lists the orthogonal arrays from Warren Kuhfelds collection of “parent” and “child” arrays. The parent arrays, plus a few additional arrays, are directly exported from the package namespace. The child arrays from Kuhfelds collection can be constructed from these, using the replacement instructions provided in the variable lineage of oacat. The last example below indicates how a child array can be created manually, and compares this to the automatically created array.
(A lot more than just the child arrays could be obtained from these arrays by implementing a functionality similar to the market research macros available in SAS; presumably, this topic will not be addressed soon, as it will involve a substantial amount of work.)

Furthermore, there are stronger arrays (at least resolution IV) in the catalogue oacat3. Since version 1.1, function oa.design uses the stronger arrays, where possible.

If no specific orthogonal array is specified and function oa.design does not find an orthogonal array that meets the specified requirements, oa.design returns a full factorial, replicated for enough residual degrees of freedom, if necessary. If oa.design has not found an array smaller than the full factorial, it is absolutely possibly that a smaller array does exist nevertheless. It may be worth while checking with oacat whether an appropriate smaller array can be found by combining some of the parent arrays listed there (looking for a design with a few factors in 5 runs, you may e.g. call oacat[oacat$n5>0,]$name in order to see the names of more promising candidate arrays for combination, or you may also want to look up arrays with n25>0 subsequently.

With version 0.9-18 of the package, the possibility for an automatic allocation of columns for improved design performance was implemented. With version 0.23, this approach has been sped up and extended to properly cover relative projection aberration according to Groemping (2011) with and without step (b) (see below) (the previous choice "maxGR.min34" was modified and renamed to "minRelProjAberr").
Because of performance reasons, and because of a lack of a clear best default, optimum column allocation is not switched on per default. However, with the default column order from left to right, the package always issues a warning to remind users that an automatic unoptimized design can be quite far from ideal. If optimization is activated, the first step is selection of an array, either explicitly by the user (option ID) or automatically (unoptimized) according to the required combination of factors. Within that array, the following choices for the column option are on offer:

"order"

the default choice; allocates factors from left to right, which is what most software does (but what is not necessarily good, see also the example section)

"min3"

recommended, if "min34" is not affordable; aliasing between main effects and 2-factor interactions is kept to a minimal degree, minimizing the number of generalized words of length 3 according to Xu and Wu (2001)

"min3.rela"

the same approach is taken, but with relative number of generalized words according to Groemping (2011)

"min34"

recommended, if affordable; beware the time demand; this requests that the number of words of generalized length 4 is also minimized.

"min34.rela"

again takes the same approach, but with relative number of generalized words according to Groemping (2011)

"minRPFT"

minimizes the relative projection frequency table, applying the approach according to Groemping (2011) without step (b) (see next entry).

"minRelProjAberr"

applies minimum relative projection aberration according to Groemping (2011) ((a): maximize generalized resolution, (b): minimize total relative number of shortest words, (c) rank designs according to relative projection frequency table (obtainable with P3.3 or P4.4, depending on resolution) and (d) resolve ties by looking at absolute number of length 4 words in case of resolution III).

WARNING: Usually, it is recommended to investigate the properties of a design automatically created by function oa.design before starting experimentation. While all designs can estimate main effects in the absence of interactions, the presence of interactions may render some designs useless or even dangerous. Deliberate choice of columns different from the default may improve a design (see example section)!

Mathematical comment on the expansion example: There are 720 different ways to expand the unique L18.3.6.6.1 into an L18.2.1.3.7, depending on which row of the replacement design nest.des is assigned to which level of the 6 level factor; for qualitative factors, 60 of these are potentially non-isomorphic (divide 720 by the 2 * 3! ways of permuting levels within a factor; there are more possibly different arrays for quantitative 3 level factors, since arbitrary relabelling of the levels is no longer isomorphic). According to Eric Schoen (personal communication), for this particular case, all the resulting children are isomorphic to each other and are also isomorphic to the Taguchi L18. To see isomorphism of two designs is not easy; in the example, nest.des has been prepared such that it is easy to see isomorphism of the resulting child to the Taguchi L18: L18 is reproduced by assigning the first row of nest.des to level 1 etc., except for a swap of columns G and H.

Value

oa.design returns a data frame of S3 class design with attributes attached.

In the data frame itself, the experimental factors are all stored as R factors.
For factors with 2 levels, contr.FrF2 contrasts (-1 / +1) are used.
For factors with more than 2 numerical levels, polynomial contrasts are used (i.e. analyses will per default use orthogonal polynomials).
For factors with more than 2 categorical levels, the default contrasts are used.
Future versions will most likely allow more user control about the type of contrasts to be used.

The desnum and run.order attributes of class design are as usual. In the design.info attribute, the following elements are specific for this type of designs:

type

is oa (unless no special orthogonal array is found, in which case a full factorial is created instead, cf. fac.design for its design.info attribute),

nlevels

vector containing the number of levels for each factor

generating.oa

contains information on the generating orthogonal array,

selected.columns

contains information, which column of the orthogonal array underlies which factor,

origin

contains the respective attribute of the orthogonal array,

comment

contains the respective attribute of the orthogonal array,

residual.df

contains the requested residual degrees of freedom for a main effects model.

Other information is generic, like documented for class design.

Function origin returns the origin attribute of the orthogonal array ID, functions comment and "comment<-" from package base return and set the comment attribute.

Warning

Since version 1.1 of the package, strength 3 arrays are automatically used, if available. This changes the behavior of function oa.design for situations for requests with a combination of nruns and nlevels for which a strength 3 array exists in oacat3. If the old behavior is required for reproducing a previously-created array, it is possible to set oacat3 to NULL by the command assignInNamespace("oacat3", NULL, pos="package:DoE.base"); this temporary replacement of oacat3 with NULL remains in effect for the current R session; detaching it (with namespace unloading) and reloading is possible but can also go wrong; therefore, it is recommended to only use the above technique if you are prepared to restart the R session before using the original version of oacat3.

Since R version 3.6.0, the behavior of function sample has changed (correction of a biased previous behavior that should not be relevant for the randomization of designs). For reproducing a randomized design that was produced with an earlier R version, please follow the steps described with the argument seed.

Note

This package is still under development. Suggestions and bug reports are welcome.

Author(s)

Ulrike Groemping

References

Groemping, U. (2011). Relative projection frequency tables for orthogonal arrays. Report 1/2011, Reports in Mathematics, Physics and Chemistry http://www1.beuth-hochschule.de/FB_II/reports/welcome.htm, Department II, Beuth University of Applied Sciences, Berlin.

Groemping, U. (2016). R Package DoE.base for Factorial Designs. Report 1/2016, Reports in Mathematics, Physics and Chemistry http://www1.beuth-hochschule.de/FB_II/reports/welcome.htm, Department II, Beuth University of Applied Sciences, Berlin. (preprint of a paper in the Journal of Statistical Software)

Hedayat, A.S., Sloane, N.J.A. and Stufken, J. (1999) Orthogonal Arrays: Theory and Applications, Springer, New York.

Kuhfeld, W. (2009). Orthogonal arrays. Website courtesy of SAS Institute https://support.sas.com/techsup/technote/ts723b.pdf and references therein.

Schoen, E. (2009). All orthogonal arrays with 18 runs. Quality and Reliability Engineering International 25, 467–480.

Xu, H.-Q. and Wu, C.F.J. (2001). Generalized minimum aberration for asymmetrical fractional factorial designs. Annals of Statistics 29, 1066–1077.

See Also

See Also FrF2, fac.design, pb

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
  ## smallest available array for 6 factors with 3 levels each
  oa.design(nfactors=6, nlevels=3)
  ## level combination for which only a full factorial is (currently) found
  oa.design(nlevels=c(4,3,3,2))
  ## array requested via factor.names
  oa.design(factor.names=list(one=c("a","b","c"), two=c(125,275),
     three=c("old","new"), four=c(-1,1), five=c("min","medium","max")))
  ## array requested via character factor.names and nlevels
    ## (with a little German lesson for one two three four five)
  oa.design(factor.names=c("eins","zwei","drei","vier","fuenf"), nlevels=c(2,2,2,3,7))
  ## array requested via explicit name, Taguchi L18
  oa.design(ID=L18)
  ## array requested via explicit name, with column selection
  oa.design(ID=L18.3.6.6.1,columns=c(2,3,7))
  ## array requested with nruns, not very reasonable
  oa.design(nruns=12, nfactors=3, nlevels=2)
  ## array requested with min.residual.df
  oa.design(nfactors=3, nlevels=2, min.residual.df=12)

  ## examples showing alias structures and their improvment with option columns
  plan <- oa.design(nfactors=6,nlevels=3)
  plan
     ## generalized word length pattern
     length3(plan)
     ## length3 (first element of GWP) can be slightly improved by columns="min3"
     plan <- oa.design(nfactors=6,nlevels=3,columns="min3")
     summary(plan)  ## the first 3-level column of the array is not used
     length3(plan)
  plan <- oa.design(nlevels=c(2,2,2,6))
     length3(plan)
  plan.opt <- oa.design(nlevels=c(2,2,2,6),columns="min3") ## substantial improvement
     length3(plan.opt)
     length4(plan.opt)
  ## visualize practical relevance of improvement:
     ## for optimal plan, all 3-dimensional projections are full factorials
  plot(plan, select=1:3)
  plot(plan, select=c(1,2,4))
  plot(plan, select=c(1,3,4))
  plot(plan, select=2:4)
  plot(plan.opt, select=1:3)
  plot(plan.opt, select=c(1,2,4))
  plot(plan.opt, select=c(1,3,4))
  plot(plan.opt, select=2:4)


  ## The last example:
  ## generate an orthogonal array equivalent to Taguchi's L18
  ## by combining L18.3.6.6.1 with a full factorial in 2 and 3 levels
  
  show.oas(nruns=18, parents.only=FALSE)
       ## lineage entry leads the way:
           ## start from L18.3.6.6.1
           ## insert L6.2.1.3.1 for the 6 level factor
  ## prepare the parent
   parent.des <- L18.3.6.6.1
   colnames(parent.des) <- c(Letters[3:9])
       ## new columns will become A and B
  ## 6-level design can be created by fac.design or expand.grid or cbind
   nest.des <- as.matrix(expand.grid(1:3,1:2))[c(1:3,5,6,4),c(2,1)]
        ## want first column to change most slowly
        ## want resulting design to be easily transformable into Taguchi L18
        ## see mathematical comments in section Details
   colnames(nest.des) <- c("A","B")
  ## do the expansion (see mathematical comments in section Details)
  ## using function expansive.replace
  L18.2.1.3.7.manual <- expansive.replace(parent.des, nest.des)[,c(7:8,1:6)]
  L18.2.1.3.7.manual <- L18.2.1.3.7.manual[ord(L18.2.1.3.7.manual),]  ## sort array
      rownames(L18.2.1.3.7.manual) <- 1:18
        ## (ordering is not necessary, just **tidy**)
  ## prepare for using it with function oa.design
        ## note: function expansive.replace creates a matrix of class "oa"
        ## rearranging the columns removed that class and makes it necessary 
        ##    to add the class again for using the array in DoE.base 
  attr(L18.2.1.3.7.manual, "origin") <-
      c(show.oas(name="L18.2.1.3.7", parents.only=FALSE,show=0)$lineage,
        "unconventional order")
  class(L18.2.1.3.7.manual) <- c("oa", "matrix")
  comment(L18.2.1.3.7.manual) <- "Interaction of first two factors estimable"
     ## indicates that first two factors are full factorial from 6-level factor
  origin(L18.2.1.3.7.manual)
  comment(L18.2.1.3.7.manual)
  L18  ## Taguchi array
  L18.2.1.3.7.manual  ## manually expanded array
  oa.design(L18.2.1.3.7, randomize=FALSE)
        ## automatically expanded array
  P3.3(L18.2.1.3.7.manual)  ## length 3 pattern of 3 factor projections
                  ## this also identifies the array as isomorphic to L18
                  ## according to Schoen 2009
  ## the array can now be used in oa.design, like the built-in arrays
  oa.design(ID=L18.2.1.3.7.manual,nfactors=7,nlevels=3)

Example output

Loading required package: grid
Loading required package: conf.design

Attaching package: 'DoE.base'

The following objects are masked from 'package:stats':

    aov, lm

The following object is masked from 'package:graphics':

    plot.design

The following object is masked from 'package:base':

    lengths

The columns of the array have been used in order of appearance. 
For designs with relatively few columns, 
the properties can sometimes be substantially improved 
using option columns with min3 or even min34.

   A B C D E F
1  1 1 1 1 1 1
2  1 3 3 2 1 2
3  2 3 2 1 1 3
4  1 3 2 3 2 1
5  3 1 2 3 1 2
6  2 2 2 2 2 2
7  3 3 1 1 2 2
8  2 1 3 1 3 2
9  2 3 1 2 3 1
10 3 2 1 2 1 3
11 3 3 3 3 3 3
12 2 2 3 3 1 1
13 2 1 1 3 2 3
14 1 2 1 3 3 2
15 3 1 3 2 2 1
16 1 2 3 1 2 3
17 1 1 2 2 3 3
18 3 2 2 1 3 1
class=design, type= oa 
creating full factorial with 72 runs ...

   A B C D
1  1 1 2 2
2  4 3 1 2
3  1 2 1 1
4  3 3 1 2
5  2 3 1 1
6  2 2 1 2
7  3 3 3 1
8  3 3 2 1
9  2 1 1 2
10 2 1 2 1
11 3 3 2 2
12 1 3 3 1
13 4 1 1 1
14 4 1 2 1
15 4 3 3 1
16 4 3 1 1
17 4 3 2 2
18 1 3 3 2
19 2 2 1 1
20 3 1 2 2
21 4 2 1 2
22 3 3 1 1
23 1 3 2 1
24 4 2 1 1
25 2 3 3 2
26 3 1 3 2
27 4 2 3 2
28 3 2 1 1
29 3 2 1 2
30 4 2 2 2
31 1 2 1 2
32 4 2 3 1
33 3 1 3 1
34 1 1 3 2
35 1 1 3 1
36 4 1 1 2
37 3 2 2 1
38 3 1 1 2
39 1 1 1 1
40 2 3 2 2
41 1 3 2 2
42 2 1 2 2
43 3 2 3 1
44 1 1 1 2
45 3 1 1 1
46 3 2 2 2
47 3 3 3 2
48 2 1 3 2
49 2 2 3 2
50 2 2 2 2
51 1 2 2 1
52 2 3 2 1
53 1 2 2 2
54 2 2 2 1
55 1 3 1 1
56 4 1 3 1
57 4 3 2 1
58 2 1 3 1
59 4 2 2 1
60 2 3 1 2
61 4 1 3 2
62 4 1 2 2
63 2 2 3 1
64 2 3 3 1
65 3 2 3 2
66 2 1 1 1
67 1 2 3 2
68 3 1 2 1
69 4 3 3 2
70 1 1 2 1
71 1 2 3 1
72 1 3 1 2
class=design, type= full factorial 
The columns of the array have been used in order of appearance. 
For designs with relatively few columns, 
the properties can sometimes be substantially improved 
using option columns with min3 or even min34.

   one two three four   five
1    b 125   old   -1 medium
2    a 275   new    1 medium
3    b 275   new    1    min
4    b 125   old   -1 medium
5    a 125   new   -1 medium
6    a 275   new   -1    max
7    c 125   old   -1    min
8    b 275   old   -1 medium
9    b 125   new    1    min
10   a 125   old   -1    min
11   a 125   old   -1    max
12   c 275   old    1    max
13   b 275   old    1    max
14   a 125   new    1    max
15   c 125   old    1 medium
16   c 275   old    1    max
17   b 125   new    1    max
18   b 275   new   -1    min
19   b 125   new   -1    max
20   c 125   new    1 medium
21   c 125   new   -1    max
22   c 275   new   -1    min
23   b 275   new   -1    max
24   a 125   old    1    min
25   c 275   new   -1 medium
26   a 125   new    1    min
27   a 275   old    1 medium
28   b 125   old    1    min
29   c 125   old   -1    max
30   a 275   old   -1    min
31   a 275   new   -1 medium
32   c 275   old   -1    min
33   a 275   old    1    max
34   c 125   new    1 medium
35   b 275   old    1 medium
36   c 275   new    1    min
class=design, type= oa 
The columns of the array have been used in order of appearance. 
For designs with relatively few columns, 
the properties can sometimes be substantially improved 
using option columns with min3 or even min34.

   eins zwei drei vier fuenf
1     1    2    1    2     5
2     1    1    2    3     3
3     1    2    2    1     4
4     2    2    1    2     1
5     1    1    2    1     5
6     2    1    2    3     7
7     1    2    2    3     1
8     1    1    1    3     2
9     2    2    2    3     1
10    1    1    1    2     6
11    2    2    1    2     7
12    2    1    2    2     2
13    1    2    2    1     7
14    1    2    1    2     2
15    1    2    2    1     6
16    1    2    2    2     6
17    1    1    2    2     2
18    2    1    1    3     4
19    1    2    2    2     7
20    2    2    1    1     6
21    1    1    2    2     4
22    1    2    2    1     2
23    2    2    2    1     1
24    1    1    1    1     5
25    1    2    2    3     5
26    2    2    2    2     2
27    2    2    2    3     3
28    2    2    2    2     7
29    1    1    2    3     6
30    1    1    1    3     7
31    1    1    1    1     6
32    2    2    1    3     2
33    2    2    2    1     3
34    1    2    1    2     1
35    2    1    2    1     5
36    2    2    1    2     5
37    2    2    2    3     6
38    2    1    1    1     1
39    2    1    2    3     6
40    2    1    2    2     1
41    2    1    2    1     2
42    2    1    1    3     2
43    1    1    1    3     4
44    1    2    2    1     2
45    1    1    2    3     1
46    2    1    2    1     7
47    2    2    1    1     6
48    2    2    1    3     2
49    2    1    1    1     3
50    2    1    1    3     5
51    1    2    1    1     7
52    1    2    2    3     5
53    1    1    1    2     3
54    2    1    1    1     1
55    1    2    1    2     4
56    1    2    1    1     1
57    2    2    1    3     4
58    2    1    1    2     6
59    1    1    1    3     7
60    1    2    1    1     3
61    2    1    2    2     6
62    1    2    2    1     4
63    1    2    2    3     3
64    2    1    1    1     7
65    1    2    1    3     6
66    2    2    1    3     5
67    1    1    1    1     4
68    2    2    1    3     4
69    2    2    1    3     7
70    1    1    2    3     1
71    1    1    2    2     7
72    2    2    1    2     3
73    2    1    2    2     5
74    2    1    2    2     3
75    2    1    2    1     4
76    1    1    1    1     2
77    2    1    2    2     4
78    2    1    1    1     3
79    2    2    2    2     4
80    2    2    2    1     5
81    1    1    1    2     5
82    1    2    1    2     3
83    1    1    2    3     3
84    1    1    1    2     1
class=design, type= oa 
   A B C D E F G H
1  2 2 2 3 1 2 1 3
2  2 3 3 2 1 2 3 1
3  2 1 1 3 3 2 2 1
4  1 3 2 3 2 1 3 1
5  2 2 3 1 2 3 2 1
6  2 1 3 2 2 1 1 3
7  1 2 1 1 2 2 3 3
8  1 3 1 2 1 3 2 3
9  1 2 3 3 1 1 2 2
10 2 1 2 1 1 3 3 2
11 2 3 1 3 2 3 1 2
12 1 1 3 3 3 3 3 3
13 1 3 3 1 3 2 1 2
14 1 2 2 2 3 3 1 1
15 1 1 2 2 2 2 2 2
16 1 1 1 1 1 1 1 1
17 2 2 1 2 3 1 3 2
18 2 3 2 1 3 1 2 3
class=design, type= oa 
   A B C
1  1 3 5
2  3 1 4
3  3 3 1
4  3 1 2
5  2 1 5
6  2 1 3
7  1 3 3
8  1 1 1
9  2 2 6
10 2 3 2
11 1 2 2
12 3 2 5
13 3 2 3
14 1 1 6
15 1 2 4
16 2 3 4
17 3 3 6
18 2 2 1
class=design, type= oa 
creating full factorial with 8 runs ...

  A B C
1 1 2 1
2 2 2 2
3 1 2 2
4 2 1 1
5 1 1 1
6 2 1 2
7 1 1 2
8 2 2 1
class=design, type= full factorial 
Warning message:
In oa.design(nruns = 12, nfactors = 3, nlevels = 2) :
  You are requesting more runs than needed for a full factorial!
creating full factorial with 8 runs ...

   run.no run.no.std.rp A B C Blocks
1       1           1.1 1 1 1     .1
2       2           2.1 2 1 1     .1
3       3           8.1 2 2 2     .1
4       4           7.1 1 2 2     .1
5       5           5.1 1 1 2     .1
6       6           3.1 1 2 1     .1
7       7           6.1 2 1 2     .1
8       8           4.1 2 2 1     .1
9       9           4.2 2 2 1     .2
10     10           1.2 1 1 1     .2
11     11           7.2 1 2 2     .2
12     12           6.2 2 1 2     .2
13     13           2.2 2 1 1     .2
14     14           5.2 1 1 2     .2
15     15           8.2 2 2 2     .2
16     16           3.2 1 2 1     .2
class=design, type= full factorial 
NOTE: columns run.no and run.no.std.rp  are annotation, 
 not part of the data frame
The columns of the array have been used in order of appearance. 
For designs with relatively few columns, 
the properties can sometimes be substantially improved 
using option columns with min3 or even min34.

   A B C D E F
1  2 3 1 2 3 1
2  1 1 2 2 3 3
3  2 3 2 1 1 3
4  3 3 1 1 2 2
5  3 1 3 2 2 1
6  2 2 3 3 1 1
7  2 1 1 3 2 3
8  3 2 2 1 3 1
9  1 2 1 3 3 2
10 2 2 2 2 2 2
11 2 1 3 1 3 2
12 1 1 1 1 1 1
13 3 1 2 3 1 2
14 1 3 3 2 1 2
15 3 3 3 3 3 3
16 1 3 2 3 2 1
17 1 2 3 1 2 3
18 3 2 1 2 1 3
class=design, type= oa 
[1] 10
Call:
oa.design(nfactors = 6, nlevels = 3, columns = "min3")

Experimental design of type  oa 
18  runs

Factor settings (scale ends):
  A B C D E F
1 1 1 1 1 1 1
2 2 2 2 2 2 2
3 3 3 3 3 3 3
Generating Orthogonal Array:
[1] L18.2.1.3.7
Selected Columns:
[1] 2 3 4 5 6 7
Numbers of generalized words of lengths 3 and 4:
   3    4 
10.0 22.5 

The design itself:
   A B C D E F
1  1 1 2 2 3 3
2  3 2 1 2 1 3
3  2 3 1 2 3 1
4  3 1 2 3 1 2
5  3 3 1 1 2 2
6  1 3 3 2 1 2
7  1 2 3 1 2 3
8  1 2 1 3 3 2
9  2 1 1 3 2 3
10 3 2 2 1 3 1
11 2 3 2 1 1 3
12 3 3 3 3 3 3
13 2 2 3 3 1 1
14 2 2 2 2 2 2
15 3 1 3 2 2 1
16 2 1 3 1 3 2
17 1 3 2 3 2 1
18 1 1 1 1 1 1
class=design, type= oa 
[1] 10
The columns of the array have been used in order of appearance. 
For designs with relatively few columns, 
the properties can sometimes be substantially improved 
using option columns with min3 or even min34.

[1] 1.666667
[1] 0
[1] 1
no suitable  resolution IV or more  array found
3  orthogonal  arrays found
          name nruns                 lineage
20 L18.2.1.3.7    18 3~6;6~1;:(6~1!2~1;3~1;)
21 L18.2.1.9.1    18                        
22 L18.3.6.6.1    18                        
no suitable  resolution IV or more  array found
Warning messages:
1: In show.oas(name = "L18.2.1.3.7", parents.only = FALSE, show = 0) :
  none of the requested names found
  with resolution IV or more
2: In show.oas(name = "L18.2.1.3.7", parents.only = FALSE, show = 0) :
  not all requested names found
[1] "3~6;6~1;:(6~1!2~1;3~1;)" "unconventional order"   
[1] "Interaction of first two factors estimable"
   A B C D E F G H
1  1 1 1 1 1 1 1 1
2  1 1 2 2 2 2 2 2
3  1 1 3 3 3 3 3 3
4  1 2 1 1 2 2 3 3
5  1 2 2 2 3 3 1 1
6  1 2 3 3 1 1 2 2
7  1 3 1 2 1 3 2 3
8  1 3 2 3 2 1 3 1
9  1 3 3 1 3 2 1 2
10 2 1 1 3 3 2 2 1
11 2 1 2 1 1 3 3 2
12 2 1 3 2 2 1 1 3
13 2 2 1 2 3 1 3 2
14 2 2 2 3 1 2 1 3
15 2 2 3 1 2 3 2 1
16 2 3 1 3 2 3 1 2
17 2 3 2 1 3 1 2 3
18 2 3 3 2 1 2 3 1
attr(,"origin")
[1] "Taguchi"
attr(,"class")
[1] "oa"     "matrix"

further attribute(s) (accessible with attr( x , attrname)):
[1] "comment"
   A B C D E F G H
1  1 1 1 1 1 1 1 1
2  1 1 2 2 2 2 2 2
3  1 1 3 3 3 3 3 3
4  1 2 1 1 2 2 3 3
5  1 2 2 2 3 3 1 1
6  1 2 3 3 1 1 2 2
7  1 3 1 2 1 3 3 2
8  1 3 2 3 2 1 1 3
9  1 3 3 1 3 2 2 1
10 2 1 1 3 3 2 1 2
11 2 1 2 1 1 3 2 3
12 2 1 3 2 2 1 3 1
13 2 2 1 2 3 1 2 3
14 2 2 2 3 1 2 3 1
15 2 2 3 1 2 3 1 2
16 2 3 1 3 2 3 2 1
17 2 3 2 1 3 1 3 2
18 2 3 3 2 1 2 1 3
attr(,"origin")
[1] "3~6;6~1;:(6~1!2~1;3~1;)" "unconventional order"   
attr(,"class")
[1] "oa"     "matrix"

further attribute(s) (accessible with attr( x , attrname)):
[1] "comment"
   A B C D E F G H
1  1 1 1 1 1 1 1 1
2  1 1 1 2 2 3 3 2
3  1 1 2 1 3 3 2 3
4  1 2 2 2 2 2 2 1
5  1 2 2 3 3 1 1 2
6  1 2 3 2 1 1 3 3
7  1 3 1 3 2 2 1 3
8  1 3 3 1 1 2 2 2
9  1 3 3 3 3 3 3 1
10 2 1 2 3 1 2 3 1
11 2 1 3 2 3 2 1 2
12 2 1 3 3 2 1 2 3
13 2 2 1 1 3 2 3 3
14 2 2 1 3 1 3 2 2
15 2 2 3 1 2 3 1 1
16 2 3 1 2 3 1 2 1
17 2 3 2 1 2 1 3 2
18 2 3 2 2 1 3 1 3
class=design, type= oa 
 length3 frequency
  0.0000        12
  0.5000        28
  0.6667         9
  1.0000         6
  2.0000         1
attr(,"A3")
[1] 28
The columns of the array have been used in order of appearance. 
For designs with relatively few columns, 
the properties can sometimes be substantially improved 
using option columns with min3 or even min34.

   A B C D E F G
1  2 2 2 3 3 1 1
2  1 2 2 2 2 2 2
3  1 3 2 2 1 3 1
4  3 3 1 3 2 2 1
5  3 1 2 1 3 3 2
6  3 3 2 1 2 1 3
7  2 1 1 2 2 3 3
8  3 2 1 3 1 3 2
9  1 1 1 1 1 1 1
10 2 3 3 1 1 2 2
11 3 2 3 2 1 1 3
12 2 1 2 3 1 2 3
13 2 3 1 2 3 1 2
14 1 2 1 1 3 2 3
15 1 1 3 3 2 1 2
16 3 1 3 2 3 2 1
17 2 2 3 1 2 3 1
18 1 3 3 3 3 3 3
class=design, type= oa 

DoE.base documentation built on Feb. 5, 2021, 9:05 a.m.