单向自动化观察 | 参数_1 | 参数_2 | ….. | 参数_N | 设置[EXP / CONTROL] |
1 | | | | | |
。 | | | | | |
ñ | | | | | |
如何自动根据位置按x拟合y的脚本?
我的目标是通过所有参数为其关联图动态编写脚本并将其附加到powerpoint?
Y:参数_1 [EXP]
X:参数_1 [CONTROL]
回复:单向自动化JSL执行您想要的操作非常简单。 唯一复杂的项目就是设置参数名称和控件名称列表。
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");