主要内容

fractionalFactorialTypes

Fractional factorial design types

Since R2026a

Description

types = fractionalFactorialTypes(nfactors) returns a table with the maximum number of runs and the resolution level for all possible two-level fractional factorial design types with n factors.

example

types = fractionalFactorialTypes(nfactors,ModelSpecification=modelspec) specifies the experiment model for the design types.

example

Examples

collapse all

Return a table with the resolution and maximum number of runs for all possible two-level fractional factorial design types with five factors.

fractionalFactorialTypes(5)
ans=3×2 table
    Resolution    MaxNumRuns
    __________    __________

        3              8    
        5             16    
        6             32    

Return a table with the resolution and the maximum number of runs for all two-level fractional factorial design types that contain four factors and an experiment model with the terms Factor1 + Factor2 + Factor3 + Factor4 + Factor1*Factor3 + Factor2*Factor3.

fractionalFactorialTypes(4,ModelSpecification= ...
    "Factor1*Factor3 + Factor2*Factor3 + Factor4")
ans=2×2 table
    Resolution    MaxNumRuns
    __________    __________

        4              8    
        5             16    

Input Arguments

collapse all

Number of factors in the design, specified as a positive integer.

Data Types: single | double

Experiment model, specified as one of the following values.

  • A character vector or string scalar with the model name.

    ValueModel Description
    "linear"The model contains an intercept and linear term for each factor.
    "interactions"The model contains an intercept, a linear term for each factor, and all products of pairs of distinct factors (no squared terms).
    "scheffe-linear"

    The model contains a linear term for each factor and does not include an intercept term.

    "scheffe-quad"

    The model is given by the formula:

    i=1nbixi+i=1nj<in1bijxixj

    "scheffe-special-cubic"

    The model is given by the formula:

    i=1nbixi+i=1nj<in1bijxixj+i=1nj<in1k<jn2bijkxixjxk

  • A character vector or string scalar formula in Wilkinson notation. The formula must contain all factor names "Factor1","Factor2",..."FactorN" where N=nfactors.

  • A t-by-nfactors terms matrix, where t is the number of terms in the design. A terms matrix is convenient when the number of factors is large and you want to generate the terms programmatically. For more information, see Terms Matrix.

ModelSpecification does not include the response variable and does not affect the factor values of the design runs.

Example: "interactions"

Example: "Factor1 + Factor2 + Factor1:Factor2"

Data Types: single | double | char | string

More About

collapse all

Version History

Introduced in R2026a