Hello,
I would like to create a script, where based on some previous input variable, the DOE[] object is messaged to work with one additional factor.
The DOE design generation is now heavy to run (about a 30sec), so I am looking for a lean way (e.g. tweak it before sending the 'make design' message).
Ideally i would like to work with an if clause, checking if a said boolean variable is true and if so add the factor to the custom design.
Some 'pseudocode':
AddSpecialFactor = 1; /* decision rule to add factor, will be retrieved from a modal window based on some more complex molecule chemistry input */
D = DOE(
custom design,
Add Factor(continuous, "A",.....),
Add Factor( ...),
..
If (AddSpecialFactor = 1) then Add Factor(....),
Add Term(),
..
If (AddSpecialFactor = 1) then Add Term() ...,
All suggestions are more than welcome
That's kind of a cool idea for design generation.
I was working on just taking designs from a CSV and generating DOEs. https://community.jmp.com/t5/Byron-Wingerd-s-Blog/Automating-Design-Generation/ba-p/407039
It might work to have your script concept generate a data table and then use the script in the blog above to load and run the DOE platform.
Maybe get a list of column names, and if that list contains certain words, then add columns with the appropriate factor levels?