DOE
Example 1
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the data from the 'Investment Castings' table.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X( :X1, :X2, :X3 )
);
Code Explanation:
- Open table.
- Evaluate design.
- Specify factors.
Example 2
Summary: Opens a data table, defines a full factorial design with continuous and categorical factors, simulates responses using the REML method, and generates a table for analysis.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Full Factorial Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous,
{-1, 1},
"X1",
0
),
Add Factor(
Categorical,
{"x", "y", "z"},
"X2",
0
),
Add Factor(
Categorical,
{"A", "B", "C", "D"},
"X3",
0
), Set Random Seed( 151647685 ),
Make Design, Simulate Responses( 0 ),
Set Run Order( Sort Left to Right ),
Make Table}
);
Code Explanation:
- Open data table.
- Start DOE dialog.
- Define full factorial design.
- Add maximize response "Y".
- Add continuous factor X1 with levels -1, 1.
- Add categorical factor X2 with levels x, y, z.
- Add categorical factor X3 with levels A, B, C, D.
- Set random seed for reproducibility.
- Generate design and simulate responses.
- Set run order and make table.
Example 3
Summary: Generates a space-filling design using the DOE dialog, with factors for Alpha, Beta, Gamma, Algorithm, and Compiler, and optimizes the design type to Fast Flexible Filling.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Space Filling Design,
{
Add Response(
Maximize, "CPU Time", ., ., .
),
Change Factor Settings(
1, -1, 1, "Alpha"
),
Change Factor Settings(
2, -1, 1, "Beta"
),
Add Factor(
Continuous, -1, 1, "Gamma", 0
),
Add Factor(
Categorical,
{"Dynamic", "Greedy", "Transform"
},
"Algorithm",
0
),
Add Factor(
Categorical,
{"A", "B"},
"Compiler",
0
), Set Random Seed( 12345 ),
FFF Optimality Criterion( "MaxPro" ),
Space Filling Design Type(
Fast Flexible Filling, 50
), Make Table}
);
Code Explanation:
- Open data table.
- Start DOE dialog.
- Add maximize response.
- Set Alpha factor settings.
- Set Beta factor settings.
- Add Gamma continuous factor.
- Add Algorithm categorical factor.
- Add Compiler categorical factor.
- Set random seed.
- Configure FFF optimality.
- Select space filling design type.
- Generate and make table.
Example 4
Summary: Opens a data table, loads factors from the current data table, and creates a space filling design using the DOE function.
Code:
// Load and Edit in Space Filling Design
// Open data table
dt = Open("data_table.jmp");
// Load and Edit in Space Filling Design
DOE(
Space Filling Design,
Load Factors( Current Data Table() )
);
Code Explanation:
- Open data table.
- Load factors from table.
- Create space filling design.
Example 5
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing Custom Design and Load Factors from the provided data table.
Code:
// Load and Edit in Custom Design
// Open data table
dt = Open("data_table.jmp");
// Load and Edit in Custom Design
DOE(
Custom Design,
Load Factors( Current Data Table() )
);
Code Explanation:
- Open data table.
- Load factors from table.
- Start Custom Design.
- Edit design using loaded factors.
Example 6
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the Evaluate Design function to specify factors.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X(
:Whole Plots, :Subplots, :A1, :A2,
:A3, :A4, :C1, :C2
)
);
Code Explanation:
- Open data table.
- Evaluate design experiment.
- Specify factors: Whole Plots.
- Specify factors: Subplots.
- Specify factors: A1.
- Specify factors: A2.
- Specify factors: A3.
- Specify factors: A4.
- Specify factors: C1.
- Specify factors: C2.
Example 7
Summary: Generates a custom design of experiments (DOE) using the DOE Dialog in JMP, with the goal of performing a variance component analysis using the REML method and fitting a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Minimize, "OCV", ., ., .
),
Add Factor(
Continuous, -1, 1, "A1", 2
),
Add Factor(
Continuous, -1, 1, "A2", 2
),
Add Factor(
Continuous, -1, 1, "A3", 2
),
Add Factor(
Continuous, -1, 1, "A4", 2
),
Add Factor(
Continuous, -1, 1, "C1", 1
),
Add Factor(
Continuous, -1, 1, "C2", 1
), Set Random Seed( 1866762673 ),
Number of Starts( 21 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {5, 1} ),
Add Term( {6, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {1, 1}, {4, 1} ),
Add Term( {1, 1}, {5, 1} ),
Add Term( {1, 1}, {6, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {2, 1}, {4, 1} ),
Add Term( {2, 1}, {5, 1} ),
Add Term( {2, 1}, {6, 1} ),
Add Term( {3, 1}, {4, 1} ),
Add Term( {3, 1}, {5, 1} ),
Add Term( {3, 1}, {6, 1} ),
Add Term( {4, 1}, {5, 1} ),
Add Term( {4, 1}, {6, 1} ),
Add Term( {5, 1}, {6, 1} ),
Set N Whole Plots( 16 ),
Make Strip Plot Design,
Set N Subplots( 6 ),
Set Sample Size( 48 ),
Optimality Criterion(
"Make D-Optimal Design"
), Make Design}
);
Code Explanation:
- Open data table.
- Start DOE Custom Design.
- Add response "OCV" to minimize.
- Add factor "A1" as continuous.
- Add factor "A2" as continuous.
- Add factor "A3" as continuous.
- Add factor "A4" as continuous.
- Add factor "C1" as continuous.
- Add factor "C2" as continuous.
- Configure design settings and generate.
Example 8
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the Evaluate Design function to specify factors.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X( :X1, :X2, :X3, :X4, :X5, :X6 )
);
Code Explanation:
- Open table.
- Evaluate design.
- Specify factors.
Example 9
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE dialog to define custom design parameters.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
d = DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "X1", 0
),
Add Factor(
Continuous, -1, 1, "X2", 0
),
Add Factor(
Continuous, -1, 1, "X3", 0
),
Add Factor(
Continuous, -1, 1, "X4", 0
),
Add Factor(
Continuous, -1, 1, "X5", 0
),
Add Factor(
Continuous, -1, 1, "X6", 0
), Set Random Seed( 12345 ),
Number of Starts( 1 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {5, 1} ),
Add Term( {6, 1} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ),
Add Alias Term( {1, 1}, {5, 1} ),
Add Alias Term( {1, 1}, {6, 1} ),
Add Alias Term( {2, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {4, 1} ),
Add Alias Term( {2, 1}, {5, 1} ),
Add Alias Term( {2, 1}, {6, 1} ),
Add Alias Term( {3, 1}, {4, 1} ),
Add Alias Term( {3, 1}, {5, 1} ),
Add Alias Term( {3, 1}, {6, 1} ),
Add Alias Term( {4, 1}, {5, 1} ),
Add Alias Term( {4, 1}, {6, 1} ),
Add Alias Term( {5, 1}, {6, 1} ),
Set Sample Size( 60 ),
Simulate Responses, Make Design}
);
rep = d << Report;
rep["Design"] << Close( 1 );
Code Explanation:
- Open data table.
- Define DOE parameters.
- Add response variable.
- Add continuous factors.
- Set random seed.
- Specify number of starts.
- Add main effects.
- Add alias terms.
- Set sample size.
- Simulate responses.
- Make design.
- Generate report.
- Close "Design" section.
Example 10
Summary: Evaluates a design experiment with factors Silica, Sulfur, and Silane using the REML method in the Standard Least Squares personality.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X( :Silica, :Sulfur, :Silane )
);
Code Explanation:
- Open data table.
- Evaluate design experiment.
- Specify factors: Silica, Sulfur, Silane.
Example 11
Summary: Opens a data table, defines a response surface design using the DOE dialog, and generates a table with specified factor settings and random seed.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Response Surface Design,
{
Add Response(
Match Target, "Stretch", 350, 550,
1
),
Change Factor Settings(
1, 0.7, 1.7, "Silica"
),
Change Factor Settings(
2, 1.8, 2.8, "Sulfur"
),
Add Factor(
Continuous, 40, 60, "Silane", 0
), Set Random Seed( 12345 ),
Make Design( 1 ), Center Points( 3 ),
Make Table}
);
Code Explanation:
- Open table.
- Start DOE dialog.
- Define response surface design.
- Add response variable.
- Set target range for stretch.
- Configure silica factor settings.
- Configure sulfur factor settings.
- Add continuous factor Silane.
- Set random seed.
- Generate and make table.
Example 12
Summary: Opens a data table, loads and edits in Response Surface Design, and applies a custom design with load factors from the current data table.
Code:
// Load and Edit in Response Surface Design
// Open data table
dt = Open("data_table.jmp");
// Load and Edit in Response Surface Design
DOE(
Response Surface Design,
Load Factors( Current Data Table() )
);
Code Explanation:
- Open data table.
- Load Response Surface Design.
- Load factors from current table.
Example 13
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the Response Surface Design feature to load responses from the current data table.
Code:
// Load and Edit in Response Surface Design
// Open data table
dt = Open("data_table.jmp");
// Load and Edit in Response Surface Design
DOE(
Response Surface Design,
Load Responses(
Current Data Table()
)
);
Code Explanation:
- Open data table.
- Define DOE object.
- Specify Response Surface Design.
- Load responses from current table.
Example 14
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the Custom Design platform to load responses from a data table.
Code:
// Load and Edit in Custom Design
// Open data table
dt = Open("data_table.jmp");
// Load and Edit in Custom Design
DOE(
Custom Design,
Load Responses(
Current Data Table()
)
);
Code Explanation:
- Open table.
- Load Custom Design.
- Load responses from table.
Example 15
Summary: This JSL script evaluates a design using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the data from the 'Investment Castings' table.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X(
:Whole Plots, :Furnace Temp,
:Coating
)
);
Code Explanation:
- Open table.
- Evaluate design.
- Specify factors.
Example 16
Summary: Generates a custom design of experiments (DOE) using the DOE Dialog in JMP, with two categorical factors and a response variable, to analyze corrosion resistance.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Corrosion Resistance",
., ., .
),
Add Factor(
Categorical,
{"360", "370", "380"},
"Furnace Temp",
1
),
Add Factor(
Categorical,
{"C1", "C2", "C3", "C4"},
"Coating",
0
), Set Random Seed( 15973514 ),
Number of Starts( 3 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {1, 1}, {2, 1} ),
Set Sample Size( 24 ),
Set N Whole Plots( 6 ), Make Design}
);
Code Explanation:
- Open table.
- Define DOE parameters.
- Add response variable.
- Add categorical factor.
- Add another categorical factor.
- Set random seed.
- Specify number of starts.
- Add main effect term.
- Add interaction term.
- Add second interaction term.
- Set sample size.
- Set number of whole plots.
- Generate design.
Example 17
Summary: Loads a data table, applies Taguchi Arrays to load factors from the current table, and enables variance component analysis using the REML method with random effects in the Standard Least Squares personality.
Code:
// Load and Edit in Taguchi Arrays
// Open data table
dt = Open("data_table.jmp");
// Load and Edit in Taguchi Arrays
DOE(
Taguchi Arrays,
Load Factors( Current Data Table() )
);
Code Explanation:
- Open data table.
- Load Taguchi Arrays.
- Load factors from current table.
Example 18
Summary: Evaluates a design using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing factors such as Cocoa, Sugar, Flour, Butter, Milk, and Eggs.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X(
:Cocoa, :Sugar, :Flour, :Butter,
:Milk, :Eggs
)
);
Code Explanation:
- Open table.
- Evaluate design.
- Specify factors: Cocoa, Sugar, Flour, Butter, Milk, Eggs.
Example 19
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE dialog to define a custom design with mixture factors.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Taste", 1, 10, .
),
Add Factor(
Mixture, 0.1, 0.2, "Cocoa", 0
),
Add Factor(
Mixture, 0, 0.15, "Sugar", 0
),
Add Factor(
Mixture, 0.2, 0.3, "Flour", 0
),
Add Factor(
Mixture, 0.1, 0.2, "Butter", 0
),
Add Factor(
Mixture, 0.25, 0.35, "Milk", 0
),
Add Factor(
Mixture, 0.05, 0.2, "Eggs", 0
), Set Random Seed( 12345 ),
Number of Starts( 40 ),
Add Constraint(
[1 1 1 0 0 0 0.45,
-1 -1 -1 0 0 0 -0.45]
), Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {5, 1} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ),
Add Alias Term( {1, 1}, {5, 1} ),
Add Alias Term( {1, 1}, {6, 1} ),
Add Alias Term( {2, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {4, 1} ),
Add Alias Term( {2, 1}, {5, 1} ),
Add Alias Term( {2, 1}, {6, 1} ),
Add Alias Term( {3, 1}, {4, 1} ),
Add Alias Term( {3, 1}, {5, 1} ),
Add Alias Term( {3, 1}, {6, 1} ),
Add Alias Term( {4, 1}, {5, 1} ),
Add Alias Term( {4, 1}, {6, 1} ),
Add Alias Term( {5, 1}, {6, 1} ),
Set Sample Size( 10 )}
);
Code Explanation:
- Open data table.
- Start DOE dialog.
- Define response variable.
- Add mixture factor: Cocoa.
- Add mixture factor: Sugar.
- Add mixture factor: Flour.
- Add mixture factor: Butter.
- Add mixture factor: Milk.
- Add mixture factor: Eggs.
- Configure design settings.
Example 20
Summary: Generates a MaxDiff design for a data table, utilizing the DOE dialog to configure the number of profiles and choice sets.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
MaxDiff Design,
X( :Candy ),
{Set Number of Profiles( 4 ),
Set Number of Choice Sets( 7 ),
Make Design, Simulate Responses( 0 )}
);
Code Explanation:
- Open table.
- Start DOE dialog.
- Select MaxDiff Design.
- Set X variable.
- Configure number of profiles.
- Configure number of choice sets.
- Generate design.
- Simulate responses off.
Example 21
Summary: This JSL script evaluates a design of experiments (DOE) using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing factors such as temperature, time, and catalyst.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X(
Whole Plots, Subplots,
:Temperature, :Time, :Catalyst
)
);
Code Explanation:
- Open table.
- Evaluate design.
- Specify factors.
- Include whole plots.
- Include subplots.
- Add temperature factor.
- Add time factor.
- Add catalyst factor.
Example 22
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE dialog to simulate responses and create a design.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "Temperature",
2
),
Add Factor(
Continuous, -1, 1, "Time", 1
),
Add Factor(
Continuous, -1, 1, "Catalyst", 0
), Set Random Seed( 12345 ),
Number of Starts( 1000 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Set N Whole Plots( 4 ),
Set N Subplots( 8 ),
Set Sample Size( 24 ),
Simulate Responses, Make Design}
);
Code Explanation:
- Open data table.
- Start DOE dialog.
- Add response variable.
- Add continuous factor: Temperature.
- Add continuous factor: Time.
- Add continuous factor: Catalyst.
- Set random seed.
- Define number of starts.
- Add main effects.
- Add interaction terms.
- Set whole plots.
- Set subplots.
- Set sample size.
- Simulate responses.
- Create design.
Example 23
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the Choice Design platform to load factors from a data table.
Code:
// Load and Edit in Choice Design
// Open data table
dt = Open("data_table.jmp");
// Load and Edit in Choice Design
DOE(
Choice Design,
Load Factors( Current Data Table() )
);
Code Explanation:
- Open data table.
- Launch Choice Design.
- Load factors from table.
Example 24
Summary: This JSL script evaluates a design experiment with random effects in the Standard Least Squares personality, using the REML method to perform variance component analysis and fit a model for shrinkage.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X(
:Grind, :Temperature, :Time,
:Charge, :Station
)
);
Code Explanation:
- Open data table.
- Evaluate design experiment.
- Specify variables: Grind, Temperature, Time.
- Specify variables: Charge, Station.
Example 25
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE dialog to design an experiment.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Match Target, "Strength", 1.2,
1.4, .
),
Add Factor(
Categorical,
{"Coarse", "Medium"},
"Grind",
0
),
Add Factor(
Continuous, 195, 205,
"Temperature", 0
),
Add Factor(
Continuous, 3, 4, "Time", 0
),
Add Factor(
Continuous, 1.6, 2.4, "Charge", 0
),
Add Factor( Blocking, 4, "Station" ),
Set Random Seed( 569534903 ),
Number of Starts( 100 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {5, 1} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ),
Add Alias Term( {2, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {4, 1} ),
Add Alias Term( {3, 1}, {4, 1} ),
Set Sample Size( 12 ), Make Design}
);
Code Explanation:
- Open data table.
- Start DOE dialog.
- Add response variable.
- Add categorical factor.
- Add continuous factor.
- Add continuous factor.
- Add continuous factor.
- Add blocking factor.
- Set random seed.
- Set number of starts.
- Add intercept term.
- Add main effects terms.
- Add alias terms.
- Set sample size.
- Generate design.
Example 26
Summary: Generates a custom design for a response variable using the DOE dialog, incorporating continuous factors X1, X2, and X3, with polynomial terms and random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Match Target, "Y", 54, 56, .
),
Add Factor(
Continuous, -1, 1, "X1", 0
),
Add Factor(
Continuous, -1, 1, "X2", 0
),
Add Factor(
Continuous, -1, 1, "X3", 0
), Set Random Seed( 929281409 ),
Number of Starts( 40 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 2} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {2, 2} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {3, 2} ),
Set Sample Size( 16 ),
Optimality Criterion( 2 ),
Make Design}
);
Code Explanation:
- Open table.
- Define DOE dialog.
- Add response variable.
- Add continuous factor X1.
- Add continuous factor X2.
- Add continuous factor X3.
- Set random seed.
- Set number of starts.
- Add polynomial terms.
- Set sample size.
- Set optimality criterion.
- Generate design.
Example 27
Summary: This JSL script evaluates a design experiment using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the data from an open data table.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X( :Operator, :Speed, :Current )
);
Code Explanation:
- Open data table.
- Evaluate design experiment.
Example 28
Summary: Generates a full factorial design using the DOE dialog in JMP, with three factors: categorical 'Operator', continuous 'Speed', and continuous 'Current'.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Full Factorial Design,
{
Add Response(
Match Target, "Depth", 0.12, 0.22,
.
),
Add Factor(
Categorical,
{"John", "Mary"},
"Operator",
0
),
Add Factor(
Continuous,
{3, 5},
"Speed",
0
),
Add Factor(
Continuous,
{150, 165},
"Current",
0
), Set Random Seed( 1344277810 ),
Make Design}
);
Code Explanation:
- Open table.
- Start DOE dialog.
- Define response variable.
- Add categorical factor.
- Add continuous factor.
- Add continuous factor.
- Set random seed.
- Generate design.
Example 29
Summary: Evaluates a design experiment using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the data from the 'Investment Castings' data table.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X(
:Methanol, :Ethanol, :Propanol,
:Butanol, :pH, :Time
)
);
Code Explanation:
- Open data table.
- Evaluate design experiment.
Example 30
Summary: Opens a data table, initiates the DOE dialog, and defines a Definitive Screening Design with multiple factors to optimize yield. The design is then generated using the REML method.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Definitive Screening Design,
{
Add Response(
Maximize, "Yield", ., ., .
),
Add Factor(
Continuous, 0, 10, "Methanol", 0
),
Add Factor(
Continuous, 0, 10, "Ethanol", 0
),
Add Factor(
Continuous, 0, 10, "Propanol", 0
),
Add Factor(
Continuous, 0, 10, "Butanol", 0
),
Add Factor(
Continuous, 6, 9, "pH", 0
),
Add Factor(
Continuous, 1, 2, "Time", 0
), Number of Extra Runs( 0 ),
Set Random Seed( 123 ), Make Design}
);
Code Explanation:
- Open data table.
- Initiate DOE dialog.
- Define Definitive Screening Design.
- Add response variable "Yield".
- Add factor "Methanol".
- Add factor "Ethanol".
- Add factor "Propanol".
- Add factor "Butanol".
- Add factor "pH".
- Add factor "Time".
Example 31
Summary: Loads a data table and performs a Definitive Screening Design using the Load Factors from the current data table, enabling variance component analysis with REML method and fitting a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
// Load and Edit in Definitive Screening Design
// Open data table
dt = Open("data_table.jmp");
// Load and Edit in Definitive Screening Design
DOE(
Definitive Screening Design,
Load Factors( Current Data Table() )
);
Code Explanation:
- Open table.
- Load DOE platform.
- Select Definitive Screening Design.
- Load factors from current table.
Example 32
Summary: Evaluates a design experiment using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the data from the 'Investment Castings' table.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X(
:Lot, :Methanol, :Ethanol,
:Propanol, :Butanol, :pH, :Time
)
);
Code Explanation:
- Open data table.
- Evaluate design experiment.
Example 33
Summary: Generates a Definitive Screening Design (DSD) using the DOE Dialog in JMP, with the goal of maximizing a response variable 'Y' and exploring the effects of six continuous factors: Methanol, Ethanol, Propanol, Butanol, pH, and Time.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Definitive Screening Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, 0, 10, "Methanol", 0
),
Add Factor(
Continuous, 0, 10, "Ethanol", 0
),
Add Factor(
Continuous, 0, 10, "Propanol", 0
),
Add Factor(
Continuous, 0, 10, "Butanol", 0
),
Add Factor(
Continuous, 6, 9, "pH", 0
),
Add Factor(
Continuous, 1, 2, "Time", 0
), Number of Extra Runs( 0 ),
Show Blocking Options( 1, 2 ),
Make Design}
);
Code Explanation:
- Open table.
- Define DOE.
- Set response to maximize.
- Add continuous factor: Methanol.
- Add continuous factor: Ethanol.
- Add continuous factor: Propanol.
- Add continuous factor: Butanol.
- Add continuous factor: pH.
- Add continuous factor: Time.
- Generate design.
Example 34
Summary: Opens a data table, initiates the DOE dialog, and defines a Definitive Screening Design with continuous factors for Methanol, Ethanol, Propanol, Butanol, pH, and Time, as well as a response variable Yield.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Definitive Screening Design,
{
Add Response(
Maximize, "Yield", ., ., .
),
Add Factor(
Continuous, 0, 10, "Methanol", 0
),
Add Factor(
Continuous, 0, 10, "Ethanol", 0
),
Add Factor(
Continuous, 0, 10, "Propanol", 0
),
Add Factor(
Continuous, 0, 10, "Butanol", 0
),
Add Factor(
Continuous, 6, 9, "pH", 0
),
Add Factor(
Continuous, 1, 2, "Time", 0
), Show Blocking Options( 1, 2 ),
Number of Extra Runs( 4 ),
Set Random Seed( 123 ), Make Design}
);
Code Explanation:
- Open data table.
- Initiate DOE dialog.
- Define Definitive Screening Design.
- Add response variable "Yield".
- Add continuous factor "Methanol".
- Add continuous factor "Ethanol".
- Add continuous factor "Propanol".
- Add continuous factor "Butanol".
- Add continuous factor "pH".
- Add continuous factor "Time".
Example 35
Summary: This JSL script evaluates a design experiment using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing variables Dichloromethane, Methanol, and Sample Volume from an open data table.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X(
:Dichloromethane, :Methanol,
:Sample Volume
)
);
Code Explanation:
- Open data table.
- Evaluate design experiment.
- Specify variables: Dichloromethane, Methanol, Sample Volume.
Example 36
Summary: Generates a custom design for a DOE (Design of Experiments) analysis using the REML method, fitting a model with random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Metacrate", ., ., ., 1,
99
),
Add Factor(
Continuous, 110, 150,
"Dichloromethane", 0
),
Add Factor(
Continuous, 400, 600, "Methanol",
0
),
Add Factor(
Continuous, 3, 7, "Sample Volume",
0
), Set Random Seed( 981216 ),
Number of Starts( 6776 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 2} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {2, 2} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {3, 2} ),
Set Sample Size( 32 ),
Optimality Criterion(
"Make I-Optimal Design"
), Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design}
);
Code Explanation:
- Open data table.
- Start DOE dialog.
- Add response variable.
- Add factor: Dichloromethane.
- Add factor: Methanol.
- Add factor: Sample Volume.
- Set random seed.
- Define number of starts.
- Add polynomial terms.
- Set sample size.
- Choose optimality criterion.
- Generate design.
Example 37
Summary: Evaluates design using the DOE function to analyze the relationship between pH, Water Temp, Extraction Time, Ratio, Agitation Speed, Hydrolyze, and Pre-Soak in a data table.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X(
:pH, :Water Temp,
:Extraction TIme, :Ratio,
:Agitation Speed, :Hydrolyze,
:"Pre-Soak"n
)
);
Code Explanation:
- Open data table.
- Define variables for evaluation.
- Evaluate design using DOE function.
Example 38
Summary: Opens a data table, defines a DOE (Design of Experiments) with various factors and response variables, and generates a design using the Definitive Screening Design method.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Definitive Screening Design,
{
Add Response(
Maximize, "Solids", ., ., .
),
Add Factor(
Continuous, -1, 1, "pH", 0
),
Add Factor(
Continuous, -1, 1, "Water Temp",
0
),
Add Factor(
Continuous, -1, 1,
"Extraction TIme", 0
),
Add Factor(
Continuous, -1, 1, "Ratio", 0
),
Add Factor(
Continuous, -1, 1,
"Agitation Speed", 0
),
Add Factor(
Categorical,
{"L1", "L2"},
"Hydrolyze",
0
),
Add Factor(
Categorical,
{"L1", "L2"},
"Pre-Soak",
0
), Show Blocking Options( 0, 0 ),
Number of Extra Runs( 4 ),
Set Random Seed( 12345 ), Make Design,
Simulate Responses( 0 ),
Save X Matrix( 0 )}
);
Code Explanation:
- Open table.
- Define DOE parameters.
- Add response variable.
- Add continuous factor: pH.
- Add continuous factor: Water Temp.
- Add continuous factor: Extraction Time.
- Add continuous factor: Ratio.
- Add continuous factor: Agitation Speed.
- Add categorical factor: Hydrolyze.
- Add categorical factor: Pre-Soak.
Example 39
Summary: Generates a custom design for a DOE (Design of Experiments) analysis using the Covering Array method, incorporating categorical factors and disallowed combinations to optimize experimental runs.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Covering Array,
{
Add Factor(
Categorical,
{"USA", "UK", "Canada", "France",
"Mexico"},
"Market",
0
),
Add Factor(
Categorical,
{"ISDN", "Bus", "Coin", "Res"},
"Near Phone",
0
),
Add Factor(
Categorical,
{"A", "B"},
"Near Interface",
0
),
Add Factor(
Categorical,
{"ISDN", "Bus", "Coin", "Res"},
"Far Phone",
0
),
Add Factor(
Categorical,
{"A", "B"},
"Far Interface",
0
), Set Strength( 2 ),
Disallowed Combinations(
Near Phone == "ISDN" &
Near Interface == "A" | Far Phone
== "ISDN" & Far Interface == "A"
| Near Phone == "Bus" &
Near Interface == "B" |
Near Phone == "Res" &
Near Interface == "B"
), Set Random Seed( 632 )}
);
Code Explanation:
- Open table.
- Start DOE dialog.
- Add categorical factor "Market".
- Add categorical factor "Near Phone".
- Add categorical factor "Near Interface".
- Add categorical factor "Far Phone".
- Add categorical factor "Far Interface".
- Set strength to 2.
- Define disallowed combinations.
- Set random seed to 632.
Example 40
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the Covering Array design to load factors from the data table.
Code:
// Load and Edit in Covering Array
// Open data table
dt = Open("data_table.jmp");
// Load and Edit in Covering Array
DOE(
Covering Array,
Load Factors( Current Data Table() )
);
Code Explanation:
- Open table.
- Load DOE platform.
- Use Covering Array design.
- Load factors from table.
Example 41
Summary: Opens a data table, initiates the DOE dialog, and designs an experiment using Mixture Design with Extreme Vertices. It sets factor ranges, adds constraints, and selects the response to maximize.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Mixture Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Change Factor Settings(
1, 0.1, 0.5, "X1"
),
Change Factor Settings(
2, 0.1, 0.7, "X2"
),
Change Factor Settings(
3, 0, 0.7, "X3"
), Set Random Seed( 205900700 ),
Add Constraint(
[-85 -90 -100 -90,
85 90 100 95,
-0.7 0 -1 -0.4]
),
Mixture Design Type(
Extreme Vertices, 2
)}
);
Code Explanation:
- Open data table.
- Initiate DOE dialog.
- Select Mixture Design.
- Add response: Maximize Y.
- Set factor X1 range.
- Set factor X2 range.
- Set factor X3 range.
- Set random seed.
- Add design constraints.
- Choose Extreme Vertices design.
Example 42
Summary: Evaluates a design using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing factors such as Feed Rate, Catalyst, Stir Rate, Temperature, and Concentration.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X(
:Feed Rate, :Catalyst, :Stir Rate,
:Temperature, :Concentration
)
);
Code Explanation:
- Open table.
- Evaluate design.
- Specify factors: Feed Rate, Catalyst, Stir Rate, Temperature, Concentration.
Example 43
Summary: Generates a custom design of experiments (DOE) using the DOE Dialog in JMP, with factors such as Feed Rate, Catalyst, Stir Rate, Temperature, and Concentration, to analyze the response variable Percent Reacted.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Screening Design,
{
Add Response(
Maximize, "Percent Reacted", 90,
100, 1
),
Add Factor(
Continuous, 10, 15, "Feed Rate",
0
),
Add Factor(
Continuous, 1, 2, "Catalyst", 0
),
Add Factor(
Continuous, 100, 120, "Stir Rate",
0
),
Add Factor(
Continuous, 140, 180,
"Temperature", 0
),
Add Factor(
Continuous, 3, 6, "Concentration",
0
), Set Random Seed( 34567 ),
Make Design( 3 )}
);
Code Explanation:
- Open table.
- Define DOE parameters.
- Add response variable.
- Add factor: Feed Rate.
- Add factor: Catalyst.
- Add factor: Stir Rate.
- Add factor: Temperature.
- Add factor: Concentration.
- Set random seed.
- Generate design.
Example 44
Summary: Loads a data table and creates a mixture design using the Load Factors from the current data table, enabling variance component analysis with REML method and model fitting for shrinkage with random effects in Standard Least Squares personality.
Code:
// Load and Edit in Mixture Design
// Open data table
dt = Open("data_table.jmp");
// Load and Edit in Mixture Design
DOE(
Mixture Design,
Load Factors( Current Data Table() )
);
Code Explanation:
- Open table.
- Create mixture design.
- Load factors from table.
Example 45
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE dialog to design an experiment.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
"Maximize", "Number Popped", ., .,
.
),
Add Response(
"None", "Total Kernals", ., ., .
),
Add Factor(
Categorical,
{"Top Secret", "Wilbur"},
"Brand",
0
),
Add Factor(
Continuous, 3, 5, "Time", 0
),
Add Factor(
Continuous, 5, 10, "Power", 0
), Set Random Seed( 151747005 ),
Number of Starts( 40 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {2, 2} ),
Add Term( {3, 2} ),
Set Sample Size( 16 ),
Add Constraint( [1 1 13, -1 -1 -10] ),
Make Design}
);
Code Explanation:
- Open data table.
- Initiate DOE dialog.
- Add maximize response.
- Add none response.
- Add categorical factor.
- Add continuous factor.
- Add continuous factor.
- Set random seed.
- Define number of starts.
- Add polynomial terms.
- Set sample size.
- Add constraint.
- Generate design.
Example 46
Summary: Generates a custom design of experiments (DOE) using the Custom Design platform in JMP, with specified factors and interactions to analyze the effect of various process variables on a response variable.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Percent Reacted", 90,
99, 1
),
Add Factor(
Continuous, 10, 15, "Feed Rate",
0
),
Add Factor(
Continuous, 1, 2, "Catalyst", 0
),
Add Factor(
Continuous, 100, 120, "Stir Rate",
0
),
Add Factor(
Continuous, 140, 180,
"Temperature", 0
),
Add Factor(
Continuous, 3, 6, "Concentration",
0
), Set Random Seed( 2024677686 ),
Number of Starts( 200 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {5, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {1, 1}, {4, 1} ),
Add Term( {1, 1}, {5, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {2, 1}, {4, 1} ),
Add Term( {2, 1}, {5, 1} ),
Add Term( {3, 1}, {4, 1} ),
Add Term( {3, 1}, {5, 1} ),
Add Term( {4, 1}, {5, 1} ),
Set Sample Size( 20 ), Make Design}
);
Code Explanation:
- Open table.
- Define DOE parameters.
- Add response variable.
- Add continuous factors.
- Set random seed.
- Specify number of starts.
- Add main effects.
- Add interaction terms.
- Set sample size.
- Generate design.
Example 47
Summary: Generates a full factorial design with six continuous factors and one response variable, utilizing the DOE dialog to create a table for analysis.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Full Factorial Design,
{
Add Response(
Maximize, "Percent Reacted", 90,
100, 1
),
Add Factor(
Continuous,
{10, 15},
"Feed Rate",
0
),
Add Factor(
Continuous,
{1, 2},
"Catalyst",
0
),
Add Factor(
Continuous,
{100, 120},
"Stir Rate",
0
),
Add Factor(
Continuous,
{140, 180},
"Temperature",
0
),
Add Factor(
Continuous,
{3, 6},
"Concentration",
0
), Set Random Seed( 12345 ),
Make Design, Make Table}
);
Code Explanation:
- Open data table.
- Define DOE parameters.
- Add response variable.
- Add continuous factor: Feed Rate.
- Add continuous factor: Catalyst.
- Add continuous factor: Stir Rate.
- Add continuous factor: Temperature.
- Add continuous factor: Concentration.
- Set random seed.
- Create design and table.
Example 48
Summary: Generates a DOE (Design of Experiments) dialog in JMP, specifying a screening design with multiple continuous factors and a response variable. The script sets up the experiment to simulate responses using REML (Restricted Maximum Likelihood) method.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Screening Design,
{
Add Response(
Maximize, "Percent Reacted", 90,
100, 1
),
Add Factor(
Continuous, 10, 15, "Feed Rate",
0
),
Add Factor(
Continuous, 1, 2, "Catalyst", 0
),
Add Factor(
Continuous, 100, 120, "Stir Rate",
0
),
Add Factor(
Continuous, 140, 180,
"Temperature", 0
),
Add Factor(
Continuous, 3, 6, "Concentration",
0
), Set Random Seed( 23456 ),
Make Design( 1 ),
Simulate Responses( 0 ),
Save X Matrix( 0 )}
);
Code Explanation:
- Open data table.
- Initiate DOE dialog.
- Set response type.
- Define response name.
- Set response target.
- Set response lower limit.
- Set response upper limit.
- Set response standard deviation.
- Add continuous factor.
- Define factor name.
- Set factor minimum value.
- Set factor maximum value.
- Add continuous factor.
- Define factor name.
- Set factor minimum value.
- Set factor maximum value.
- Add continuous factor.
- Define factor name.
- Set factor minimum value.
- Set factor maximum value.
- Add continuous factor.
- Define factor name.
- Set factor minimum value.
- Set factor maximum value.
- Add continuous factor.
- Define factor name.
- Set factor minimum value.
- Set factor maximum value.
- Set random seed.
- Generate design.
- Disable response simulation.
- Disable saving X matrix.
Example 49
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE dialog to generate an augmented design.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
dt = Current Data Table();
dt2 = dt <<
run script( "Original Data Table" );
Current Data Table( dt2 );
DOE(
Augment Design,
X(
:Feed Rate, :Catalyst, :Stir Rate,
:Temperature, :Concentration
),
Y( :Percent Reacted ),
{Augment Method( Augment ),
Set Random Seed( 456 ),
Number of Starts( 10 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {5, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {1, 1}, {4, 1} ),
Add Term( {1, 1}, {5, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {2, 1}, {4, 1} ),
Add Term( {2, 1}, {5, 1} ),
Add Term( {3, 1}, {4, 1} ),
Add Term( {3, 1}, {5, 1} ),
Add Term( {4, 1}, {5, 1} ),
Set Sample Size( 16 ),
Optimality Criterion( 1 ),
Make Design, Save X Matrix( 0 ),
Simulate Responses( 0 ), Make Table}
);
Code Explanation:
- Open data table.
- Set current data table.
- Run script on data table.
- Set new current data table.
- Start DOE dialog.
- Specify factors: Feed Rate, Catalyst, Stir Rate, Temperature, Concentration.
- Specify response: Percent Reacted.
- Configure augment method.
- Set random seed.
- Define design terms and criteria.
- Generate and save design.
Example 50
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the Screening Design feature to load factors from the current data table.
Code:
// Load and Edit in Screening Design
// Open data table
dt = Open("data_table.jmp");
// Load and Edit in Screening Design
DOE(
Screening Design,
Load Factors( Current Data Table() )
);
Code Explanation:
- Open data table.
- Load Screening Design.
- Use current data table.
Example 51
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the Screening Design feature to load responses from the current data table.
Code:
// Load and Edit in Screening Design
// Open data table
dt = Open("data_table.jmp");
// Load and Edit in Screening Design
DOE(
Screening Design,
Load Responses(
Current Data Table()
)
);
Code Explanation:
- Open data table.
- Load Screening Design.
- Load responses from current data table.
Example 52
Summary: Opens a data table, initiates the DOE dialog, and adds categorical factors for Web Browser, Operating System, RAM, and Connection Speed with a strength of 3.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Covering Array,
{
Add Factor(
Categorical,
{"Safari", "IE", "Firefox",
"Chrome", "Other"},
"Web Browser",
0
),
Add Factor(
Categorical,
{"Macintosh", "Windows"},
"Operating System",
0
),
Add Factor(
Categorical,
{"16 MB", "4 MB", "8 MB"},
"RAM",
0
),
Add Factor(
Categorical,
{"0-1 Mbps", "1-5 Mbps",
">5 Mbps"},
"Connection Speed",
0
), Set Strength( 3 )}
);
Code Explanation:
- Open table.
- Initiate DOE dialog.
- Add categorical factor.
- Define factor levels.
- Name factor "Web Browser".
- Add categorical factor.
- Define factor levels.
- Name factor "Operating System".
- Add categorical factor.
- Define factor levels.
- Name factor "RAM".
- Add categorical factor.
- Define factor levels.
- Name factor "Connection Speed".
- Set strength to 3.
Example 53
Summary: This JSL script evaluates a design of experiments (DOE) using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing factors from an open data table.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X(
:Rater, :Variety, :Field,
:"De-Stem"n, :Yeast, :Temperature,
:Press, :Barrel Age,
:Barrel Seasoning, :Filtering
)
);
Code Explanation:
- Open table.
- Evaluate design.
- Specify factors.
Example 54
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE function to evaluate design factors.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X(
:Liquid, :Sugar, :Flour, :Sifted,
:Type, :Temp, :Salt, :Clamp,
:Coat
),
{Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {5, 1} ),
Add Term( {6, 1} ),
Add Term( {7, 1} ),
Add Term( {8, 1} ),
Add Term( {9, 1} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ),
Add Alias Term( {1, 1}, {5, 1} ),
Add Alias Term( {1, 1}, {6, 1} ),
Add Alias Term( {1, 1}, {7, 1} ),
Add Alias Term( {1, 1}, {8, 1} ),
Add Alias Term( {1, 1}, {9, 1} ),
Add Alias Term( {2, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {4, 1} ),
Add Alias Term( {2, 1}, {5, 1} ),
Add Alias Term( {2, 1}, {6, 1} ),
Add Alias Term( {2, 1}, {7, 1} ),
Add Alias Term( {2, 1}, {8, 1} ),
Add Alias Term( {2, 1}, {9, 1} ),
Add Alias Term( {3, 1}, {4, 1} ),
Add Alias Term( {3, 1}, {5, 1} ),
Add Alias Term( {3, 1}, {6, 1} ),
Add Alias Term( {3, 1}, {7, 1} ),
Add Alias Term( {3, 1}, {8, 1} ),
Add Alias Term( {3, 1}, {9, 1} ),
Add Alias Term( {4, 1}, {5, 1} ),
Add Alias Term( {4, 1}, {6, 1} ),
Add Alias Term( {4, 1}, {7, 1} ),
Add Alias Term( {4, 1}, {8, 1} ),
Add Alias Term( {4, 1}, {9, 1} ),
Add Alias Term( {5, 1}, {6, 1} ),
Add Alias Term( {5, 1}, {7, 1} ),
Add Alias Term( {5, 1}, {8, 1} ),
Add Alias Term( {5, 1}, {9, 1} ),
Add Alias Term( {6, 1}, {7, 1} ),
Add Alias Term( {6, 1}, {8, 1} ),
Add Alias Term( {6, 1}, {9, 1} ),
Add Alias Term( {7, 1}, {8, 1} ),
Add Alias Term( {7, 1}, {9, 1} ),
Add Alias Term( {8, 1}, {9, 1} )}
);
Code Explanation:
- Open data table;
- Start DOE evaluation.
- Set factors: Liquid, Sugar, Flour, Sifted, Type, Temp, Salt, Clamp, Coat.
- Add main effects for all factors.
- Add interaction terms for all factors.
- Define alias terms for all factor pairs.
- Complete DOE evaluation.
Example 55
Summary: Evaluates a design of experiments (DOE) for the specified factors: Solvent, Active, and Water in a data table using the REML method.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X( :Solvent, :Active, :Water )
);
Code Explanation:
- Open data table.
- Evaluate design for DOE.
- Specify factors: Solvent, Active, Water.
Example 56
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE dialog to design an experiment.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Mixture, 0.26, 0.8, "Solvent", 0
),
Add Factor(
Mixture, 0.18, 0.4, "Active", 0
),
Add Factor(
Mixture, 0.02, 0.56, "Water", 0
), Set Random Seed( 625641159 ),
Number of Starts( 6371 ),
Add Constraint(
[-1 1.4 0 0, 0 0.1 -1 0]
), Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {1, 1}, {2, 1}, {3, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Set Sample Size( 16 ),
Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design}
);
Code Explanation:
- Open table.
- Start DOE dialog.
- Define response variable.
- Add mixture factor "Solvent".
- Add mixture factor "Active".
- Add mixture factor "Water".
- Set random seed.
- Specify number of starts.
- Add constraints.
- Define terms for model.
Example 57
Summary: Evaluates a design with factors %Beads, %Strength, Flow(g/min), and T(ºC) using the REML method in the Standard Least Squares personality.
Code:
// Evaluate Design
// Open data table
dt = Open("data_table.jmp");
// Evaluate Design
DOE(
Evaluate Design,
X(
:"%Beads"n, :"%Strength"n,
:"Flow(g/min)"n, :"T(ºC)"n
)
);
Code Explanation:
- Open table.
- Evaluate design.
- Specify factors.
- Include "%Beads".
- Include "%Strength".
- Include "Flow(g/min)".
- Include "T(ºC)".
Example 58
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE dialog to define factors and responses.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
dt = Current Data Table();
dt2 = dt <<
run script( "Original Data Table" );
Current Data Table( dt2 );
DOE(
Augment Design,
X(
:"%Beads"n, :"%Strength"n,
:"Flow(g/min)"n, :"T(ºC)"n
),
Y( :"Size/nm"n ),
{Augment Method( Augment ),
Set Random Seed( 2137584708 ),
Number of Starts( 25507 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Potential Term( {1, 1}, {2, 1} ),
Add Potential Term( {1, 1}, {3, 1} ),
Add Potential Term( {1, 1}, {4, 1} ),
Add Potential Term( {2, 1}, {3, 1} ),
Add Potential Term( {2, 1}, {4, 1} ),
Add Potential Term( {3, 1}, {4, 1} ),
Add Potential Term( {1, 2} ),
Add Potential Term( {2, 2} ),
Add Potential Term( {3, 2} ),
Add Potential Term( {4, 2} ),
Add Term( {1, 3} ),
Add Term( {2, 3} ),
Add Term( {3, 3} ),
Add Term( {4, 3} ),
Set Sample Size( 22 ),
D Efficiency Weight( 0 ), Make Design,
Save X Matrix( 0 ),
Simulate Responses( 0 ), Make Table}
);
Code Explanation:
- Open data table.
- Set current data table.
- Run script "Original Data Table".
- Set new current data table.
- Start DOE dialog.
- Define factors: %Beads, %Strength, Flow(g/min), T(ºC).
- Define response: Size/nm.
- Set augment method.
- Configure random seed.
- Set number of starts.
- Add main effects.
- Add two-way interactions.
- Add three-way interactions.
- Set sample size.
- Disable efficiency weight.
- Create design.
- Disable X matrix save.
- Disable response simulation.
- Generate final table.
Example 59
Summary: Generates a custom design for a DOE analysis using the REML method, fitting a model with random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "X1", 0
),
Add Factor(
Continuous, -1, 1, "X2", 0
),
Add Factor(
Continuous, -1, 1, "X3", 0
), Set Random Seed( 78379455 ),
Number of Starts( 1 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Set Sample Size( 24 ),
Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design}
);
Code Explanation:
- Open table.
- Create DOE dialog.
- Add response variable Y.
- Add factor X1.
- Add factor X2.
- Add factor X3.
- Set random seed.
- Define number of starts.
- Add main effects.
- Add interaction terms.
- Set sample size.
- Disable response simulation.
- Disable X matrix saving.
- Generate design.
Example 60
Summary: Generates a custom design of experiments (DOE) using the DOE Dialog in JMP, with factors including temperature, gl ratio, and ht, to analyze the relationship between these variables.
Code:
// DOE Dialog
// Open data table
dt = Open("data_table.jmp");
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Minimize, "Odor", ., ., .
),
Add Factor(
Continuous, -1, 1, "temp", 0
),
Add Factor(
Continuous, -1, 1, "gl ratio", 0
),
Add Factor(
Continuous, -1, 1, "ht", 0
), Set Random Seed( 904322795 ),
Number of Starts( 21 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 2} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {2, 2} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {3, 2} ),
Set Sample Size( 16 ),
Optimality Criterion( 2 ),
Make Design, Make Table}
);
Code Explanation:
- Open data table.
- Define DOE dialog.
- Add response variable.
- Add continuous factor: temp.
- Add continuous factor: gl ratio.
- Add continuous factor: ht.
- Set random seed.
- Specify number of starts.
- Add main effects.
- Add interaction terms.
- Set sample size.
- Choose optimality criterion.
- Generate design.
- Create design table.
Example 61
Summary: Generates a custom design of experiments (DOE) using the Custom Design platform in JMP, with a response variable, two continuous factors, and one categorical factor. The script also sets various DOE parameters and generates a design table.
Code:
// Basis for Design
// Open data table
dt = Open("data_table.jmp");
// Basis for Design
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "X1", 2
),
Add Factor(
Continuous, -1, 1, "X2", 1
),
Add Factor(
Categorical,
{"L1", "L2", "L3", "L4", "L5",
"L6", "L7", "L8", "L9", "L10"},
"X3",
0
), Set Random Seed( 117724710 ),
Number of Starts( 253 ),
Add Term( {1, 0} ),
Add Term( {3, 1} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {3, 1} ),
Set N Whole Plots( 4 ),
Set N Subplots( 16 ),
Set Sample Size( 48 ), Make Design,
Make Table}
);
Code Explanation:
- Open table.
- Define DOE parameters.
- Add response variable.
- Add continuous factor X1.
- Add continuous factor X2.
- Add categorical factor X3.
- Set random seed.
- Specify number of starts.
- Add main effects.
- Add interaction terms.
- Set whole plots.
- Set subplots.
- Set sample size.
- Generate design.
- Create design table.
Example 62
Summary: Performs a space filling design using the Fast Flexible Filling method to optimize the number of trees in a forest, terms sampled per split, bootstrap sample rate, minimum splits per tree, and minimum split size for maximum response Y.
Code:
// DOE Dialog
DOE(
Space Filling Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Change Factor Settings(
1, 3, 1000,
"Number of Trees in the Forest"
),
Change Factor Settings(
2, 1, 15,
"Number of Terms Sampled per Split"
),
Add Factor(
Continuous, 0.1, 1,
"Bootstrap Sample Rate", 0
),
Add Factor(
Continuous, 1, 10,
"Minimum Splits per Tree",
0
),
Add Factor(
Continuous, 3, 1000,
"Maximum Splits per Tree",
0
),
Add Factor(
Continuous, 1, 25,
"Minimum Split Size", 0
),
Set Random Seed( 503612986 ),
FFF Optimality Criterion(
MaxPro
),
Space Filling Design Type(
Fast Flexible Filling, 60
), Set Run Order( Randomize ),
Make Table}
);
Code Explanation:
- Start DOE process.
- Select Space Filling Design.
- Add response variable Y for maximization.
- Set factor 1: Number of Trees in the Forest, range 1-1000.
- Set factor 2: Number of Terms Sampled per Split, range 1-15.
- Add continuous factor: Bootstrap Sample Rate, range 0.1-1.
- Add continuous factor: Minimum Splits per Tree, range 1-10.
- Add continuous factor: Maximum Splits per Tree, range 3-1000.
- Add continuous factor: Minimum Split Size, range 1-25.
- Set random seed to 503612986.
- Use MaxPro optimality criterion.
- Choose Fast Flexible Filling design type with 60 iterations.
- Randomize run order.
- Generate and make design table.
Example 63
Summary: Performs a custom design of experiments (DOE) to optimize yield, match target MFI, and maximize CI in an investment casting process. It defines multiple continuous factors and sets a random seed for the simulation.
Code:
// V19: Custom DOE Settings
DOE(
Custom Design,
{
Add Response(
Maximize, "Yield", ., ., .
),
Add Response(
Match Target, "MFI", ., 198, .
),
Add Response(
Maximize, "CI", 80, ., .
),
Add Factor(
Continuous, 55, 65, "SA", 0
),
Add Factor(
Continuous, 0.3, 1.3, "M%", 0
),
Add Factor(
Continuous, 14, 17, "Xf", 0
),
Add Factor(
Continuous, 0.02, 1.4,
"Ambient Temp", 0
),
Add Factor(
Continuous, 3.5, 4.5, "pH", 0
),
Add Factor(
Continuous, 8, 10, "Viscosity", 0
), Set Random Seed( 103517925 )}
);
Code Explanation:
- Start DOE process.
- Select Custom Design.
- Define response "Yield" to maximize.
- Define response "MFI" to match target 198.
- Define response "CI" to maximize, lower bound 80.
- Add continuous factor "SA" from 55 to 65.
- Add continuous factor "M%" from 0.3 to 1.3.
- Add continuous factor "Xf" from 14 to 17.
- Add continuous factor "Ambient Temp" from 0.02 to 1.4.
- Add continuous factor "pH" from 3.5 to 4.5.
- Add continuous factor "Viscosity" from 8 to 10.
- Set random seed to 103517925.
Example 64
Summary: This JSL script defines a custom design of experiments (DOE) to optimize yield, match target MFI, and maximize CI in an investment casting process. The script uses the REML method for variance component analysis and fits a model with random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Yield", 93, ., .
),
Add Response(
Match Target, "MFI", ., 198, .
),
Add Response(
Maximize, "CI", 80, ., .
),
Add Factor(
Continuous, 55, 65, "SA", 0
),
Add Factor(
Continuous, 0.3, 1.3, "M%", 0
),
Add Factor(
Continuous, 14, 17, "Xf", 0
),
Add Factor(
Continuous, 0.02, 1.4,
"Ambient Temp", 0
), Set Random Seed( 103517925 ),
Number of Starts( 800 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {1, 1}, {4, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {2, 1}, {4, 1} ),
Add Term( {3, 1}, {4, 1} ),
Set Sample Size( 16 ), Make Design,
Simulate Responses}
);
Code Explanation:
- Define DOE parameters.
- Add response: Maximize Yield.
- Add response: Match Target MFI.
- Add response: Maximize CI.
- Add factor SA.
- Add factor M%.
- Add factor Xf.
- Add factor Ambient Temp.
- Set random seed.
- Configure design and simulate responses.
Example 65
Summary: Generates a custom design for a DOE experiment using the REML method, with random effects in the Standard Least Squares personality. The script optimizes three responses: Yield, MFI, and CI, while controlling four continuous factors.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Yield", 93, ., .
),
Add Response(
Match Target, "MFI", ., 198, .
),
Add Response(
Maximize, "CI", 80, ., .
),
Add Factor(
Continuous, 55, 65, "SA", 0
),
Add Factor(
Continuous, 0.3, 1.3, "M%", 0
),
Add Factor(
Continuous, 14, 17, "Xf", 0
),
Add Factor(
Continuous, 0.02, 1.4,
"Ambient Temp", 0
), Set Random Seed( 103517925 ),
Number of Starts( 6 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {1, 2} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {2, 2} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {3, 2} ),
Add Term( {1, 1}, {4, 1} ),
Add Term( {2, 1}, {4, 1} ),
Add Term( {3, 1}, {4, 1} ),
Add Term( {4, 2} ),
Set Sample Size( 21 ),
Optimality Criterion( 2 ),
Make Design, Simulate Responses}
);
Code Explanation:
- Start DOE Custom Design.
- Add response "Yield" to maximize.
- Set "Yield" target to 93.
- Add response "MFI" to match target.
- Set "MFI" target to 198.
- Add response "CI" to maximize.
- Set "CI" target to 80.
- Add continuous factor "SA" from 55 to 65.
- Add continuous factor "M%" from 0.3 to 1.3.
- Add continuous factor "Xf" from 14 to 17.
- Add continuous factor "Ambient Temp" from 0.02 to 1.4.
- Set random seed to 103517925.
- Set number of starts to 6.
- Add main effect for all factors.
- Add interaction terms between factors.
- Set sample size to 21.
- Use D-optimality criterion.
- Generate design and simulate responses.
Example 66
Summary: Generates a custom design for a DOE experiment using the REML method, fitting a model with random effects in the Standard Least Squares personality. The script optimizes responses 'Yield', 'MFI', and 'CI' while controlling factors 'SA', 'M%', 'Xf', 'Ambient Temp', 'pH', and 'Viscosity'.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Yield", ., ., .
),
Add Response(
Match Target, "MFI", ., 198, .
),
Add Response(
Maximize, "CI", 80, ., .
),
Add Factor(
Continuous, 55, 65, "SA", 0
),
Add Factor(
Continuous, 0.3, 1.3, "M%", 0
),
Add Factor(
Continuous, 14, 17, "Xf", 0
),
Add Factor(
Continuous, 0.02, 1.4,
"Ambient Temp", 0
),
Add Factor(
Continuous, 3.5, 4.5, "pH", 0
),
Add Factor(
Continuous, 8, 10, "Viscosity", 0
), Set Random Seed( 103517925 ),
Number of Starts( 2 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {5, 1} ),
Add Term( {6, 1} ),
Add Term( {1, 2} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {2, 2} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {3, 2} ),
Add Term( {1, 1}, {4, 1} ),
Add Term( {2, 1}, {4, 1} ),
Add Term( {3, 1}, {4, 1} ),
Add Term( {4, 2} ),
Add Term( {1, 1}, {5, 1} ),
Add Term( {2, 1}, {5, 1} ),
Add Term( {3, 1}, {5, 1} ),
Add Term( {4, 1}, {5, 1} ),
Add Term( {5, 2} ),
Add Term( {1, 1}, {6, 1} ),
Add Term( {2, 1}, {6, 1} ),
Add Term( {3, 1}, {6, 1} ),
Add Term( {4, 1}, {6, 1} ),
Add Term( {5, 1}, {6, 1} ),
Add Term( {6, 2} ),
Set Sample Size( 34 ),
Optimality Criterion( 2 ),
Make Design, Simulate Responses}
);
Code Explanation:
- Open DOE dialog.
- Select Custom Design.
- Add response "Yield" to maximize.
- Add response "MFI" to match target 198.
- Add response "CI" to maximize with lower bound 80.
- Add factor "SA" as continuous with range 55-65.
- Add factor "M%" as continuous with range 0.3-1.3.
- Add factor "Xf" as continuous with range 14-17.
- Add factor "Ambient Temp" as continuous with range 0.02-1.4.
- Add factor "pH" as continuous with range 3.5-4.5.
- Add factor "Viscosity" as continuous with range 8-10.
- Set random seed to 103517925.
- Set number of starts to 2.
- Add main effects for all factors.
- Add interaction terms between factors.
- Set sample size to 34.
- Set optimality criterion to 2.
- Make design.
- Simulate responses.
Example 67
Summary: Generates a Definitive Screening Design using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing various factors and responses to optimize yield, MFI, and CI.
Code:
// DOE Dialog
DOE(
Definitive Screening Design,
{
Add Response(
Maximize, "Yield", 93, ., .
),
Add Response(
Match Target, "MFI", ., 198, .
),
Add Response(
Maximize, "CI", 80, ., .
),
Add Factor(
Continuous, 55, 65, "SA", 0
),
Add Factor(
Continuous, 0.3, 1.3, "M%", 0
),
Add Factor(
Continuous, 14, 17, "Xf", 0
),
Add Factor(
Categorical,
{"A", "B"},
"Quarry",
0
),
Add Factor(
Continuous, 2.5, 7, "pH", 0
),
Add Factor(
Continuous, 1000, 3000,
"Vessel Size", 0
), Make Design}
);
Code Explanation:
- Open DOE dialog.
- Select Definitive Screening Design.
- Add response "Yield" to maximize.
- Set "Yield" target to 93.
- Add response "MFI" to match target.
- Set "MFI" target to 198.
- Add response "CI" to maximize.
- Set "CI" target to 80.
- Add continuous factor "SA" range 55-65.
- Add continuous factor "M%" range 0.3-1.3.
- Add continuous factor "Xf" range 14-17.
- Add categorical factor "Quarry" levels A, B.
- Add continuous factor "pH" range 2.5-7.
- Add continuous factor "Vessel Size" range 1000-3000.
- Generate design.
Example 68
Summary: This JSL script defines a Definitive Screening Design to optimize three responses: Yield, MFI, and CI. The design is generated using continuous factors SA, M%, Xf, and Ambient Temp.
Code:
// DOE Dialog
DOE(
Definitive Screening Design,
{
Add Response(
Maximize, "Yield", 93, ., .
),
Add Response(
Match Target, "MFI", ., 198, .
),
Add Response(
Maximize, "CI", 80, ., .
),
Add Factor(
Continuous, 55, 65, "SA", 0
),
Add Factor(
Continuous, 0.3, 1.3, "M%", 0
),
Add Factor(
Continuous, 14, 17, "Xf", 0
),
Add Factor(
Continuous, 0.02, 1.4,
"Ambient Temp", 0
), Make Design, Simulate Responses}
);
Code Explanation:
- Define DOE dialog.
- Use Definitive Screening Design.
- Add response "Yield" to maximize.
- Set "Yield" target to 93.
- Add response "MFI" to match target.
- Set "MFI" target to 198.
- Add response "CI" to maximize.
- Set "CI" target to 80.
- Add continuous factor "SA" from 55 to 65.
- Add continuous factor "M%" from 0.3 to 1.3.
- Add continuous factor "Xf" from 14 to 17.
- Add continuous factor "Ambient Temp" from 0.02 to 1.4.
- Generate design.
- Simulate responses.
Example 69
Summary: Generates a Definitive Screening Design using the DOE dialog, with responses to maximize Yield and match Target MFI, as well as continuous factors for SA, M%, Xf, Ambient Temp, pH, and Viscosity.
Code:
// DOE Dialog
DOE(
Definitive Screening Design,
{
Add Response(
Maximize, "Yield", ., ., .
),
Add Response(
Match Target, "MFI", ., 198, .
),
Add Response(
Maximize, "CI", 80, ., .
),
Add Factor(
Continuous, 55, 65, "SA", 0
),
Add Factor(
Continuous, 0.3, 1.3, "M%", 0
),
Add Factor(
Continuous, 14, 17, "Xf", 0
),
Add Factor(
Continuous, 0.02, 1.4,
"Ambient Temp", 0
),
Add Factor(
Continuous, 3.5, 4.5, "pH", 0
),
Add Factor(
Continuous, 8, 10, "Viscosity", 0
), Make Design}
);
Code Explanation:
- Open DOE dialog.
- Select Definitive Screening Design.
- Add response: Maximize Yield.
- Add response: Match Target MFI.
- Add response: Maximize CI.
- Add continuous factor SA (55-65).
- Add continuous factor M% (0.3-1.3).
- Add continuous factor Xf (14-17).
- Add continuous factor Ambient Temp (0.02-1.4).
- Add continuous factor pH (3.5-4.5).
- Add continuous factor Viscosity (8-10).
- Generate design.
Example 70
Summary: This JSL script defines a Definitive Screening Design (DSD) experiment with multiple response variables and factors, including continuous and categorical variables. The script sets up the design for subsequent analysis using REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
// DOE: DSD for Follow-up Experiment
DOE(
Definitive Screening Design,
{
Add Response(
Maximize, "Yield", 93, ., .
),
Add Response(
Match Target, "MFI", 192, 198, .
),
Add Response(
Maximize, "CI", 80, ., .
),
Add Factor(
Continuous, 55, 65, "SA", 0
),
Add Factor(
Continuous, 0.3, 1.3, "M%", 0
),
Add Factor(
Continuous, 14, 17, "Xf", 0
),
Add Factor(
Categorical,
{"A", "B"},
"Quarry",
0
),
Add Factor(
Continuous, 2.5, 7, "pH", 0
),
Add Factor(
Continuous, 1000, 3000,
"Vessel Size", 0
), Show Blocking Options( 0, 0 )}
);
Code Explanation:
- Define DOE experiment.
- Set design type to DSD.
- Add response variable "Yield" for maximization.
- Add response variable "MFI" for target matching.
- Add response variable "CI" for maximization.
- Add continuous factor "SA" with range 55-65.
- Add continuous factor "M%" with range 0.3-1.3.
- Add continuous factor "Xf" with range 14-17.
- Add categorical factor "Quarry" with levels A, B.
- Add continuous factor "pH" with range 2.5-7.
Example 71
Summary: Generates a Definitive Screening Design for an optimization problem, incorporating multiple responses and factors to maximize Yield, match Target MFI, and optimize CI, while also considering continuous and categorical factors.
Code:
// DOE Dialog
DOE(
Definitive Screening Design,
{
Add Response(
Maximize, "Yield", 93, ., .
),
Add Response(
Match Target, "MFI", 192, 198, .
),
Add Response(
Maximize, "CI", 80, ., .
),
Add Factor(
Continuous, 55, 65, "SA", 0
),
Add Factor(
Continuous, 0.3, 1.3, "M%", 0
),
Add Factor(
Continuous, 14, 17, "Xf", 0
),
Add Factor(
Categorical,
{"A", "B"},
"Quarry",
0
),
Add Factor(
Continuous, 2.5, 7, "pH", 0
),
Add Factor(
Continuous, 1000, 3000,
"Vessel Size", 0
), Make Design}
);
Code Explanation:
- Open DOE dialog.
- Select Definitive Screening Design.
- Add response: Maximize Yield.
- Set Yield target to 93.
- Add response: Match Target MFI.
- Set MFI target range 192 to 198.
- Add response: Maximize CI.
- Set CI target to 80.
- Add continuous factor SA, range 55 to 65.
- Add continuous factor M%, range 0.3 to 1.3.
- Add continuous factor Xf, range 14 to 17.
- Add categorical factor Quarry, levels A and B.
- Add continuous factor pH, range 2.5 to 7.
- Add continuous factor Vessel Size, range 1000 to 3000.
- Generate design.
Example 72
Summary: Generates a custom design for a DOE (Design of Experiments) using the REML method, with random effects in the Standard Least Squares personality. The script optimizes multiple responses and includes continuous factors, interaction terms, and alias terms.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Yield", 80, ., 1
),
Add Response(
Maximize, "Assay", 98, ., 1
),
Add Response(
Minimize, "Haze", ., 10, 1
),
Add Response(
Minimize, "Cost", ., ., 1
),
Add Factor(
Continuous, -1, 1, "Base", 0
),
Add Factor(
Continuous, -1, 1, "Carbamate", 0
),
Add Factor(
Continuous, -1, 1, "Toluene", 0
),
Add Factor(
Continuous, -1, 1, "Temperature",
0
),
Add Factor(
Continuous, -1, 1, "Time", 0
), Set Random Seed( 13174183 ),
Number of Starts( 40 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {5, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {1, 1}, {4, 1} ),
Add Term( {1, 1}, {5, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {2, 1}, {4, 1} ),
Add Term( {2, 1}, {5, 1} ),
Add Term( {3, 1}, {4, 1} ),
Add Term( {3, 1}, {5, 1} ),
Add Term( {4, 1}, {5, 1} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ),
Add Alias Term( {1, 1}, {5, 1} ),
Add Alias Term( {2, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {4, 1} ),
Add Alias Term( {2, 1}, {5, 1} ),
Add Alias Term( {3, 1}, {4, 1} ),
Add Alias Term( {3, 1}, {5, 1} ),
Add Alias Term( {4, 1}, {5, 1} ),
Set Sample Size( 16 ), Make Design,
Center Points( 3 )}
);
Code Explanation:
- Start DOE Custom Design.
- Add response "Yield" to maximize.
- Set "Yield" lower bound to 80.
- Add response "Assay" to maximize.
- Set "Assay" upper bound to 98.
- Add response "Haze" to minimize.
- Set "Haze" upper bound to 10.
- Add response "Cost" to minimize.
- Add continuous factor "Base".
- Add continuous factor "Carbamate".
- Add continuous factor "Toluene".
- Add continuous factor "Temperature".
- Add continuous factor "Time".
- Set random seed to 13174183.
- Set number of starts to 40.
- Add main effect for each factor.
- Add interaction terms between factors.
- Add alias terms between factors.
- Set sample size to 16.
- Generate design.
- Add 3 center points.
Example 73
Summary: Generates a custom design for a DOE experiment using the REML method, fitting a model with random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Minimize, "Bin 10", ., ., .
),
Add Factor(
Categorical,
{"L1", "L2", "L3", "L4"},
"Split",
0
),
Add Factor(
Continuous, -1, 1,
"451 Param Avg.", 0
),
Add Factor(
Continuous, -1, 1,
"164 Param Avg.", 0
), Set Random Seed( 20699087 ),
Number of Starts( 7393 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {2, 2} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {3, 2} ),
Set Sample Size( 16 ),
Optimality Criterion( 2 ),
Simulate Responses, Make Design}
);
Code Explanation:
- Open DOE dialog.
- Select Custom Design.
- Add response for minimization.
- Add categorical factor with levels.
- Add continuous factor "451 Param Avg."
- Add continuous factor "164 Param Avg."
- Set random seed for reproducibility.
- Specify number of starts.
- Add intercept term.
- Add main effects terms.
- Add interaction terms.
- Set sample size.
- Choose optimality criterion.
- Simulate responses.
- Generate design.
Example 74
Summary: Generates a custom design for a response maximization problem using the REML method, incorporating continuous and categorical factors, with random seed control and alias terms.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "X1", 2
),
Add Factor(
Continuous, -1, 1, "X2", 1
),
Add Factor(
Categorical,
{"L1", "L2", "L3", "L4", "L5",
"L6", "L7", "L8", "L9", "L10"},
"X3",
0
), Set Random Seed( 117724710 ),
Number of Starts( 253 ),
Add Term( {1, 0} ),
Add Term( {3, 1} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {3, 1} ),
Set N Whole Plots( 4 ),
Set N Subplots( 16 ),
Set Sample Size( 48 ), Make Design,
Make Table}
);
Code Explanation:
- Initiate DOE dialog.
- Select Custom Design.
- Define response Y for maximization.
- Add continuous factor X1 with range -1 to 1.
- Add continuous factor X2 with range -1 to 1.
- Add categorical factor X3 with 10 levels.
- Set random seed for reproducibility.
- Specify number of design starts.
- Include intercept term in model.
- Include interaction term between X3 and response.
- Define alias terms for model terms.
- Set whole plots and subplots.
- Set sample size for design.
- Generate design.
- Create design table.
Example 75
Summary: Generates a custom design for an experiment using the DOE dialog, with responses to maximize yield and assay, minimize impurity, and factors including continuous temperature, time, and amount, as well as categorical seed and mixture water, alcohol, and ether. The script also sets random seeds, number of starts, sample size, and adds constraints.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
"Maximize", "Yield", 90, ., 1
),
Add Response(
"Maximize", "Assay", 98, ., 2
),
Add Response(
"Minimize", "Impurity", ., 1, 3
),
Add Factor(
Continuous, 0, 20, "Temperature",
0
),
Add Factor(
Continuous, 1, 2, "Time", 0
),
Add Factor(
Continuous, 1, 2, "Amount", 0
),
Add Factor(
Categorical,
{"No", "Yes"},
"Seed",
0
),
Add Factor(
Mixture, 0.2, 1, "Water", 0
),
Add Factor(
Mixture, 0.15, 1, "Alcohol", 0
),
Add Factor(
Mixture, 0.2, 0.6, "Ether", 0
), Add Factor( Blocking, 6, "Day" ),
Set Random Seed( 3833733 ),
Number of Starts( 40 ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {5, 1} ),
Add Term( {6, 1} ),
Add Term( {7, 1} ),
Add Term( {8, 1} ),
Set Sample Size( 12 ),
Add Constraint(
[0 0 0 0 -1 -1 -0.7]
), Make Design}
);
Code Explanation:
- Open DOE dialog.
- Select Custom Design.
- Add Yield response for maximization.
- Add Assay response for maximization.
- Add Impurity response for minimization.
- Add Temperature continuous factor.
- Add Time continuous factor.
- Add Amount continuous factor.
- Add Seed categorical factor.
- Add Water mixture factor.
- Add Alcohol mixture factor.
- Add Ether mixture factor.
- Add Day blocking factor.
- Set random seed.
- Set number of starts.
- Add main effects for all factors.
- Set sample size.
- Add constraint.
- Make design.
Example 76
Summary: Creates a space filling design using the Fast Flexible Filling method, with factors set for maximum split per tree, row and column sampling rates, and number of trees. The script also sets a random seed and optimizes the design for maximum probability.
Code:
// DOE Dialog
DOE(
Space Filling Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Change Factor Settings(
1, 1, 10, "Number Terms"
),
Change Factor Settings(
2, 5, 15,
"Minimum Split Per Tree"
),
Add Factor(
Continuous, 100, 2000,
"Maximum Split Per Tree", 0
),
Add Factor(
Continuous, 0.4, 1,
"Row Sampling Rate", 0
),
Add Factor(
Continuous, 0.4, 1,
"Column Sampling Rate", 0
),
Add Factor(
Continuous, 100, 1000,
"Number Trees", 0
), Set Random Seed( 548678189 ),
FFF Optimality Criterion( MaxPro ),
Space Filling Design Type(
Fast Flexible Filling, 60
), Make Table}
);
Code Explanation:
- Create DOE dialog.
- Define space filling design.
- Add maximize response "Y".
- Set factor 1 range 1-10, name "Number Terms".
- Set factor 2 range 5-15, name "Minimum Split Per Tree".
- Add continuous factor, range 100-2000, name "Maximum Split Per Tree".
- Add continuous factor, range 0.4-1, name "Row Sampling Rate".
- Add continuous factor, range 0.4-1, name "Column Sampling Rate".
- Add continuous factor, range 100-1000, name "Number Trees".
- Set random seed 548678189.
Example 77
Summary: Process of generating a Space Filling Design for a DOE (Design of Experiments) using the Fast Flexible Filling method, with specified factor settings and response maximization.
Code:
// DOE Dialog
DOE(
Space Filling Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Change Factor Settings(
1, 1, 10, "Number Terms"
),
Change Factor Settings(
2, 5, 15,
"Minimum Split Per Tree"
),
Add Factor(
Continuous, 100, 2000,
"Maximum Split Per Tree", 0
),
Add Factor(
Continuous, 0.4, 1,
"Row Sampling Rate", 0
),
Add Factor(
Continuous, 0.4, 1,
"Column Sampling Rate", 0
),
Add Factor(
Continuous, 100, 1000,
"Number Trees", 0
), Set Random Seed( 588569099 ),
FFF Optimality Criterion( MaxPro ),
Space Filling Design Type(
Fast Flexible Filling, 10
), Set Run Order( Randomize ),
Make Table}
);
Code Explanation:
- Start DOE process.
- Use Space Filling Design.
- Add response for maximization.
- Set factor 1 settings.
- Set factor 2 settings.
- Add continuous factor "Maximum Split Per Tree".
- Add continuous factor "Row Sampling Rate".
- Add continuous factor "Column Sampling Rate".
- Add continuous factor "Number Trees".
- Generate and display design table.
Example 78
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing a custom design with continuous factors X1-X4.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "X1", 0
),
Add Factor(
Continuous, -1, 1, "X2", 0
),
Add Factor(
Continuous, -1, 1, "X3", 0
),
Add Factor(
Continuous, -1, 1, "X4", 0
), Set Random Seed( 3803118 ),
Number of Starts( 1 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ),
Add Alias Term( {2, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {4, 1} ),
Add Alias Term( {3, 1}, {4, 1} ),
Set Sample Size( 12 ),
Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design}
);
Code Explanation:
- Open DOE dialog.
- Select Custom Design.
- Add response: Maximize Y.
- Add factor X1, continuous, range -1 to 1.
- Add factor X2, continuous, range -1 to 1.
- Add factor X3, continuous, range -1 to 1.
- Add factor X4, continuous, range -1 to 1.
- Set random seed 3803118.
- Set number of starts to 1.
- Define design terms and aliases, set sample size 12.
Example 79
Summary: This script initiates a custom design of experiments (DOE) process to analyze the relationship between four continuous factors (X1, X2, X3, and X4) and their interactions, using the REML method for variance component analysis and fitting a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "X1", 0
),
Add Factor(
Continuous, -1, 1, "X2", 0
),
Add Factor(
Continuous, -1, 1, "X3", 0
),
Add Factor(
Continuous, -1, 1, "X4", 0
), Set Random Seed( 1533566117 ),
Number of Starts( 141 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ),
Add Alias Term( {2, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {4, 1} ),
Add Alias Term( {3, 1}, {4, 1} ),
Set Sample Size( 14 ),
Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design,
Set Run Order( Randomize ),
Make Table}
);
Code Explanation:
- Initiate DOE process.
- Use Custom Design method.
- Define response to maximize ("Y").
- Add continuous factor "X1".
- Add continuous factor "X2".
- Add continuous factor "X3".
- Add continuous factor "X4".
- Set random seed for reproducibility.
- Specify number of design starts.
- Include main effects for all factors.
- Include alias terms for interactions.
- Set sample size.
- Disable response simulation.
- Disable saving X matrix.
- Generate design.
- Randomize run order.
- Create final design table.
Example 80
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing a Custom Design in JMP.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "X1", 0
),
Add Factor(
Continuous, -1, 1, "X2", 0
),
Add Factor(
Continuous, -1, 1, "X3", 0
),
Add Factor(
Continuous, -1, 1, "X4", 0
), Set Random Seed( 1906185792 ),
Number of Starts( 1 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ),
Add Alias Term( {2, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {4, 1} ),
Add Alias Term( {3, 1}, {4, 1} ),
Set Sample Size( 16 ),
Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design,
Set Run Order( Randomize ),
Make Table}
);
Code Explanation:
- Start DOE dialog.
- Select Custom Design.
- Add response to maximize.
- Add continuous factor X1.
- Add continuous factor X2.
- Add continuous factor X3.
- Add continuous factor X4.
- Set random seed.
- Set number of starts.
- Add main effects and interactions.
- Add alias terms.
- Set sample size.
- Disable response simulation.
- Disable saving X matrix.
- Generate design.
- Randomize run order.
- Create data table.
Example 81
Summary: Performs a custom design of experiments (DOE) to analyze the relationship between four continuous factors (X1, X2, X3, and X4) using the REML method in the Standard Least Squares personality.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "X1", 0
),
Add Factor(
Continuous, -1, 1, "X2", 0
),
Add Factor(
Continuous, -1, 1, "X3", 0
),
Add Factor(
Continuous, -1, 1, "X4", 0
), Set Random Seed( 2076006612 ),
Number of Starts( 91 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ),
Add Alias Term( {2, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {4, 1} ),
Add Alias Term( {3, 1}, {4, 1} ),
Set Sample Size( 18 ),
Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design,
Set Run Order( Randomize ),
Make Table}
);
Code Explanation:
- Start DOE process.
- Select Custom Design.
- Define response to maximize.
- Add continuous factor X1.
- Add continuous factor X2.
- Add continuous factor X3.
- Add continuous factor X4.
- Set random seed for reproducibility.
- Specify number of design starts.
- Add main effects for all factors.
- Add alias terms for interaction effects.
- Set sample size.
- Disable response simulation.
- Disable X matrix saving.
- Generate the design.
- Randomize run order.
- Create the design table.
Example 82
Summary: This JSL script defines a Definitive Screening Design (DSD) using the DOE Dialog, specifying continuous factors X1 to X5 and maximizing response Y. The design is then simulated with random responses.
Code:
// DOE Dialog
DOE(
Definitive Screening Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "X1", 0
),
Add Factor(
Continuous, -1, 1, "X2", 0
),
Add Factor(
Continuous, -1, 1, "X3", 0
),
Add Factor(
Continuous, -1, 1, "X4", 0
),
Add Factor(
Continuous, -1, 1, "X5", 0
), Show Blocking Options( 0, 0 ),
Number of Extra Runs( 4 ),
Set Random Seed( 131982 ),
Make Design,
Simulate Responses(
1,
Random Seed( -1 )
), Save X Matrix( 0 )}
);
Code Explanation:
- Define DOE parameters.
- Set response type to maximize.
- Add continuous factor X1.
- Add continuous factor X2.
- Add continuous factor X3.
- Add continuous factor X4.
- Add continuous factor X5.
- Disable blocking options.
- Specify 4 extra runs.
- Set random seed to 131982.
Example 83
Summary: Performs a custom design of experiments (DOE) to analyze the relationship between various factors and their impact on NOx emissions, utilizing the REML method for variance component analysis and fitting a model with random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "NOx", ., ., .
),
Add Factor(
Continuous, 0, 6,
"Hydrogen Fraction", 0
),
Add Factor(
Continuous, 1.05, 1.3,
"Air/Fuel Ratio", 0
),
Add Factor(
Continuous, 21, 25,
"Lance Position X", 0
),
Add Factor(
Continuous, 5, 10,
"Lance Position Y", 0
),
Add Factor(
Continuous, 0, 6,
"Secondary Fuel Fraction", 0
),
Add Factor(
Continuous, 0.5, 1.5,
"Dispersant", 0
),
Add Factor(
Continuous, 0, 10, "Ethanol", 0
), Set Random Seed( 338785861 ),
Number of Starts( 1468 ),
Add Potential Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {5, 1} ),
Add Term( {6, 1} ),
Add Term( {7, 1} ),
Add Term( {1, 2} ),
Add Potential Term( {1, 1}, {2, 1} ),
Add Term( {2, 2} ),
Add Potential Term( {1, 1}, {3, 1} ),
Add Potential Term( {2, 1}, {3, 1} ),
Add Term( {3, 2} ),
Add Potential Term( {1, 1}, {4, 1} ),
Add Potential Term( {2, 1}, {4, 1} ),
Add Potential Term( {3, 1}, {4, 1} ),
Add Term( {4, 2} ),
Add Potential Term( {1, 1}, {5, 1} ),
Add Potential Term( {2, 1}, {5, 1} ),
Add Potential Term( {3, 1}, {5, 1} ),
Add Potential Term( {4, 1}, {5, 1} ),
Add Potential Term( {5, 2} ),
Add Potential Term( {1, 1}, {6, 1} ),
Add Potential Term( {2, 1}, {6, 1} ),
Add Potential Term( {3, 1}, {6, 1} ),
Add Potential Term( {4, 1}, {6, 1} ),
Add Potential Term( {5, 1}, {6, 1} ),
Add Potential Term( {6, 2} ),
Add Potential Term( {1, 1}, {7, 1} ),
Add Potential Term( {2, 1}, {7, 1} ),
Add Potential Term( {3, 1}, {7, 1} ),
Add Potential Term( {4, 1}, {7, 1} ),
Add Potential Term( {5, 1}, {7, 1} ),
Add Potential Term( {6, 1}, {7, 1} ),
Add Potential Term( {7, 2} ),
Center Points( 2 ),
Set Sample Size( 32 ),
Optimality Criterion( 2 ),
Simulate Responses}
);
Code Explanation:
- Start DOE process.
- Select Custom Design.
- Define response variable NOx.
- Add Hydrogen Fraction factor.
- Add Air/Fuel Ratio factor.
- Add Lance Position X factor.
- Add Lance Position Y factor.
- Add Secondary Fuel Fraction factor.
- Add Dispersant factor.
- Add Ethanol factor.
- Set random seed.
- Specify number of starts.
- Add potential interaction terms.
- Add main effect terms.
- Add squared terms.
- Add two center points.
- Set sample size.
- Choose optimality criterion.
- Simulate responses.
Example 84
Summary: Initiates a custom design of experiments (DOE) process to optimize a response variable Y, with factors Dichloromethane, Methanol, and Sample Volume. The script uses the REML method for variance component analysis and fits a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, 110, 150,
"Dichloromethane", 0
),
Add Factor(
Continuous, 400, 600, "Methanol",
0
),
Add Factor(
Continuous, 3, 7, "Sample Volume",
0
), Set Random Seed( 1145917887 ),
Number of Starts( 13717 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 2} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {2, 2} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {3, 2} ),
Set Sample Size( 32 ),
Optimality Criterion( 2 ),
Make Design,
Set Run Order( Randomize ),
Make Table}
);
Code Explanation:
- Initiate DOE process.
- Select Custom Design.
- Define response: Maximize Y.
- Add factor: Dichloromethane, range 110-150.
- Add factor: Methanol, range 400-600.
- Add factor: Sample Volume, range 3-7.
- Set random seed for reproducibility.
- Specify number of starts for optimization.
- Add main effects terms.
- Add interaction and quadratic terms.
- Set sample size to 32.
- Choose optimality criterion.
- Generate design.
- Randomize run order.
- Create data table.
Example 85
Summary: Generates a full factorial design with six continuous factors and one response variable, using the REML method to perform variance component analysis and fit a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
DOE(
Full Factorial Design,
{
Add Response(
Maximize, "Proportion Reacted",
90, 100, 1
),
Add Factor(
Continuous,
{10, 15},
"Feed Rate",
0
),
Add Factor(
Continuous,
{1, 2},
"Catalyst",
0
),
Add Factor(
Continuous,
{100, 120},
"Stir Rate",
0
),
Add Factor(
Continuous,
{140, 180},
"Temperature",
0
),
Add Factor(
Continuous,
{3, 6},
"Concentration",
0
), Set Random Seed( 12345 ),
Make Design, Make Table}
);
Code Explanation:
- Open DOE dialog.
- Choose Full Factorial Design.
- Add response variable.
- Set response goal to maximize.
- Name response "Proportion Reacted".
- Define response limits 90 to 100.
- Set response standard deviation to 1.
- Add continuous factor "Feed Rate".
- Define "Feed Rate" range 10 to 15.
- Add continuous factor "Catalyst".
- Define "Catalyst" range 1 to 2.
- Add continuous factor "Stir Rate".
- Define "Stir Rate" range 100 to 120.
- Add continuous factor "Temperature".
- Define "Temperature" range 140 to 180.
- Add continuous factor "Concentration".
- Define "Concentration" range 3 to 6.
- Set random seed to 12345.
- Generate design.
- Create data table.
Example 86
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing a custom design with continuous factors X1-X4.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "X1", 0
),
Add Factor(
Continuous, -1, 1, "X2", 0
),
Add Factor(
Continuous, -1, 1, "X3", 0
),
Add Factor(
Continuous, -1, 1, "X4", 0
), Set Random Seed( 308514798 ),
Number of Starts( 31958 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {1, 2} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {2, 2} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {3, 2} ),
Add Term( {1, 1}, {4, 1} ),
Add Term( {2, 1}, {4, 1} ),
Add Term( {3, 1}, {4, 1} ),
Add Term( {4, 2} ),
Set Sample Size( 16 ),
Optimality Criterion( 2 ),
Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design}
);
Code Explanation:
- Open DOE dialog.
- Select Custom Design.
- Add response to maximize.
- Add continuous factor X1.
- Add continuous factor X2.
- Add continuous factor X3.
- Add continuous factor X4.
- Set random seed.
- Set number of starts.
- Define model terms.
- Set sample size.
- Set optimality criterion.
- Disable response simulation.
- Disable X matrix saving.
- Create design.
Example 87
Summary: Generates a custom design for a mixture experiment using the DOE dialog, with factors for Solvent, Active, and Water, and performs a variance component analysis using the REML method.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Mixture, 0.26, 0.8, "Solvent", 0
),
Add Factor(
Mixture, 0.18, 0.4, "Active", 0
),
Add Factor(
Mixture, 0.02, 0.56, "Water", 0
), Set Random Seed( 1544088351 ),
Number of Starts( 2072 ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 1}, {2, 1}, {3, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Set Sample Size( 32 ),
Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design,
Set Run Order( Randomize ),
Make Table}
);
Code Explanation:
- Open DOE dialog.
- Select Custom Design.
- Add response variable "Y".
- Define "Solvent" factor.
- Define "Active" factor.
- Define "Water" factor.
- Set random seed.
- Set number of starts.
- Add main effects terms.
- Add interaction terms.
- Set sample size.
- Disable response simulation.
- Disable X matrix saving.
- Generate design.
- Randomize run order.
- Create design table.
Example 88
Summary: Generates a custom design for an experiment using the DOE Dialog, optimizing for I-optimality and specifying random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor( Mixture, 0, 1, "A", 0 ),
Add Factor( Mixture, 0, 1, "B", 0 ),
Add Factor( Mixture, 0, 1, "C", 0 ),
Set Random Seed( 802670610 ),
Number of Starts( 3198 ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {1, 1}, {2, 1}, {3, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Set Sample Size( 16 ),
Optimality Criterion(
"Make I-Optimal Design"n
), Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design,
Set Run Order( Randomize ),
Make Table}
);
Code Explanation:
- Start DOE process.
- Use Custom Design.
- Add response to maximize.
- Define factor A as mixture.
- Define factor B as mixture.
- Define factor C as mixture.
- Set random seed for reproducibility.
- Specify number of starts.
- Add main effect terms.
- Add interaction terms.
- Set sample size.
- Optimize design for I-optimality.
- Do not simulate responses.
- Do not save X matrix.
- Generate design.
- Randomize run order.
- Create data table.
Example 89
Summary: Initiates a custom design of experiments (DOE) process to optimize a response variable, incorporating mixture factors for Solvent, Active, and Water, while applying random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Mixture, 0.26, 0.8, "Solvent", 0
),
Add Factor(
Mixture, 0.18, 0.4, "Active", 0
),
Add Factor(
Mixture, 0.02, 0.56, "Water", 0
), Set Random Seed( 625641159 ),
Number of Starts( 6371 ),
Add Constraint(
[-1 1.4 0 0, 0 0.1 -1 0]
), Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {1, 1}, {2, 1}, {3, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Set Sample Size( 16 ),
Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design}
);
Code Explanation:
- Initiate DOE process.
- Select Custom Design.
- Define response to maximize.
- Add mixture factor "Solvent".
- Add mixture factor "Active".
- Add mixture factor "Water".
- Set random seed for reproducibility.
- Specify number of design starts.
- Add design constraints.
- Include all main effects and interactions.
Example 90
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing a custom design with continuous factors X1, X2, and X3.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "X1", 0
),
Add Factor(
Continuous, -1, 1, "X2", 0
),
Add Factor(
Continuous, -1, 1, "X3", 0
), Set Random Seed( 78379455 ),
Number of Starts( 1 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Set Sample Size( 24 ),
Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design}
);
Code Explanation:
- Start DOE dialog.
- Select Custom Design.
- Add response "Y" to maximize.
- Add continuous factor "X1".
- Add continuous factor "X2".
- Add continuous factor "X3".
- Set random seed.
- Specify number of starts.
- Add main effect terms.
- Add interaction terms.
- Set sample size.
- Disable response simulation.
- Disable X matrix saving.
- Generate design.
Example 91
Summary: Generates a Definitive Screening Design for a six-factor experiment, maximizing the response variable 'Y', and displays the design table.
Code:
// DOE Dialog
DOE(
Definitive Screening Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "X1", 0
),
Add Factor(
Continuous, -1, 1, "X2", 0
),
Add Factor(
Continuous, -1, 1, "X3", 0
),
Add Factor(
Continuous, -1, 1, "X4", 0
),
Add Factor(
Continuous, -1, 1, "X5", 0
),
Add Factor(
Continuous, -1, 1, "X6", 0
), Show Blocking Options( 0, 0 ),
Number of Extra Runs( 0 ),
Set Random Seed( 524050865 ),
Make Design, Make Table}
);
Code Explanation:
- Open DOE dialog.
- Select Definitive Screening Design.
- Add response "Y" to maximize.
- Add continuous factor "X1".
- Add continuous factor "X2".
- Add continuous factor "X3".
- Add continuous factor "X4".
- Add continuous factor "X5".
- Add continuous factor "X6".
- Generate and display design table.
Example 92
Summary: Generates a Definitive Screening Design using the DOE dialog, with six continuous factors and one response variable, to perform a variance component analysis using the REML method and fit a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
DOE(
Definitive Screening Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, -1, 1, "X1", 0
),
Add Factor(
Continuous, -1, 1, "X2", 0
),
Add Factor(
Continuous, -1, 1, "X3", 0
),
Add Factor(
Continuous, -1, 1, "X4", 0
),
Add Factor(
Continuous, -1, 1, "X5", 0
),
Add Factor(
Continuous, -1, 1, "X6", 0
), Show Blocking Options( 0, 0 ),
Number of Extra Runs( 4 ),
Set Random Seed( 1217955066 ),
Make Design}
);
Code Explanation:
- Open DOE dialog.
- Select Definitive Screening Design.
- Add response variable Y.
- Add continuous factor X1.
- Add continuous factor X2.
- Add continuous factor X3.
- Add continuous factor X4.
- Add continuous factor X5.
- Add continuous factor X6.
- Generate design with settings.
Example 93
Summary: Generates a custom design for a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous, 100, 1000,
"Number Trees", 0
),
Add Factor(
Continuous, 2, 5, "Number Terms",
0
), Set Random Seed( 1335293222 ),
Number of Starts( 34388 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {1, 2} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {2, 2} ),
Set Sample Size( 12 ),
Optimality Criterion( 2 ),
Make Design}
);
Code Explanation:
- Open DOE dialog.
- Select Custom Design.
- Add response variable Y.
- Add continuous factor Number Trees.
- Add continuous factor Number Terms.
- Set random seed.
- Define number of starts.
- Add linear term for Number Trees.
- Add quadratic term for Number Trees.
- Add interaction term between factors.
- Set sample size.
- Set optimality criterion.
- Generate design.
Example 94
Summary: Initiates a custom design of experiments (DOE) process to optimize yield, match target MFI, and maximize CI in an investment casting application. The script defines various factors, including continuous and categorical variables, and sets a random seed.
Code:
// Custom Design
DOE(
Custom Design,
{
Add Response(
Maximize, "Yield", ., ., .
),
Add Response(
Match Target, "MFI", ., 198, .
),
Add Response(
Maximize, "CI", 80, ., .
),
Add Factor(
Continuous, 50, 80, "SA", 0
),
Add Factor(
Continuous, 0, 3.7, "M%", 0
),
Add Factor(
Continuous, 13, 19, "Xf", 0
),
Add Factor(
Categorical,
{"Umbogo A", "Kuanga B",
"Kuanga A"},
"Quarry",
0
),
Add Factor(
Continuous, 2, 6.5, "pH", 0
),
Add Factor(
Continuous, 6.5, 7.5, "Viscosity",
0
),
Add Factor(
Continuous, 5, 25, "Ambient Temp",
0
),
Add Factor(
Categorical,
{"A", "B", "C", "D"},
"Shift",
0
), Set Random Seed( 103517925 )}
);
Code Explanation:
- Initiate DOE process.
- Define Custom Design.
- Add response: Maximize Yield.
- Add response: Match Target MFI.
- Add response: Maximize CI.
- Add continuous factor SA.
- Add continuous factor M%.
- Add continuous factor Xf.
- Add categorical factor Quarry.
- Add continuous factor pH.
- Add continuous factor Viscosity.
- Add continuous factor Ambient Temp.
- Add categorical factor Shift.
- Set random seed 103517925.
Example 95
Summary: Creates a Definitive Screening Design (DSD) using the DOE function, defining multiple responses and factors to optimize yield, match target MFI, and maximize CI while controlling various continuous and categorical factors.
Code:
// DSD
DOE(
Definitive Screening Design,
{
Add Response(
Maximize, "Yield", ., ., .
),
Add Response(
Match Target, "MFI", ., 198, .
),
Add Response(
Maximize, "CI", 80, ., .
),
Add Factor(
Continuous, 50, 80, "SA", 0
),
Add Factor(
Continuous, 0, 3.7, "M%", 0
),
Add Factor(
Continuous, 13, 19, "Xf", 0
),
Add Factor(
Categorical,
{"Umbogo A", "Kuanga B",
"Kuanga A"},
"Quarry",
0
),
Add Factor(
Continuous, 2, 6.5, "pH", 0
),
Add Factor(
Continuous, 6.5, 7.5, "Viscosity",
0
),
Add Factor(
Continuous, 5, 25, "Ambient Temp",
0
),
Add Factor(
Categorical,
{"A", "B", "C", "D"},
"Shift",
0
), Set Random Seed( 103517925 )}
);
Code Explanation:
- Create a new DOE.
- Define a Definitive Screening Design.
- Add response "Yield" to maximize.
- Add response "MFI" to match target 198.
- Add response "CI" to maximize, lower bound 80.
- Add continuous factor "SA" range 50-80.
- Add continuous factor "M%" range 0-3.7.
- Add continuous factor "Xf" range 13-19.
- Add categorical factor "Quarry" with levels.
- Add continuous factor "pH" range 2-6.5.
- Add continuous factor "Viscosity" range 6.5-7.5.
- Add continuous factor "Ambient Temp" range 5-25.
- Add categorical factor "Shift" with levels.
- Set random seed to 103517925.
Example 96
Summary: Performs a custom design of experiments (DOE) to analyze the impact of factors 'Brand', 'Time', and 'Power' on responses 'Number Popped' and 'Total Kernels'. The script uses the REML method for variance component analysis and fits a model with random effects in the Standard Least Squares personality.
Code:
//
DOE(
Custom Design,
{
Add Response(
Maximize, "Number Popped", ., .,
.
),
Add Response(
Maximize, "Total Kernels", ., .,
.
),
Add Factor(
Categorical,
{"Top Secret", "Wilbur"},
"Brand",
0
),
Add Factor(
Continuous, 3, 5, "Time", 0
),
Add Factor(
Continuous, 5, 10, "Power", 0
), Set Random Seed( 1117081326 ),
Add Constraint( [1 1 13, -1 -1 -10] ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {2, 2} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {3, 2} ),
Set Sample Size( 16 ),
Optimality Criterion( 2 ),
Simulate Responses( 0 ),
Save X Matrix( 0 )}
);
Code Explanation:
- Define DOE with Custom Design.
- Add response "Number Popped" to maximize.
- Add response "Total Kernels" to maximize.
- Add categorical factor "Brand" with levels "Top Secret", "Wilbur".
- Add continuous factor "Time" from 3 to 5.
- Add continuous factor "Power" from 5 to 10.
- Set random seed for reproducibility.
- Add constraint on factors.
- Add main effects for all factors.
- Add interaction terms between factors.
Example 97
Summary: Performs a custom design of experiments (DOE) to optimize the conversion rate, utilizing a combination of continuous and categorical factors, with random effects modeling and REML method for variance component analysis.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Maximize, "Conversion", ., ., .
),
Add Factor(
Continuous, 40, 60, "Temp", 0
),
Add Factor(
Continuous, 2, 20, "Pd (eq)", 0
),
Add Factor(
Continuous, 100, 1500,
"Base (eq)", 0
),
Add Factor(
Categorical,
{"pyrimidyl", "pyridyl"},
"Boronic Acid Type",
0
), Set Random Seed( 346162045 ),
Number of Starts( 10000 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {3, 1} ),
Add Term( {4, 1} ),
Add Term( {1, 2} ),
Add Term( {1, 1}, {2, 1} ),
Add Term( {2, 2} ),
Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ),
Add Term( {3, 2} ),
Add Term( {1, 1}, {4, 1} ),
Add Term( {2, 1}, {4, 1} ),
Add Term( {3, 1}, {4, 1} ),
Set Sample Size( 20 ),
Optimality Criterion( 2 ),
Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design}
);
Code Explanation:
- Initiate DOE process.
- Select Custom Design.
- Define response: Maximize Conversion.
- Add continuous factor Temp (40-60).
- Add continuous factor Pd (eq) (2-20).
- Add continuous factor Base (eq) (100-1500).
- Add categorical factor Boronic Acid Type.
- Set random seed for reproducibility.
- Specify number of design starts.
- Configure model terms for interactions.
- Set sample size.
- Choose optimality criterion.
- Disable response simulation.
- Disable X matrix saving.
- Generate and save design.
Example 98
Summary: Performs a full factorial design of experiments (DOE) to analyze the relationships between continuous factors 'Discharge', 'Gradient', and 'Clutter' with response variable 'Y', using the REML method for variance component analysis.
Code:
// DOE Dialog
DOE(
Full Factorial Design,
{
Add Response(
Maximize, "Y", ., ., .
),
Add Factor(
Continuous,
{-1, 1},
"Discharge",
0
),
Add Factor(
Continuous,
{-1, 1},
"Gradient",
0
),
Add Factor(
Continuous,
{-1, 1},
"Clutter",
0
), Set Random Seed( 782 ),
Make Design, Replicates( 1 ),
Simulate Responses( 0 ),
Set Run Order( Sort Left to Right ),
Make Table}
);
Code Explanation:
- Start DOE process.
- Choose Full Factorial Design.
- Add response "Y" for maximization.
- Add continuous factor "Discharge".
- Set "Discharge" range -1 to 1.
- Add continuous factor "Gradient".
- Set "Gradient" range -1 to 1.
- Add continuous factor "Clutter".
- Set "Clutter" range -1 to 1.
- Generate design with specified settings.
Example 99
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing a custom design with categorical factors X1 and X2.
Code:
// DOE Dialog
DOE(
Custom Design,
{
Add Response(
Minimize, "Y", ., ., .
),
Add Factor(
Categorical,
{"Low", "High"},
"X1",
1
),
Add Factor(
Categorical,
{"Low", "Medium", "High"},
"X2",
0
), Set Random Seed( 1590851790 ),
Number of Starts( 16493 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {1, 1}, {2, 1} ),
Set N Whole Plots( 10 ),
Set Sample Size( 30 ),
Simulate Responses( 1 ),
Save X Matrix( 0 ), Make Design}
);
Code Explanation:
- Open DOE dialog.
- Select Custom Design.
- Add response: Minimize Y.
- Add factor X1: Categorical, levels Low, High.
- Add factor X2: Categorical, levels Low, Medium, High.
- Set random seed.
- Set number of starts.
- Add intercept term.
- Add main effect X1.
- Add main effect X2.
- Add interaction X1*X2.
- Set whole plots to 10.
- Set sample size to 30.
- Simulate responses.
- Do not save X matrix.
- Make design.
Example 100
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
Open("data_table.jmp");
doe = DOE();
Code Explanation:
- Open data table;
- Create DOE object.
Example 101
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing a DOE object to load responses from a data table.
Code:
dt = Open("data_table.jmp");
doe = DOE();
doe << Load Responses;
Code Explanation:
- Open data table.
- Create new DOE object.
- Load responses into DOE.
Example 102
Summary: Generates a custom design of experiments (DOE) to analyze the impact of multiple factors on a response variable, utilizing the REML method and fitting a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
dt1 = Open("data_table.jmp");
d = DOE(
Evaluate Design,
X( :Feed Rate, :Catalyst, :Stir Rate, :Temperature, :Concentration ),
{Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {4, 1} ), Add Term( {5, 1} ),
Add Term( {1, 1}, {2, 1} ), Add Term( {1, 1}, {3, 1} ), Add Alias Term( {1, 1}, {4, 1} ), Add Alias Term( {1, 1}, {5, 1} ),
Add Alias Term( {2, 1}, {3, 1} ), Add Alias Term( {2, 1}, {4, 1} ), Add Alias Term( {2, 1}, {5, 1} ), Add Alias Term( {3, 1}, {4, 1} ),
Add Alias Term( {3, 1}, {5, 1} ), Add Alias Term( {4, 1}, {5, 1} )}
);
d << Change Anticipated Coefficients( [1 2 3 4 1 2 3 4] );
d << Set RMSE( 1.5 );
Close( dt1, no save );
rpt = d << report;
Code Explanation:
- Open data table.
- Define DOE parameters.
- Add main effects.
- Add interaction terms.
- Add alias terms.
- Change anticipated coefficients.
- Set root mean square error.
- Close original data table.
- Generate DOE report.
Example 103
Summary: Generates a custom design of experiments (DOE) to analyze the relationship between Feed Rate, Catalyst, Stir Rate, Temperature, and Concentration using the REML method in JMP.
Code:
dt1 = Open("data_table.jmp");
d = DOE(
Evaluate Design,
X( :Feed Rate, :Catalyst, :Stir Rate, :Temperature, :Concentration ),
{Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {4, 1} ), Add Term( {5, 1} ),
Add Term( {1, 1}, {2, 1} ), Add Term( {1, 1}, {3, 1} ), Add Alias Term( {1, 1}, {4, 1} ), Add Alias Term( {1, 1}, {5, 1} ),
Add Alias Term( {2, 1}, {3, 1} ), Add Alias Term( {2, 1}, {4, 1} ), Add Alias Term( {2, 1}, {5, 1} ), Add Alias Term( {3, 1}, {4, 1} ),
Add Alias Term( {3, 1}, {5, 1} ), Add Alias Term( {4, 1}, {5, 1} )}
);
d << Change Anticipated Coefficients( [1 2 3 4 1 2 3 4] );
d << Set RMSE( 1.5 );
Code Explanation:
- Open data table.
- Define DOE settings.
- Specify factors: Feed Rate, Catalyst, Stir Rate, Temperature, Concentration.
- Add main effects for all factors.
- Add two-way interactions for all factor pairs.
- Add alias terms for selected interactions.
- Change anticipated coefficients.
- Set RMSE value.
Example 104
Summary: Process of opening a data table, setting it as current, launching the Compare Designs platform, and generating a report before closing the window.
Code:
dt = Open("data_table.jmp");
Current Data Table( dt );
cd = DOE( Compare Designs );
d4 = Window( "Report: Compare Designs " );
cd << close window;
Code Explanation:
- Open data table.
- Set current data table.
- Launch Compare Designs platform.
- Get Compare Designs report window.
- Close Compare Designs window.
Example 105
Summary: Creates a MaxDiff design with 3 profiles and 7 choice sets, generating a table from the design and closing the design window.
Code:
dtProf = Open("data_table.jmp");
d = DOE( MaxDiff Design, X( :Candy ), {Set Number of Profiles( 3 ), Set Number of Choice Sets( 7 )} );
dt = d << Make Table;
d << close window;
Code Explanation:
- Open data table;
- Create MaxDiff design.
- Set number of profiles to 3.
- Set number of choice sets to 7.
- Make table from design.
- Close design window.
Example 106
Summary: Compares two designs in a DOE analysis, specifying reference and additional design factors for a variance component analysis using REML.
Code:
dt_1 = Open("data_table.jmp");
dt_2 = Open("data_table.jmp");
DOE(
Compare Designs,
Reference Design( "data_table1", X( :Feed Rate, :Catalyst, :Stir Rate, :Temperature, :Concentration ) ),
Additional Designs( "data_table2", X( :Feed Rate, :Catalyst, :Stir Rate, :Temperature, :Concentration ) )
);
Window( "Report: Compare Designs " ) << close window;
Code Explanation:
- Open data table;
- Open data table;
- Initiate DOE analysis.
- Select Compare Designs option.
- Set reference design.
- Specify reference design factors.
- Add additional design.
- Specify additional design factors.
- Close report window.
Example 107
Summary: Compares two data tables using Design of Experiments (DOE) analysis, loading factors from the current data table.
Code:
dt1 = Open("data_table.jmp");
dt2 = Open("data_table.jmp");
Current Data Table( dt1 );
DOE( Compare Designs );
Code Explanation:
- Open data table;
- Open data table;
- Set current data table to dt1.
- Initiate DOE analysis.
- Compare designs from both tables.
Example 108
Summary: Runs the creation and closure of a DOE (Design of Experiments) object using the Custom Design method, loading factors from the current data table.
Code:
dt = Open("data_table.jmp");
d = DOE( Compare Designs );
d << close window;
Code Explanation:
- Open table.
- Create DOE object.
- Close DOE window.
Example 109
Summary: Runs a custom design experiment to analyze the relationship between continuous factors X1 and X2, covariates sex, weight, and age, using REML method for variance component analysis and fitting a model with random effects in Standard Least Squares personality.
Code:
dtCov = Open("data_table.jmp");
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Continuous, -1, 1, "X1", 0 ), Add Factor( Continuous, -1, 1, "X2", 0 ),
Add Factor( Covariate, sex, 0 ), Add Factor( Covariate, weight, 0 ), Add Factor( Covariate, age, 0 ), Set Random Seed( 1475678972 ),
Number of Starts( 10791 ), Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {4, 1} ),
Add Term( {5, 1} ), Add Alias Term( {1, 1}, {2, 1} ), Add Alias Term( {1, 1}, {3, 1} ), Add Alias Term( {1, 1}, {4, 1} ),
Add Alias Term( {1, 1}, {5, 1} ), Add Alias Term( {2, 1}, {3, 1} ), Add Alias Term( {2, 1}, {4, 1} ), Add Alias Term( {2, 1}, {5, 1} ),
Add Alias Term( {3, 1}, {4, 1} ), Add Alias Term( {3, 1}, {5, 1} ), Add Alias Term( {4, 1}, {5, 1} ), Set Sample Size( 10 ),
Simulate Responses( 0 ), Save X Matrix( 0 )}
);
rpt = d << report;
Code Explanation:
- Open data table.
- Create custom design experiment.
- Define response variable to maximize.
- Add continuous factor X1.
- Add continuous factor X2.
- Add covariate factor sex.
- Add covariate factor weight.
- Add covariate factor age.
- Set random seed for reproducibility.
- Configure design settings and terms.
Example 110
Summary: Creates a Design of Experiments (DOE) using Easy DOE and performs a variance component analysis with random effects in the Standard Least Squares personality.
Code:
dtResponses = Open("data_table.jmp");
d = DOE( Easy DOE );
Code Explanation:
- Open data table.
- Create new DOE design.
Example 111
Summary: Creates and modifies custom design experiments for variance component analysis using REML method in JMP, incorporating covariates, factors, and random seed settings.
Code:
dtCov = Open("data_table.jmp");
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Covariate, height, 0 ), Add Factor( Covariate, weight, 0 ),
Set Random Seed( 11055475 ), Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} )}
);
d << Add Factor( Covariate, sex, 0 );
d << Add Term( {1, 1}, {2, 1} );
d << close window;
Close( dtCov, nosave );
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Mixture, 0, 1, "X1", 0 ), Add Factor( Mixture, 0, 1, "X2", 0 ),
Set Random Seed( 11055475 ), Add Term( {1, 1} ), Add Term( {2, 1} )}
);
d << Add Factor( Mixture, 0, 1, "X3", 0 );
d << Add Term( {1, 1}, {2, 1} );
d << close window;
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Constant, 0, "X1" ), Add Factor( Constant, 0, "X2" ), Set Random Seed( 11055475 ),
Add Term( {1, 0} )}
);
d << Add Factor( Constant, 0, "X3" );
d << Add Term( {1, 1}, {2, 1} );
d << close window;
factorTypes = {"Continuous", "Categorical", "Discrete Numeric", "Blocking", "Covariate", "Mixture", "Constant"};
makeLevels = Function( {nLevels, type = "Character"},
{mylist, i},
If( type == "Character",
mylist = {};
For( i = 1, i <= nLevels, i++,
Insert Into( mylist, "L" || Char( i ) )
);
Return( mylist );
);
If( type == "Discrete Numeric",
mylist = {};
For( i = 1, i <= nLevels, i++,
Insert Into( mylist, Random Integer( 1, 100 ) )
);
Return( Sort Ascending( mylist ) );
);
);
Random Reset( 123456789 );
Code Explanation:
- Open data table.
- Create custom design experiment.
- Add response variable Y.
- Add covariates height and weight.
- Set random seed.
- Add intercept term.
- Add interaction terms.
- Add covariate sex.
- Add interaction terms.
- Close experiment window.
Example 112
Summary: Creates a custom Design of Experiments (DOE) for variance component analysis using the REML method and fitting a model with random effects in the Standard Least Squares personality.
Code:
dtCov = Open("data_table.jmp");
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Covariate, height, 0 ), Add Factor( Covariate, weight, 0 ),
Set Random Seed( 11055475 ), Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} )}
);
d << Add Factor( Covariate, sex, 0 );
d << Add Term( {1, 1}, {2, 1} );
d << close window;
Code Explanation:
- Open data table;
- Create custom DOE design.
- Add response variable Y.
- Add covariate height.
- Add covariate weight.
- Set random seed.
- Add intercept term.
- Add height term.
- Add weight term.
- Add sex covariate.
- Add interaction terms.
- Close DOE window.
Example 113
Summary: Generates a custom design of experiments (DOE) for variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
dt = Open("data_table.jmp");
dt[10, "height"] = .;
dt[5, "weight"] = .;
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Continuous, -1, 1, "X1", 0 ), Add Factor( Continuous, -1, 1, "X2", 0 ),
Add Factor( Continuous, -1, 1, "X3", 0 ), Add Factor( Covariate, height, 0 ), Add Factor( Covariate, weight, 0 ),
Set Random Seed( 2616 ), Number of Starts( 80 ), Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ),
Add Term( {4, 1} ), Add Term( {5, 1} ), Add Alias Term( {1, 1}, {2, 1} ), Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ), Add Alias Term( {1, 1}, {5, 1} ), Add Alias Term( {2, 1}, {3, 1} ), Add Alias Term( {2, 1}, {4, 1} ),
Add Alias Term( {2, 1}, {5, 1} ), Add Alias Term( {3, 1}, {4, 1} ), Add Alias Term( {3, 1}, {5, 1} ), Add Alias Term( {4, 1}, {5, 1} ),
Set Sample Size( 40 ), Simulate Responses( 0 ), Save X Matrix( 0 )}
);
lc = Collapse Whitespace( Log Capture( d << Make Design ) );
d << Allow covariate rows to be repeated( 1 );
lc = Collapse Whitespace( Log Capture( d << Make Design ) );
d << Back up Design;
d << Allow covariate rows to be repeated( 0 );
d << Set Sample Size( 38 );
lc = Collapse Whitespace( Log Capture( d << Make Design ) );
d << close window;
Close( dt, nosave );
Random Reset( 123 );
Code Explanation:
- Open data table.
- Set height of row 10 to missing.
- Set weight of row 5 to missing.
- Define custom DOE design.
- Add response variable Y to maximize.
- Add three continuous factors X1, X2, X3.
- Add height and weight as covariates.
- Set random seed and number of starts.
- Add main effects and interaction terms.
- Set sample size to 40, simulate responses, save X matrix.
- Capture log and collapse whitespace.
- Allow covariate rows to be repeated.
- Recapture log and collapse whitespace.
- Backup design.
- Disallow covariate rows to be repeated.
- Set sample size to 38.
- Recapture log and collapse whitespace.
- Close design window.
- Close data table without saving.
- Reset random seed.
Example 114
Summary: Creates a custom design for a response variable and multiple covariates using the DOE function, with options to set random seed, number of starts, and sample size.
Code:
dtCov = Open("data_table.jmp");
Current Data Table( dtCov );
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Covariate, Silica, 0 ), Add Factor( Covariate, Sulfur, 0 ),
Add Factor( Covariate, Silane, 0 ), Set Random Seed( 50087686 ), Number of Starts( 10 ), Add Term( {1, 0} ), Add Term( {1, 1} ),
Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {1, 2} ), Add Term( {1, 1}, {2, 1} ), Add Term( {2, 2} ), Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ), Add Term( {3, 2} ), Enforce Use of Selected Covariate Rows( 1 ),
Select Covariate Rows( [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15] ), Allow covariate rows to be repeated( 1 ), Set Sample Size( 20 ),
Optimality Criterion( "Make I-Optimal Design" ), Simulate Responses( 0 ), Save X Matrix( 0 ), Make Design}
);
dtCov2 = dtCov << Subset( All Rows( 1 ), All Columns( 1 ), Output Table Name( "data_table Reordered" ) );
dtCov2 << New Column( "Random Uniform", Numeric, "Continuous", Set Values( J( N Row( dtCov ), 1, Random Uniform() ) ) );
dtCov2 << Sort( By( :Random Uniform ), Order( Ascending ), Replace Table );
Code Explanation:
- Open data table.
- Set current data table.
- Define DOE parameters.
- Create custom design.
- Add response variable.
- Add covariates.
- Set random seed.
- Specify number of starts.
- Add polynomial terms.
- Select covariate rows.
- Set sample size.
- Choose optimality criterion.
- Generate design.
- Create subset table.
- Add random uniform column.
- Sort table randomly.
Example 115
Summary: Generates a custom design of experiments (DOE) for variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
dt = Open("data_table.jmp");
dt[10, "height"] = .;
dt[5, "weight"] = .;
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Continuous, -1, 1, "X1", 0 ), Add Factor( Continuous, -1, 1, "X2", 0 ),
Add Factor( Continuous, -1, 1, "X3", 0 ), Add Factor( Covariate, height, 0 ), Add Factor( Covariate, weight, 0 ),
Set Random Seed( 2616 ), Number of Starts( 80 ), Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ),
Add Term( {4, 1} ), Add Term( {5, 1} ), Add Alias Term( {1, 1}, {2, 1} ), Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ), Add Alias Term( {1, 1}, {5, 1} ), Add Alias Term( {2, 1}, {3, 1} ), Add Alias Term( {2, 1}, {4, 1} ),
Add Alias Term( {2, 1}, {5, 1} ), Add Alias Term( {3, 1}, {4, 1} ), Add Alias Term( {3, 1}, {5, 1} ), Add Alias Term( {4, 1}, {5, 1} ),
Set Sample Size( 40 ), Simulate Responses( 0 ), Save X Matrix( 0 )}
);
lc = Collapse Whitespace( Log Capture( d << Make Design ) );
d << Allow covariate rows to be repeated( 1 );
lc = Collapse Whitespace( Log Capture( d << Make Design ) );
d << Back up Design;
d << Allow covariate rows to be repeated( 0 );
d << Set Sample Size( 38 );
lc = Collapse Whitespace( Log Capture( d << Make Design ) );
d << close window;
Code Explanation:
- Open data table;
- Set height missing for row 10.
- Set weight missing for row 5.
- Define custom DOE with response and factors.
- Set random seed and number of starts.
- Add terms and alias terms to design.
- Set sample size to 40.
- Log capture and collapse whitespace.
- Allow covariate rows repetition.
- Log capture, backup design, set sample size to 38, close window.
Example 116
Summary: Generates a custom design of experiments (DOE) to analyze the relationship between continuous factors X1, X2, and X3, while accounting for covariates height and weight, using the REML method in the Standard Least Squares personality.
Code:
dt = Open("data_table.jmp");
dt[10, "height"] = .;
dt[5, "weight"] = .;
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Continuous, -1, 1, "X1", 0 ), Add Factor( Continuous, -1, 1, "X2", 0 ),
Add Factor( Continuous, -1, 1, "X3", 0 ), Add Factor( Covariate, height, 0 ), Add Factor( Covariate, weight, 0 ),
Set Random Seed( 2616 ), Number of Starts( 80 ), Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ),
Add Term( {4, 1} ), Add Term( {5, 1} ), Add Alias Term( {1, 1}, {2, 1} ), Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ), Add Alias Term( {1, 1}, {5, 1} ), Add Alias Term( {2, 1}, {3, 1} ), Add Alias Term( {2, 1}, {4, 1} ),
Add Alias Term( {2, 1}, {5, 1} ), Add Alias Term( {3, 1}, {4, 1} ), Add Alias Term( {3, 1}, {5, 1} ), Add Alias Term( {4, 1}, {5, 1} ),
Set Sample Size( 20 ), Simulate Responses( 0 ), Save X Matrix( 0 )}
);
Code Explanation:
- Open data table;
- Set height missing for row 10.
- Set weight missing for row 5.
- Define custom DOE.
- Add response variable Y.
- Add continuous factors X1, X2, X3.
- Add covariates height, weight.
- Set random seed to 2616.
- Set number of starts to 80.
- Specify model terms and alias terms.
Example 117
Summary: Creates a D-optimal design for a response variable using the Augment Design method, incorporating random effects and specifying linear and interaction terms.
Code:
dt1 = Open("data_table.jmp");
d = DOE(
Augment Design,
X( :Feed Rate, :Catalyst, :Stir Rate, :Temperature, :Concentration ),
Y( :Percent Reacted ),
{Augment Method( Augment ), Set Random Seed( 282322901 ), Number of Starts( 800 ), Add Term( {1, 0} ), Add Term( {1, 1} ),
Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {4, 1} ), Add Term( {5, 1} ), Add Term( {1, 1}, {2, 1} ), Add Term( {1, 1}, {3, 1} ),
Add Term( {1, 1}, {4, 1} ), Add Term( {1, 1}, {5, 1} ), Add Term( {2, 1}, {3, 1} ), Add Term( {2, 1}, {4, 1} ),
Add Term( {2, 1}, {5, 1} ), Add Term( {3, 1}, {4, 1} ), Add Term( {3, 1}, {5, 1} ), Add Term( {4, 1}, {5, 1} ), Set Sample Size( 16 ),
Optimality Criterion( "Make D-Optimal Design" ), Make Design, Save X Matrix( 0 ), Simulate Responses( 0 )}
);
Code Explanation:
- Open data table.
- Define DOE settings.
- Specify X variables.
- Specify Y variable.
- Set augment method.
- Initialize random seed.
- Define number of starts.
- Add linear terms.
- Add interaction terms.
- Set sample size.
- Optimize design for D-optimality.
- Create design.
- Do not save X matrix.
- Do not simulate responses.
Example 118
Summary: Runs the design of experiments for a response variable, utilizing the Augment Design method to generate an experimental design and create a data table.
Code:
dt = Open("data_table.jmp");
d = DOE(
Augment Design,
X( :Feed Rate, :Catalyst, :Stir Rate, :Temperature, :Concentration ),
Y( :Percent Reacted ),
{Group new runs into separate block, Augment Method( Replicate, 2 ), Save X Matrix( 0 ), Simulate Responses( 0 )}
);
dt2 = d << Make Table;
d << close window;
Code Explanation:
- Open data table.
- Define design experiment.
- Specify input factors.
- Specify response variable.
- Configure design options.
- Generate experimental design.
- Create data table from design.
- Close original design window.
Example 119
Summary: Generates a custom design of experiments (DOE) for shrinkage analysis with random effects in the Standard Least Squares personality, utilizing the REML method.
Code:
dt1 = Open("data_table.jmp");
d = DOE(
Custom Design,
{Add Response( Minimize, "Shrinkage", ., ., . ), Add Factor( Covariate, Specific Gravity, 0 ),
Add Factor( Covariate, Tensile Strength, 0 ), Add Factor( Covariate, Supplier, 0 ), Add Factor( Continuous, -1, 1, "Temperature", 0 ),
Add Factor( Continuous, -1, 1, "Speed", 0 ), Add Factor( Continuous, -1, 1, "Time", 0 ), Set Random Seed( 84951 ),
Number of Starts( 40 ), Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {4, 1} ),
Add Term( {5, 1} ), Add Term( {6, 1} ), Add Alias Term( {1, 1}, {2, 1} ), Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ), Add Alias Term( {1, 1}, {5, 1} ), Add Alias Term( {1, 1}, {6, 1} ), Add Alias Term( {2, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {4, 1} ), Add Alias Term( {2, 1}, {5, 1} ), Add Alias Term( {2, 1}, {6, 1} ), Add Alias Term( {3, 1}, {4, 1} ),
Add Alias Term( {3, 1}, {5, 1} ), Add Alias Term( {3, 1}, {6, 1} ), Add Alias Term( {4, 1}, {5, 1} ), Add Alias Term( {4, 1}, {6, 1} ),
Add Alias Term( {5, 1}, {6, 1} ), Set Sample Size( 12 ), Make Design}
);
Code Explanation:
- Open table.
- Define DOE.
- Add response.
- Add factors.
- Set random seed.
- Configure design settings.
- Add main effects.
- Add interaction terms.
- Define alias terms.
- Set sample size.
- Generate design.
Example 120
Summary: Runs the design and execution of a custom experiment with multiple factors, including Feed Rate, Catalyst, Stir Rate, Temperature, and Concentration, to analyze Percent Reacted.
Code:
dt = Open("data_table.jmp");
d = DOE(
Augment Design,
X( :Feed Rate, :Catalyst, :Stir Rate, :Temperature, :Concentration ),
Y( :Percent Reacted ),
{Group new runs into separate block, Augment Method( Centerpoints, 2 ), Save X Matrix( 0 ), Simulate Responses( 0 )}
);
dt2 = d << Make Table;
d << close window;
Code Explanation:
- Open data table.
- Define design of experiment.
- Specify factors and response.
- Configure augmentation settings.
- Generate DOE design.
- Create new data table.
- Close original DOE window.
Example 121
Summary: Process of opening a data table, creating a response surface design, and loading factors into the design using the REML method.
Code:
dtFactors = Open("data_table.jmp");
d = DOE( Response Surface Design );
Log Capture( d << Load Factors );
Code Explanation:
- Open data table.
- Create response surface design.
- Load factors into design.
Example 122
Summary: Creates and analyzes a custom design experiment with continuous factors, including response targeting and factor saving, using JMP's DOE platform.
Code:
dt = Open("data_table.jmp");
d = DOE(
Custom Design,
Load Responses,
Add Factor( Continuous, 0.7, 1.7, "Silica", 0 ),
Add Factor( Continuous, 1.8, 2.8, "Sulfur", 0 ),
Add Factor( Continuous, 40, 60, "Silane", 0 ),
Make Design
);
rpt = d << Report;
d << Close Window;
Close( dt, no save );
d = DOE(
Custom Design,
Add Response( Match Target, "Stretch", 350, 550, 1 ),
Add Factor( Continuous, 0.7, 1.7, "Silica", 0 ),
Add Factor( Continuous, 1.8, 2.8, "Sulfur", 0 ),
Add Factor( Continuous, 40, 60, "Silane", 0 ),
Save Factors
);
dt = Current Data Table() << Get as Matrix;
d << Close Window;
Code Explanation:
- Open data table.
- Create custom design experiment.
- Load responses into design.
- Add continuous factor "Silica".
- Add continuous factor "Sulfur".
- Add continuous factor "Silane".
- Generate the design.
- Retrieve report from design.
- Close the design window.
- Close the original data table without saving.
- Create another custom design experiment.
- Add response "Stretch" with target.
- Add continuous factor "Silica".
- Add continuous factor "Sulfur".
- Add continuous factor "Silane".
- Save the factors.
- Convert current data table to matrix.
- Close the design window.
Example 123
Summary: Creates a custom design with continuous factors, response variable, and constraint matrix to perform a variance component analysis using REML method in Standard Least Squares personality.
Code:
dt = Open("data_table.jmp");
d = DOE( Custom Design, Load Factors );
d << make Design;
rpt = d << report;
d << close window;
Close( dt, no save );
d = DOE(
Custom Design,
Add Response( Maximize, "Y", ., ., . ),
Add Factor( Continuous, -1, 1, "X1", 0 ),
Add Factor( Continuous, -1, 1, "X2", 0 ),
Add Factor( Continuous, -1, 1, "X3", 0 ),
Add Constraint( [1 1 0 1, 1 0 1 1] ),
Add Term( {1, 0} ),
Save Constraints
);
dt = Current Data Table();
d << close window;
Code Explanation:
- Open data table;
- Create custom design.
- Make design.
- Generate report.
- Close design window.
- Close original data table without saving.
- Create new custom design.
- Add response variable "Y".
- Add continuous factors X1, X2, X3.
- Add constraint matrix and terms.
Example 124
Summary: Process of performing a variance component analysis using the REML method and fitting a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
X = d << Get Power;
Close( dt, no save );
d << close window;
Code Explanation:
- Open data table.
- Define experimental design.
- Set factors and response.
- Evaluate design power.
- Retrieve power results.
- Close data table.
- Discard unsaved changes.
- Close experimental design window.
Example 125
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, leveraging the Custom Design feature of JMP.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :X1, :X2, :X3 ), Y( :Y ) );
X = d << Get Effect Power;
Close( dt, no save );
d << close window;
Code Explanation:
- Open data table.
- Define DOE experiment.
- Specify factors and response.
- Evaluate design effect power.
- Close data table without saving.
- Close DOE window.
Example 126
Summary: Runs a design of experiments (DOE) analysis using the REML method to evaluate estimation efficiencies in a Standard Least Squares personality, with interactive features for factor selection and response specification.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
X = d << Get Estimation Efficiencies;
Close( dt, no save );
d << close window;
Code Explanation:
- Open data table.
- Define design experiment.
- Specify factors and response.
- Evaluate design efficiency.
- Retrieve estimation efficiencies.
- Close data table without saving.
- Close design window.
Example 127
Summary: Process of performing a variance component analysis using the REML method and fitting a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
X = d << Get Design Diagnostics;
X[2] = .;
Close( dt, no save );
d << close window;
Code Explanation:
- Open data table.
- Create DOE design.
- Set factors and response.
- Get design diagnostics.
- Modify diagnostics data.
- Close data table.
- Close DOE window.
Example 128
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE function to generate a design matrix from specified factors.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Set Significance Level( 0.10 );
rpt = d << report;
X = rpt[Number Col Edit Box( 1 )] << get as matrix;
Close( dt, no save );
d << close window;
Code Explanation:
- Open data table;
- Create DOE with specified factors.
- Set significance level to 0.10.
- Generate DOE report.
- Extract design matrix from report.
- Close original data table without saving.
- Close DOE window.
Example 129
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE function to create an experimental design.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Set RMSE( 1.5 );
rpt = d << report;
X = rpt[Number Col Edit Box( 2 )] << get as matrix;
Close( dt, no save );
d << close window;
Code Explanation:
- Open data table.
- Create experimental design.
- Set root mean square error.
- Generate report.
- Extract matrix from report.
- Close data table without saving.
- Close design experiment window.
Example 130
Summary: Creates a Design of Experiments (DOE) design using the Augment method, with specified sample size and output table generation.
Code:
dt = Open("data_table.jmp");
d = DOE( Augment Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Augment Method( Augment );
d << Set Sample Size( 24 );
d << Make Design;
d << make table;
Close( dt, no save );
Close( Current Data Table(), no save );
d << close window;
Code Explanation:
- Open data table.
- Create DOE design.
- Set augment method.
- Define sample size.
- Generate design.
- Make design table.
- Close original table.
- Close generated table.
- Close design window.
Example 131
Summary: Creates an augmented design table using the Augment Design method with replicate augmentation, and then generates a table from it.
Code:
dt = Open("data_table.jmp");
d = DOE( Augment Design, X( :X1, :X2, :X3 ), Y( :Y ) );
d << Augment Method( Replicate, 2 );
d << make table;
Close( dt, no save );
Close( Current Data Table(), no save );
d << close window;
Code Explanation:
- Open data table.
- Create DOE object.
- Define factors X1, X2, X3.
- Set response variable Y.
- Use Augment Design method.
- Specify replicate augmentation method.
- Generate augmented design table.
- Close original data table.
- Close generated data table.
- Close DOE window.
Example 132
Summary: Creates a Design of Experiments (DOE) design table with centerpoints using the Augment Method, and then generates the design table.
Code:
dt = Open("data_table.jmp");
d = DOE( Augment Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Augment Method( Centerpoints, 3 );
d << make table;
Close( dt, no save );
Close( Current Data Table(), no save );
d << close window;
Code Explanation:
- Open data table.
- Create DOE design.
- Specify factors and response.
- Add centerpoints.
- Generate design table.
- Close original data table.
- Close generated data table.
- Close DOE window.
Example 133
Summary: Creates a design experiment with fold-over augmentation and generates an augmented data table for analysis.
Code:
dt = Open("data_table.jmp");
d = DOE( Augment Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Augment Method( Fold Over, [1 2] );
d << make table;
Close( dt, no save );
Close( Current Data Table(), no save );
d << close window;
Code Explanation:
- Open data table.
- Create design experiment.
- Set factors and response.
- Augment design using fold over.
- Specify fold over columns.
- Make augmented table.
- Close original data table.
- Close new data table.
- Close design window.
Example 134
Summary: Creates and manipulates design tables for mixture experiments, including augmentation, subset selection, and customization.
Code:
dt = Open("data_table.jmp");
d = DOE( Augment Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Augment Method( Add Axial, 1, 2 );
d << make table;
Close( dt, no save );
Close( Current Data Table(), no save );
d << close window;
d = DOE( Mixture Design, Add Factor( Mixture, 0.1, 1, "X4", 0 ) );
d << Mixture Design Type( Extreme Vertices, 3 );
d << Find Subset( 10 );
d << make table;
Log Capture( Close( Current Data Table() ) );
d << close window;
d = DOE( Custom Design );
r = d << report;
t = r[Outline Box( 1 )] << Get Title;
d << close window;
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Continuous, -1, 1, "X1", 0 ), Add Factor( Continuous, -1, 1, "X2", 0 ),
Add Factor( Continuous, -1, 1, "X3", 0 ), Add Factor( Continuous, -1, 1, "X4", 0 ), Add Factor( Continuous, -1, 1, "X5", 0 ),
Add Factor( Continuous, -1, 1, "X6", 0 ), Add Factor( Continuous, -1, 1, "X7", 0 ), Add Factor( Continuous, -1, 1, "X8", 0 ),
Add Factor( Continuous, -1, 1, "X9", 0 ), Add Factor( Continuous, -1, 1, "X10", 0 ), Add Factor( Continuous, -1, 1, "X11", 0 ),
Add Factor( Continuous, -1, 1, "X12", 0 ), Set Random Seed( 219343887 ), Design Search Time( 15 ), Add Term( {1, 0} ),
Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {4, 1} ), Add Term( {5, 1} ), Set Sample Size( 13 ), Make Design}
);
time = d << get timing;
d << close window;
isPro = 1;
If( isPro,
d = DOE(
Custom Design,
Add Response( Maximize, "Y", ., ., . ),
Add Functional Response( "Y", 5, {10, 20, 30, 40, 50} ),
Set Random Seed( 46055034 ),
Simulate Responses( 0 ),
Save X Matrix( 0 )
);
d << Make Design;
dt = d << Make Table;
colNames = dt << Get Column Names( string );
Close( dt, nosave );
d << close window;
);
Code Explanation:
- Open data table.
- Create augmented design.
- Add axial points.
- Make augmented design table.
- Close original data table.
- Close augmented design table.
- Create mixture design.
- Add new mixture factor.
- Set mixture design type.
- Find subset designs.
Example 135
Summary: Runs the design of experiments (DOE) process to generate a custom design with continuous factors, load responses, and create a report in JMP.
Code:
dt = Open("data_table.jmp");
d = DOE(
Custom Design,
Load Responses,
Add Factor( Continuous, 0.7, 1.7, "Silica", 0 ),
Add Factor( Continuous, 1.8, 2.8, "Sulfur", 0 ),
Add Factor( Continuous, 40, 60, "Silane", 0 ),
Make Design
);
rpt = d << Report;
d << Close Window;
Code Explanation:
- Open table.
- Start DOE process.
- Load responses.
- Add Silica factor.
- Add Sulfur factor.
- Add Silane factor.
- Generate design.
- Create report.
- Close design window.
Example 136
Summary: Runs a custom design experiment with load factors to generate a report, utilizing the REML method for variance component analysis and fitting a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
dt = Open("data_table.jmp");
d = DOE( Custom Design, Load Factors );
d << make Design;
rpt = d << report;
d << close window;
Code Explanation:
- Open data table.
- Create custom design experiment.
- Load factors into design.
- Generate the design.
- Retrieve design report.
- Close design window.
Example 137
Summary: Runs the design of experiments (DOE) for a custom model with continuous factors X1 and X2, using the REML method to perform variance component analysis.
Code:
dt = Open("data_table.jmp");
d = DOE(
Custom Design,
Add Factor( Continuous, -1, 1, "X1", 0 ),
Add Factor( Continuous, -1, 1, "X2", 0 ),
Add Term( {1, 0} ),
Load Constraints
);
Code Explanation:
- Open data table.
- Define DOE object.
- Add continuous factor X1.
- Add continuous factor X2.
- Add intercept term.
- Load design constraints.
Example 138
Summary: Process of performing a variance component analysis using the REML method and fitting a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Remove Term( {1, 1}, {3, 1} );
d << Remove Term( {3, 2} );
Code Explanation:
- Open data table.
- Define DOE experiment.
- Specify factors: Silica, Sulfur, Silane.
- Specify response: Stretch.
- Evaluate design.
- Remove interaction term.
- Remove quadratic term.
Example 139
Summary: Runs the design of experiments (DOE) and retrieves the X matrix for a shrinkage model with random effects in the Standard Least Squares personality.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
X = d << Get X Matrix;
Code Explanation:
- Open data table.
- Define design experiment.
- Specify factors and response.
- Evaluate design.
- Retrieve X matrix.
Example 140
Summary: Creates a Design of Experiments (DOE) object and retrieves power values for shrinkage with random effects in the Standard Least Squares personality.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
X = d << Get Power;
Code Explanation:
- Open data table.
- Create DOE object.
- Define factors: Silica, Sulfur, Silane.
- Define response: Stretch.
- Evaluate design.
- Retrieve power values.
- Assign to variable X.
Example 141
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE function to design and evaluate an experiment.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :X1, :X2, :X3 ), Y( :Y ) );
X = d << Get Effect Power;
Code Explanation:
- Open data table.
- Create design experiment.
- Specify factors X1, X2, X3.
- Specify response variable Y.
- Evaluate design experiment.
- Retrieve effect power for factors.
Example 142
Summary: Process of performing a variance component analysis using the REML method and fitting a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
X = d << Get Estimation Efficiencies;
Code Explanation:
- Open data table.
- Define DOE experiment.
- Specify factors and response.
- Evaluate design efficiencies.
Example 143
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE function to create a design.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
X = d << Get Design Diagnostics;
X[2] = .;
Code Explanation:
- Open data table.
- Create DOE design.
- Specify factors.
- Specify response.
- Evaluate design diagnostics.
- Assign diagnostics to variable.
- Modify second element.
Example 144
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE design to explore relationships between Silica, Sulfur, Silane, and Stretch.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Set Significance Level( 0.10 );
rpt = d << report;
X = rpt[Number Col Edit Box( 1 )] << get as matrix;
Code Explanation:
- Open data table.
- Create DOE design.
- Set X factors: Silica, Sulfur, Silane.
- Set Y factor: Stretch.
- Set significance level to 0.10.
- Generate DOE report.
- Extract report object.
- Access first number column edit box.
- Convert to matrix.
- Assign to variable X.
Example 145
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE function to define the experiment.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Set RMSE( 1.5 );
rpt = d << report;
X = rpt[Number Col Edit Box( 2 )] << get as matrix;
Code Explanation:
- Open data table.
- Define DOE experiment.
- Set X factors.
- Set Y response.
- Evaluate design.
- Set RMSE value.
- Generate report.
- Extract report element.
- Get matrix from edit box.
- Assign matrix to variable X.
Example 146
Summary: Performs a variance component analysis using the REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE function to define an experiment.
Code:
dt = Open("data_table.jmp");
d = DOE( Evaluate Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Change Anticipated Coefficients( [1 2 3 4 2 2 2 3 3 3] );
rpt = d << report;
X = rpt["Design Evaluation"]["Power Analysis"][2][2] << get as matrix;
Code Explanation:
- Open table.
- Define DOE experiment.
- Set design factors.
- Set response variable.
- Evaluate design.
- Change anticipated coefficients.
- Generate report.
- Extract power analysis section.
- Convert to matrix.
Example 147
Summary: Process of performing a variance component analysis using the REML method and fitting a model for shrinkage with random effects in the Standard Least Squares personality, utilizing the DOE function to define the experiment.
Code:
dt = Open("data_table.jmp");
d = DOE( Augment Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Group New Runs Into Separate Block;
d << augment method( augment );
d << make design;
d << make table;
x = Column( Current Data Table(), "Block" ) << get as matrix;
Code Explanation:
- Open data table.
- Define DOE experiment.
- Specify factors and response.
- Group new runs into blocks.
- Set augmentation method.
- Generate design.
- Create design table.
- Extract block column.
- Convert to matrix.
Example 148
Summary: Creates a Design of Experiments (DOE) for analyzing the relationship between Silica, Sulfur, and Silane on Stretch, with augmentation and sample size control.
Code:
dt = Open("data_table.jmp");
d = DOE( Augment Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Augment Method( Augment );
d << Set Sample Size( 24 );
d << Make Design;
d << make table;
Code Explanation:
- Open data table.
- Create DOE design.
- Specify factors and response.
- Choose augmentation method.
- Set sample size.
- Generate design.
- Create data table.
Example 149
Summary: Creates a Design of Experiments (DOE) table with replicates, using the Augment Method and specifying factors X1, X2, and X3.
Code:
dt = Open("data_table.jmp");
d = DOE( Augment Design, X( :X1, :X2, :X3 ), Y( :Y ) );
d << Augment Method( Replicate, 2 );
d << make table;
Code Explanation:
- Open data table.
- Create DOE design.
- Specify factors X1, X2, X3.
- Specify response variable Y.
- Set augment method to replicate.
- Set number of replicates to 2.
- Generate DOE table.
Example 150
Summary: Creates a Design of Experiments (DOE) table with centerpoints for analyzing the relationship between Silica, Sulfur, and Silane factors on Stretch response.
Code:
dt = Open("data_table.jmp");
d = DOE( Augment Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Augment Method( Centerpoints, 3 );
d << make table;
Code Explanation:
- Open data table.
- Create DOE design.
- Define factors: Silica, Sulfur, Silane.
- Define response: Stretch.
- Set augmentation method.
- Add centerpoints.
- Specify 3 centerpoints.
- Generate DOE table.
Example 151
Summary: Runs the design and augmentation of a custom experiment with random effects using the REML method, generating an augmented design table for analysis.
Code:
dt = Open("data_table.jmp");
d = DOE( Augment Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Augment Method( Fold Over, [1 2] );
d << make table;
Code Explanation:
- Open data table.
- Define DOE experiment design.
- Specify factors and response variable.
- Apply augment method: fold over.
- Generate augmented design table.
Example 152
Summary: Creates a design experiment object with an augmented design, utilizing the Augment Method to add axial terms and generating a table for analysis.
Code:
dt = Open("data_table.jmp");
d = DOE( Augment Design, X( :Silica, :Sulfur, :Silane ), Y( :Stretch ) );
d << Augment Method( Add Axial, 1, 2 );
d << make table;
Code Explanation:
- Open data table.
- Create design experiment object.
- Define factors and response.
- Set augment method.
- Generate augmented design.
- Make table from design.
Example 153
Summary: Creates a custom design for a variance component analysis using REML method and fits a model for shrinkage with random effects in the Standard Least Squares personality.
Code:
dt = Open("data_table.jmp");
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Blocking, 2, "X1" ), Add Factor( Categorical, {"L1", "L2", "L3", "L4"}, "X2", 0 ),
Add Factor( Continuous, 893.874196335673, 2077.16088831704, "X3", 0 ), Add Factor( Covariate, height, 0 ),
Add Factor( Discrete Numeric, {2, 4, 6}, "X5", 0 ), Add Factor( Discrete Numeric, {2, 4, 6}, "X6", 0 ),
Add Factor( Continuous, 276.440784335136, 2200.65610105684, "X7", 0 ), Add Factor( Discrete Numeric, {3, 6, 9, 12}, "X8", 0 ),
Add Factor( Categorical, {"L1", "L2", "L3", "L4"}, "X9", 0 ), Add Factor( Mixture, 0, 1, "X10", 0 ),
Add Factor( Mixture, 0, 1, "X11", 0 ), Add Factor( Mixture, 0, 1, "X12", 0 ), Set Random Seed( 27882917 )}
);
Code Explanation:
- Open table.
- Create custom design.
- Add response variable.
- Add blocking factor.
- Add categorical factor.
- Add continuous factor.
- Add covariate factor.
- Add discrete numeric factor.
- Add discrete numeric factor.
- Add continuous factor.
- Add discrete numeric factor.
- Add categorical factor.
- Add mixture factors.
- Set random seed.
Example 154
Summary: Creates a custom design for a statistical experiment using the DOE function, specifying continuous and categorical factors, and optimizing the design with the REML method.
Code:
Names Default To Here( 1 );
//create basic design
design = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Continuous, -1, 1, "X1", 0 ),
Add Factor( Continuous, -1, 1, "X2", 0 ), Add Factor( Continuous, -1, 1, "X3", 0 ),
Add Factor( Categorical, {"L1", "L2"}, "X4", 0 ), Add Factor(
Categorical,
{"L1", "L2", "L3"},
"X5",
0
), Set Random Seed( 1854224195 ), Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ),
Add Term( {3, 1} ), Add Term( {4, 1} ), Add Term( {5, 1} ), Add Term( {1, 2} ),
Add Term( {1, 1}, {2, 1} ), Add Term( {2, 2} ), Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ), Add Term( {3, 2} ), Add Term( {1, 1}, {4, 1} ),
Add Term( {2, 1}, {4, 1} ), Add Term( {3, 1}, {4, 1} ), Add Term( {1, 1}, {5, 1} ),
Add Term( {2, 1}, {5, 1} ), Add Term( {3, 1}, {5, 1} ), Add Term( {4, 1}, {5, 1} ),
Set Sample Size( 30 ), Optimality Criterion( "Make I-Optimal Design" ),
Simulate Responses( 0 ), Save X Matrix( 0 )}
);
//lauch design explorer (is there a better way? Design explorer doesn't appear to be scriptable)
rdesign = report (design);
rdesign[OutlineBox("Design Explorer")][Button Box(1)]<< click;
Code Explanation:
- Set default names.
- Create custom design.
- Add response variable.
- Add continuous factor X1.
- Add continuous factor X2.
- Add continuous factor X3.
- Add categorical factor X4.
- Add categorical factor X5.
- Set random seed.
- Add terms to model.
- Set sample size.
- Optimize design criterion.
- Disable response simulation.
- Disable saving X matrix.
- Launch design explorer.
- Click button in report.
DOE using Column
Example 1
Summary: Creates a DOE design with multiple factors and a covariate, simulating responses and saving the X matrix for further analysis.
Code:
dt = Open("data_table.jmp");
cov = Column( dt, "height" );
d = doe();
d << add factor << add factor << add factor( covariate, cov );
d << simulate responses;
d << save x matrix;
d << make design;
Code Explanation:
- Open data table.
- Assign height column to cov.
- Create new DOE design.
- Add first factor to design.
- Add second factor to design.
- Add third factor (covariate).
- Simulate responses for design.
- Save X matrix of design.
- Make design executable.
- Design saved to file.
Example 2
Summary: Creates a design of experiments (DOE) for multivariate correlations analysis with mahalanobis distances, utilizing the Augment Design method and specifying factors for age and sex.
Code:
dt1 = Open("data_table.jmp");
Column( dt1, "age" ) << Set Modeling Type( "Continuous" );
d = DOE(
Augment Design,
X( :age, :sex ),
Y( :height ),
{Augment Method( Augment ), Set Random Seed( 1280909573 ), Number of Starts( 49249 ), Add Term( {1, 0} ), Add Term( {1, 1} ),
Add Term( {2, 1} ), Add Alias Term( {1, 1}, {2, 1} ), Set Sample Size( 48 ), D Efficiency Weight( 0 ), Make Design}
);
dt = d << make table;
Code Explanation:
- Open data table;
- Set age column as continuous.
- Create DOE design.
- Specify age and sex as factors.
- Set height as response.
- Use augment design method.
- Set random seed for reproducibility.
- Define number of starts.
- Add intercept term.
- Add main effects.
- Add interaction term.
- Set alias terms.
- Define sample size.
- Disable D Efficiency Weight.
- Generate design.
- Convert design to data table.
Example 3
Summary: Creates and analyzes a custom design of experiments (DOE) with categorical factors, covariates, and polynomial terms to explore multivariate correlations.
Code:
dta = Open("data_table.jmp");
cov = Column( dta, "height" );
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Categorical, {"L1", "L2"}, "X1", 0 ), Add Factor(
Categorical,
{"L1", "L2"},
"X2",
0
)}
);
d << Add Factor( Covariate, cov );
d << Disallowed Combinations( X1 == 1 & X2 == 1 );
d << Add Term( {1, 0} ) << Add Term( {1, 1} ) << Add Term( {2, 1} ) << Add Term( {3, 1} ) << Add Term( {1, 1}, {3, 1} ) <<
Add Term( {2, 1}, {3, 1} );
d << set random seed( 12345 );
d << Make Design;
rpt = d << report;
tcp7 = rpt[CellPlotBox( 1 )] << get journal;
tct7 = Substr( tcp7, Contains( tcp7, "colorTheme" ) );
cp7 = Parse( Substr( tct7, 1, Contains( tct7, ")" ) ) );
colstr = Arg( Extract Expr( cp7, colorTheme( Wild List() ) ) );
timg7 = Substr( tcp7, Contains( tcp7, "values" ) );
timg7 = Parse( Substr( timg7, 1, Contains( timg7, ")" ) ) );
imglst = Round( Substitute( Extract Expr( timg7, values( Wild List() ) ), Expr( values() ), {} ), 5 );
oraclelst1 = {1, 0.48148, 0.00191, 0.41622, 0.19783, 0.50918, 0.48148, 1, 0.00191, 0.19783, 0.41622, 0.50918, 0.00191, 0.00191, 1, 0.30579,
0.30061, 0.00375, 0.41622, 0.19783, 0.30579, 1, 0.35811, 0.21446, 0.19783, 0.41622, 0.30061, 0.35811, 1, 0.21446, 0.50918, 0.50918, 0.00375,
0.21446, 0.21446, 1};
oraclelst2 = {1, 0.48148, 0.00191, 0.41622, 0.19783, 0.50918, 0.48148, 1, 0.00191, 0.19783, 0.41622, 0.50918, 0.00191, 0.00191, 1, 0.30061,
0.30579, 0.00375, 0.41622, 0.19783, 0.30061, 1, 0.35811, 0.21446, 0.19783, 0.41622, 0.30579, 0.35811, 1, 0.21446, 0.50918, 0.50918, 0.00375,
0.21446, 0.21446, 1};
diff1 = Max( Abs( imglst - oraclelst1 ) );
diff2 = Max( Abs( imglst - oraclelst2 ) );
If( diff1 < diff2,
oraclelst = oraclelst1,
oraclelst = oraclelst2
);
d << Close Window;
Code Explanation:
- Open data table;
- Define height column as covariate.
- Create custom DOE design.
- Add categorical factors X1 and X2.
- Set disallowed combinations for factors.
- Add polynomial terms to model.
- Set random seed for reproducibility.
- Generate DOE design.
- Extract report from design.
- Compare generated values with oracle lists.
Example 4
Summary: Creates a design of experiments (DOE) with continuous and categorical covariates, generating a data table for further analysis.
Code:
dtcov = Open("data_table.jmp");
cov1 = Column( dtcov, "sex" );
cov2 = Column( dtcov, "height" );
cov3 = Column( dtcov, "weight" );
d = doe();
d << Add Factor( Continuous, -1, 1, "shoe", 0 );
d << Add Factor( Covariate, cov1 ) << Add Factor( Covariate, cov2 ) << Add Factor( Covariate, cov3 );
d << Make Design;
dt = d << Make Table;
Code Explanation:
- Open data table;
- Assign "sex" column to cov1.
- Assign "height" column to cov2.
- Assign "weight" column to cov3.
- Create new DOE.
- Add continuous factor "shoe".
- Add covariates "sex", "height", "weight".
- Generate DOE design.
- Create data table from design.
- Save data table.
Example 5
Summary: Creates a DOE design with continuous, mixture, and categorical factors, as well as covariate columns for multivariate correlations analysis.
Code:
dtcov = Open("data_table.jmp");
cov1 = Column( dtcov, "sex" );
cov2 = Column( dtcov, "height" );
cov3 = Column( dtcov, "weight" );
d = doe();
d << Add Factor( Continuous, -1, 1, "shoe", 0 );
d << Add Factor( Mixture, 0, 1, "mix1", 0 );
d << Add Factor( Mixture, 0, 1, "mix2", 0 );
d << Add Factor( Mixture, 0, 1, "mix3", 0 );
d << Add Factor( Categorical, {"L1", "L2"}, "cat1", 0 );
d << Add Factor( Categorical, {"L1", "L2", "L3"}, "cat2", 0 );
d << Add Factor( Covariate, cov1 ) << Add Factor( Covariate, cov2 ) << Add Factor( Covariate, cov3 );
Code Explanation:
- Open data table;
- Assign sex column to cov1.
- Assign height column to cov2.
- Assign weight column to cov3.
- Create new DOE design.
- Add continuous factor shoe.
- Add mixture factor mix1.
- Add mixture factor mix2.
- Add mixture factor mix3.
- Add categorical factor cat1.
- Add categorical factor cat2.
- Add covariate factors sex, height, weight.
Example 6
Summary: Creates a custom design of experiments (DOE) with continuous factors, covariates, and constraints to generate new data.
Code:
dt = Open("data_table.jmp");
cov = Column( dt, "sex" );
d = DOE(
Custom Design,
{Add Response( "Maximize", "Y", ., ., . ), Add Factor( Continuous, -1, 1, "X1", 0 ), Add Factor( Continuous, -1, 1, "X2", 0 ),
Number of Starts( 1000 )}
);
d << Add Factor( Covariate, cov );
d << Add Constraint( [1 1 1.5] );
dtnew = d << Make Table;
d << Close Window;
Code Explanation:
- Open data table;
- Assign "sex" column to
cov. - Create custom DOE design.
- Add response variable "Y".
- Add continuous factor "X1".
- Add continuous factor "X2".
- Set number of starts to 1000.
- Add "sex" as covariate.
- Add constraint [1 1 1.5].
- Generate new data table from design.
DOE using New Script
Summary: Runs the design and execution of an experiment using Easy DOE, capturing log output and collapsing whitespace.
Code:
dt = Open("data_table.jmp");
dt << New Script( "Design Columns", {{"Interfer", "Wall", "Depth", "Adhesive", "Time", "Temperature", "Humidity"}} );
d = DOE( Easy DOE );
lc = Collapse Whitespace( Log Capture( d << Load Design( dt ) ) );
d << close window;
Code Explanation:
- Open data table.
- Create new script for design columns.
- Define design factors.
- Run Easy DOE.
- Capture log output.
- Collapse whitespace in log.
- Load design into table.
- Close DOE window.
DOE using Select Where
Summary: Creates a custom design for a DOE experiment, utilizing factors and covariates to optimize response variables.
Code:
dtCov = Open("data_table.jmp");
dtCov << Select Where( :age == 12 ) << Delete Rows();
dtCov << Clear Select;
d = DOE(
Custom Design,
{Add Response( Maximize, "Rating", ., ., . ), Add Factor( Categorical, {"Action", "Comedy", "Drama", "Horror"}, "Genre", 0 ),
Add Factor( Continuous, 90, 180, "Length", 0 ), Add Factor( Continuous, 0, 100, "RT Score", 0 ),
Add Factor( Categorical, {"Candy", "Popcorn", "None"}, "Snack", 0 ), Add Factor( Categorical, {"Yes", "None"}, "Soda", 0 ),
Add Factor( Covariate, age, 0 ), Add Factor( Covariate, sex, 0 ), Set Random Seed( 1679279337 ), Number of Starts( 2526 ),
Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {4, 1} ), Add Term( {5, 1} ),
Add Term( {6, 1} ), Add Term( {7, 1} ), Add Potential Term( {1, 1}, {2, 1} ), Add Potential Term( {1, 1}, {3, 1} ),
Add Potential Term( {1, 1}, {4, 1} ), Add Potential Term( {1, 1}, {5, 1} ), Add Potential Term( {1, 1}, {6, 1} ),
Add Potential Term( {1, 1}, {7, 1} ), Add Potential Term( {2, 1}, {3, 1} ), Add Potential Term( {2, 1}, {4, 1} ),
Add Potential Term( {2, 1}, {5, 1} ), Add Potential Term( {2, 1}, {6, 1} ), Add Potential Term( {2, 1}, {7, 1} ),
Add Potential Term( {3, 1}, {4, 1} ), Add Potential Term( {3, 1}, {5, 1} ), Add Potential Term( {3, 1}, {6, 1} ),
Add Potential Term( {3, 1}, {7, 1} ), Add Potential Term( {4, 1}, {5, 1} ), Add Potential Term( {4, 1}, {6, 1} ),
Add Potential Term( {4, 1}, {7, 1} ), Add Potential Term( {5, 1}, {6, 1} ), Add Potential Term( {5, 1}, {7, 1} ),
Add Potential Term( {6, 1}, {7, 1} ), Enforce Use of Selected Covariate Rows( 1 ), Select Covariate Rows(
[1 2 3 5 6 7 8 9 10 14 15 16 17 18 23 24 25 28 29 32]
), Set Sample Size( 24 ), Simulate Responses( 1 ), Save X Matrix( 0 ), Make Design, Set Run Order( Keep the Same )}
);
dt = d << Make Table;
dt << Sort( By( :Covariate Row Index ), Order( Ascending ), Replace Table );
Code Explanation:
- Open data table;
- Delete rows where age is 12.
- Clear row selection.
- Start DOE with Custom Design.
- Add response "Rating" to maximize.
- Add categorical factor "Genre" with levels.
- Add continuous factor "Length" from 90 to 180.
- Add continuous factor "RT Score" from 0 to 100.
- Add categorical factor "Snack" with levels.
- Add categorical factor "Soda" with levels.
- Add covariates "age" and "sex".
- Set random seed for reproducibility.
- Define number of starts for optimization.
- Add main effects for all factors.
- Add interaction terms between factors.
- Enforce use of selected covariate rows.
- Select specific covariate rows.
- Set sample size to 24.
- Simulate responses for design.
- Do not save X matrix.
- Create design table.
- Sort table by covariate row index.
DOE using Log Capture
Summary: Creates a design experiment with specified factors and response variable, utilizing the Augment Design method to generate a design.
Code:
dt = Open("data_table.jmp");
mylog = Log Capture(
d = DOE(
Augment Design,
X( :Feed Rate, :Catalyst, :Stir Rate, :Temperature, :Concentration ),
Y( :Percent Reacted ),
{Augment Method( Augment ), Set Random Seed( 1225039653 ), Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ),
Add Term( {3, 1} ), Add Term( {4, 1} ), Add Term( {5, 1} ), Add Term( {1, 2} ), Add Term( {1, 1}, {2, 1} ), Add Term( {2, 2} ),
Add Term( {1, 1}, {3, 1} ), Add Term( {2, 1}, {3, 1} ), Add Term( {3, 2} ), Add Term( {1, 1}, {4, 1} ), Add Term( {2, 1}, {4, 1} ),
Add Term( {3, 1}, {4, 1} ), Add Term( {4, 2} ), Add Term( {1, 1}, {5, 1} ), Add Term( {2, 1}, {5, 1} ), Add Term( {3, 1}, {5, 1} ),
Add Term( {4, 1}, {5, 1} ), Add Term( {5, 2} ), Set Sample Size( 21 ), Disallowed Combinations( Feed > 0 ),
D Efficiency Weight( 0 )}
);
d << Make Design;
);
d << Close Window();
new_message = Regex( mylog, "Invalid disallowed combinations script. See Log for details." );
Code Explanation:
- Open data table.
- Start log capture.
- Create design experiment.
- Define factors.
- Define response variable.
- Specify augment design method.
- Set random seed.
- Add polynomial terms.
- Set sample size.
- Define disallowed combinations.
- Disable D-efficiency weighting.
- Generate design.
- Close design window.
- Check log for errors.
DOE using N Row
Summary: Creates a custom DOE design with mixture sum constraint and optimality criterion, utilizing the
DOEfunction to generate a model matrix.
Code:
dtc = Open("data_table.jmp");
mixsum = 1;
n = N Row( dtc );
dt = Current Data Table();
acol = Column( "age" );
col = Column( "height" );
scol = Column( "sex" );
wcol = Column( "weight" );
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Mixture, 0, 1, "X1", 0 ), Add Factor( Mixture, 0, 1, "X2", 0 ),
Add Factor( Mixture, 0, 1, "X3", 0 ), Set Random Seed( 15322911 ), Simulate Responses( 0 ), Save X Matrix( 1 )}
);
d << add factor( covariate, acol );
d << mixture sum( mixsum );
d << optimality criterion( 1 );
d << make model;
d << make design;
dt = d << make table;
dt << run script( "Model Matrix" );
dt << New Column( "Mixture Sum", formula( Round( dt:X1 + dt:X2 + dt:X3, 8 ) ) );
c = 1;
Try( invxtx = Inverse( X` * X ), c = 2 );
d << optimality criterion( 2 );
d << make design;
Code Explanation:
- Open data table.
- Define mixture sum.
- Count rows in data table.
- Set current data table.
- Assign columns to variables.
- Create custom DOE design.
- Add covariate factor.
- Set mixture sum constraint.
- Set optimality criterion.
- Generate model and design.
DOE using Select Rows
Summary: Creates a custom Design of Experiments (DOE) design with specific row selection and covariate handling, utilizing JMP's DOE platform.
Code:
dt = Open("data_table.jmp");
dt << Select Rows( [1, 5, 10, 15] );
d = DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ), Add Factor( Covariate, height, 0 ), Add Factor( Covariate, weight, 0 ),
Set Random Seed( 1748952220 ), Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Alias Term( {1, 1}, {2, 1} ),
Select Covariate Rows( [](1, 0) ), Set Sample Size( 40 ), Simulate Responses( 0 ), Save X Matrix( 0 )}
);
d << Enforce Use of Selected Covariate Rows( 1 );
d << Enforce Use of Selected Covariate Rows( 0 );
d << Allow covariate Rows to be repeated( 1 );
d << Allow covariate Rows to be repeated( 0 );
d << close window;
Code Explanation:
- Open data table;
- Select specific rows.
- Create custom DOE design.
- Define response variable.
- Add height covariate.
- Add weight covariate.
- Set random seed.
- Include intercept term.
- Include height term.
- Include weight term.
DOE using Expr
Example 1
Summary: Runs the design of experiments (DOE) analysis for a chemical reaction process, specifying factors and response variables, and setting augment method, random seed, and sample size.
Code:
dt = Open("data_table.jmp");
augmentExpr = Expr(
DOE(
Augment Design,
X( :Feed Rate, :Catalyst, :Stir Rate, :Temperature, :Concentration ),
Y( :Percent Reacted ),
{Augment Method( Augment ), Set Random Seed( 21606762 ), Number of Starts( 1 ), Add Term( {1, 0} ), Add Term( {1, 1} ),
Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {4, 1} ), Add Term( {5, 1} ), Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1}, {3, 1} ), Add Alias Term( {1, 1}, {4, 1} ), Add Alias Term( {1, 1}, {5, 1} ), Add Alias Term( {2, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {4, 1} ), Add Alias Term( {2, 1}, {5, 1} ), Add Alias Term( {3, 1}, {4, 1} ),
Add Alias Term( {3, 1}, {5, 1} ), Add Alias Term( {4, 1}, {5, 1} ), Set Sample Size( 16 ), Optimality Criterion( 3 ), Make Design,
Save X Matrix( 0 ), Simulate Responses( 0 )}
)
);
augmentExpr;
Code Explanation:
- Open data table.
- Define augment expression.
- Start DOE analysis.
- Specify factors.
- Specify response.
- Set augment method.
- Set random seed.
- Set number of starts.
- Add polynomial terms.
- Add alias terms.
- Set sample size.
- Set optimality criterion.
- Generate design.
- Do not save X matrix.
- Do not simulate responses.
- Execute augment expression.
Example 2
Summary: Evaluates a designed experiment with specified factors and terms, generating an expression that can be used for further analysis.
Code:
dt = Open("data_table.jmp");
evaluateExpr = Expr(
DOE(
Evaluate Design,
X( :Feed Rate, :Catalyst, :Stir Rate, :Temperature, :Concentration ),
{Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {4, 1} ), Add Term( {5, 1} ),
Add Term( {1, 1}, {2, 1} ), Add Term( {1, 1}, {3, 1} ), Add Alias Term( {1, 1}, {4, 1} ), Add Alias Term( {1, 1}, {5, 1} ),
Add Alias Term( {2, 1}, {3, 1} ), Add Alias Term( {2, 1}, {4, 1} ), Add Alias Term( {2, 1}, {5, 1} ),
Add Alias Term( {3, 1}, {4, 1} ), Add Alias Term( {3, 1}, {5, 1} ), Add Alias Term( {4, 1}, {5, 1} )}
)
);
evaluateExpr;
Code Explanation:
- Open data table.
- Define evaluate expression.
- Start DOE evaluation.
- Set factors: Feed Rate, Catalyst, Stir Rate, Temperature, Concentration.
- Add main effects terms.
- Add interaction terms.
- Add alias terms for interactions.
- Execute evaluate expression.
Example 3
Summary: Creates a MaxDiff design expression for data analysis, setting parameters such as number of profiles and choice sets.
Code:
dt = Open("data_table.jmp");
maxDiffExpr = Expr(
DOE(
MaxDiff Design,
X( :Flavor ),
{Set Number of Profiles( 4 ), Set Number of Choice Sets( 15 ), Make Design, Simulate Responses( 0 )}
)
);
maxDiffExpr;
Code Explanation:
- Open data table.
- Define MaxDiff design expression.
- Set number of profiles to 4.
- Set number of choice sets to 15.
- Create design without simulation.
- Execute MaxDiff design expression.