Doegen

From Eigenvector Research Documentation Wiki
Revision as of 10:42, 3 September 2011 by imported>Scott (Created page with " ===Purpose=== Generate a Design of Experiments (DOE) DataSet object. ===Synopsis=== : [doe,msg] = doegen(type,factors,scales,levels,options) ===Description=== Creates a Des...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Purpose

Generate a Design of Experiments (DOE) DataSet object.

Synopsis

[doe,msg] = doegen(type,factors,scales,levels,options)

Description

Creates a Design of Experiements of a specified type with named factors designed with a specified number of levels and coding of those levels at specified values or categorical names.


Designs can be a mix of numerical and categorical factors. The type of factor is defined by the "scales" input which specifies either the mininum and maximum values to use (numerical factor), the exact numerical values to be used (numerical factor), or the names of the categories (categorical factor).


Some design types have a specific number of levels which they allow. If one or more categorical factors requires a different number of levels than the design allows, the design is calculated without these categorical factor(s) and then replicated for all levels of the factor(s). This may increase the number of required samples beyond what is expected but provides full resolution of categorical factors in designs which would otherwise be incompatible with them.

Inputs

  • k = the number of factors in the design i.e. the number of columns in the output (desgn), and (levl) is the number of levels (default = 2). All factors are created at the given number of levels. To create a DOE with a different number of levels in each factor, use form (B) of the inputs.

Optional Inputs

  • levls = can be provided as a single input containing a vector equal in length to the number of factors desired and indicating the number of levels for each of those factors. For example: [2 2 3] would generate a 3-factor model with two factors at 2 levels and one at 3 levels.

Outputs

  • desgn = Output (desgn) is the matrix of the experimental design. If levl=2 then this gives a 2^k design.

Example


>> desgn = factdes(3,[2 2 3])
desgn =
    -1    -1    -1
    -1    -1     0
    -1    -1     1
    -1     1    -1
    -1     1     0
    -1     1     1
     1    -1    -1
     1    -1     0
     1    -1     1
     1     1    -1
     1     1     0
     1     1     1

See Also

distslct, doptimal, ffacdes1, stdsslct