This is the code that is used to generate the design, and the design and model are shown below.
DOE(
Custom Design,
{Add Response( Match Target, "vol", ., ., . ),
Add Factor( Continuous, 0, 100, "F1_treat", 0 ),
Add Factor( Categorical, {"A", "B"}, "F2_type", 0 ),
Add Factor( Categorical, {"A", "B"}, "F1_type", 0 ),
Set Random Seed( 668463152 ), Number of Starts( 80 ), Add Term( {1, 0} ),
Add Term( {1, 1}, {3, 1} ), Add Term( {1, 2} ), Add Term( {1, 1}, {2, 1} ),
Add Term( {1, 1} ), Add Term( {1, 2}, {3, 1} ),
Add Term( {1, 1}, {2, 1}, {3, 1} ), Add Alias Term( {2, 1}, {3, 1} ),
Replicates( 2 ), Set Sample Size( 9 ),
Disallowed Combinations(
F1_treat >= 90 & F1_treat <= 100 & F2_type == "A" | F1_treat >= 0 & F1_treat
<= 5 & F1_type == "A"
), Simulate Responses( 0 ), Save X Matrix( 0 ), Make Design}
)
When I fit the model it I have the following significant effects
However, the prediction profiler has the response being dependent on the F1_type when F1_treat = 0. This is the part that I cannot understand, given that nowhere in the model does F1_type appear in the absence of F1_treat.
Removing both the coding and unchecking centre polynomials gives the below singularity report, but once one of the higher order terms has been removed gives a more sensible (scientifically at least) model where at F1_treat = 0 the F1_type has no effect on the response.
Regarding your final point about the design stage, I did it as otherwise the design seems to come up with a lot of runs which are essentially repeats but without understanding them as such. Should this be taken into account by the model factors included during the design?
I notice a statement by you, "A complication in the design stage is that the type of fluid A used cannot have an effect on the response when Fluid_A treat rate is 0." I think that is handled in a natural way by the linear model you are using, without the need for a special design. The complicated modifications under discussion might not be necessary. (I'm not sure, though.)
For example, running the custom DoE tool with everything the same but with the restrictions removed and 0 repeats chosen the following design results. The highlighted rows are essentially repeats as at F1_treat = 0 then the F1_type can have no effect, the same is true of the two rows below those highlighted. Repeats are obviously no bad thing, I just use this as an example.
Many thanks for the help with this, and any further feedback