Situation:
Thanks - Ken
You don't show your script but I think that you said it yourself. If you do not provide a reference to the specific data table with the covariates, then the current data table will be used. So make the table with the covariates current before running the script. If that approach is inconvenient or if the covariates are always found in the same data table, another approach can be taken. It would involve changing the way the data table and data columns are referenced in the script.
Good afternoon, Mark - thanks for the quick reply. Hope you and your family are well.
I'm old and keep forgetting to do stuff. OK, I've always forgotten frustratingly often to do things like change the table focus, but now I have an excuse.
Because of this, though, I like to automate as much as I can. Automating the table focus, as well as maybe making sure the correct lines in the covariates table and the "Enforce use of selected covariate rows" checkbox is marked through script, rather than depending on my squirrel-beset concentration, would be a big help.
Code below. Thanks again - Ken
DOE( Custom Design, {Add Response( None, "Curr_A", ., ., . ), Add Factor( Covariate, Plating, 1 ), Add Factor( Covariate, AWG, 1 ), Add Factor( Covariate, log10_WPB, 1 ), Add Factor( Covariate, Insul_Thick, 1 ), Add Factor( Continuous, 0, 1, "Press_Atm", 0 ), Add Factor( Continuous, -1, 1, "Env_Temp_C", 0 ), Set Random Seed( 1606802978 ), Number of Starts( 12 ), 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 Potential Term( {2, 2} ), Add Potential Term( {2, 3} ), Add Potential Term( {3, 2} ), Add Potential Term( {3, 3} ), Add Term( {5, 2} ), Add Term( {6, 2} ), Add Term( {2, 1}, {4, 1} ), Add Potential Term( {2, 2}, {4, 1} ), Add Potential Term( {2, 3}, {4, 1} ), Add Term( {1, 1}, {2, 1} ), Add Potential Term( {1, 1}, {2, 2} ), Add Potential Term( {1, 1}, {2, 3} ), Add Term( {3, 1}, {5, 1} ), Add Term( {3, 1}, {5, 2} ), Add Term( {4, 1}, {5, 1} ), Add Term( {4, 1}, {5, 2} ), Add Term( {5, 1}, {6, 1} ), Add Term( {5, 1}, {6, 2} ), Add Term( {5, 2}, {6, 1} ), Add Term( {5, 2}, {6, 2} ), 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}, {5, 1} ), Add Alias Term( {2, 1}, {6, 1} ), Add Alias Term( {3, 1}, {4, 1} ), Add Alias Term( {3, 1}, {6, 1} ), Add Alias Term( {4, 1}, {6, 1} ), Set N Whole Plots( 27 ), Set Sample Size( 81 ), Simulate Responses( 0 ), Save X Matrix( 0 ) /* , Make Design, Set Run Order( Keep the Same ), Make Table */} );