Factdes: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Bob
No edit summary
imported>Scott
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
===Purpose===
===Purpose===


Output a full factorial design matrix.
Full factorial design of experiments.


===Synopsis===
===Synopsis===


:desgn = factdes(fact,''levl'')
: desgn = factdes(k,levl)
 
: desgn = factdes(levls)
===Description===
===Description===


The input <tt>fact</tt> is the number of factors in the design and the output <tt>desgn</tt> is the experimental design matrix.
Create a matrix of full factorial design of experiments values.
====Inputs====


:desgn = factdes(fact) % provides a full factorial two level design.
* '''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 input ''levl'' allows for multiple level designs.
====Optional Inputs====


:desgn = factdes(fact,'' levl''); provides a full factorial <tt>levl</tt> level design {default levl = 2}.
* '''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.


====Inputs====
====Outputs====
 
* '''fact''' = number of factors.


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


* '''levl''' = number of levels (if omitted, default value = 2).
===Example===
<pre>


====Outputs====
>> 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


* '''desgn''' = experimental design matrix.
</pre>


===See Also===
===See Also===


[[distslct]], [[doptimal]], [[ffacdes1]], [[stdsslct]]
[[distslct]], [[doptimal]], [[ffacdes1]], [[stdsslct]]

Latest revision as of 10:37, 2 September 2011

Purpose

Full factorial design of experiments.

Synopsis

desgn = factdes(k,levl)
desgn = factdes(levls)

Description

Create a matrix of full factorial design of experiments values.

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