單向自動化觀察 | 參數_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");