Doeinteractions
Purpose
Creates product combinations of columns of a DOE matrix.
Synopsis
- [xint,column_ID] = doeinteractions(x, column_ID)
Description
Creates product combinations of columns of a DOE matrix.
Inputs
- x = the raw DOE matrix (x) and
- column_ID = type of interactions to include in the final DOE as either:
% (A) a scalar numerical value indicating the highest number % of interacting factors to include (A value of 1 (one) % indicates no interactions) % Example: [2] % (B) a cell array of numerical vectors indicating which % column(s) should be combined an in what way(s) to % create the interaction terms. % Example: { [1] [2] [3] [1 3] } % Scalar cell entries will copy the specified column(s) % directly from (x) into (xint). Vector cell entries will % multiply the corresponding columns together to create % the output column.
Optional Inputs
- second = optional second input is this.
Outputs
- firstout = first output is this.
Options
options = a structure array with the following fields:
- plots: [ {'none'} | 'final' ] governs plotting of results, and
- order: positive integer for polynomial order {default = 1}.
Example
>>This is an example Error: does not exist
See Also
%DOEINTERACTIONS Calculates interaction terms of a raw DOE matrix. % Creates product combinations of columns of a DOE matrix. % INPUTS: % x = the raw DOE matrix (x) and % column_ID = type of interactions to include in the final DOE as either: % (A) a scalar numerical value indicating the highest number % of interacting factors to include (A value of 1 (one) % indicates no interactions) % Example: [2] % (B) a cell array of numerical vectors indicating which % column(s) should be combined an in what way(s) to % create the interaction terms. % Example: { [1] [2] [3] [1 3] } % Scalar cell entries will copy the specified column(s) % directly from (x) into (xint). Vector cell entries will % multiply the corresponding columns together to create % the output column. % OUTPUTS: % xint = selected columns and column products from x based on % column_ID. % column_ID = cell array of interactions identical to the input (if a % cell array was given as input) or created as needed for the % given scalar interaction level (if scalar provided as input % column_ID) % % EXAMPLE: % if column_ID = {[1] [2] [3] [1 2] [2 3]} % then xint will contain the first three columns of x (unmodified), % followed by two additional columns which are the product of columns 1 % and 2 and the product of columns 2 and 3, respectively. % %I/O: [xint,column_ID] = doeinteractions(x, column_ID) % %See also: ANOVA_DOE, FACTDES, FFACDES1