Überwachung | Parameter_1 | Parameter_2 | … .. | Parameter_N | SETUP [EXP / CONTROL] |
1 | | | | | |
. | | | | | |
n | | | | | |
Wie automatisiere ich das Scripting von fit y by x by position?
Mein Ziel ist es, alle Parameter für ihre Korrelationsdiagramme dynamisch zu skripten und an Powerpoint anzuhängen.
Y: Parameter_1 [EXP]
X: Parameter_1 [STEUERUNG]
Die JSL, um das auszuführen, was Sie wollen, ist ziemlich einfach. Der einzige Punkt von irgendeiner Komplexität ist das Einrichten der Liste von Parameternamen und des Kontrollnamens.
names default to here(1);
dt=open("$SAMPLE_DATA/Blood Pressure.jmp");
// Get the column names
// As with your example, the last column is the control
colNamesList = dt << get column names(string,continuous);
// Get the name of the control column from the last element
// in the colNamesList
theControl = colNamesList[N Items(colNamesList)];
// Delete the control from the colNamesList
remove from( colNamesList, -1, 1 );
// Run the Analysis
biv = Bivariate( Y( eval(colNamesList) ), X( eval(theControl) ) );
biv << Save Presentation("$TEMP/Correlations.pptx", append);
open("$TEMP/Correlations.pptx");