Choose Language Hide Translation Bar
Highlighted
pawndreal_
Level I

Oneway Automate

Observation

Parameter_1

Parameter_2

…..

Parameter_N

SETUP[EXP/CONTROL]

1

 

 

 

 

 

.

 

 

 

 

 

n

 

 

 

 

 

 

How do i automate the scripting of fit y by x by position?
my aim is to dynamically script thru all parameters for their correlation plots and append it to powerpoint?

Y: Parameter_1 [EXP]
X: Parameter_1[CONTROL]

1 REPLY 1
Highlighted
txnelson
Super User

Re: Oneway Automate

The JSL to perform what you want is pretty straight forward.  The only item of any complexity is the setting up of the list of parameter names and the control name.

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");
Jim
Article Labels

    There are no labels assigned to this post.