Subscribe Bookmark RSS Feed

Saving to a folder and making seperate windows/ and other questions

tylerram93

Contributor

Joined:

Jul 20, 2017

I have a GUI I made that works well, but I can't seem to save it correctly-- I have read up on other posts and the SAS scripting guide, but any time I run the program the data doesn't save or show up anywhere?

 

Also, when I try to make another one with two other variables it shows up in the same window--is there a way to get around that and have it pop up in it's own window?

 

Lastly, how would I be able to get the slope and have it come out as a column I could append into the dataframe?

 

Thanks for any and all help, you guys are truly helpful!

 

Tyler

 

 

status3 = List(0);
//Distribution for the Nominal Area versus Inverse Resistance
New Window("Analysis for 1/Rn Vs. Nominal Area",
H List Box(
V List Box(;
Panel Box("Controls",
Text Box("Choose Analysis"),
choice1 = Check Box({"Distribution for 1/Rn Vs. Nominal Area"},
current3 = choice3 << Get(1);
xParam = Column_Area; //Corrected Area
yParam = Column_MaxIc; //Max Ic
 
x1Param = Column_NomArea; // Nominal Area
y1Param = Column_InverseRes; //Inverse Resistance
 
//Get the distribution
If( And( current3, Not(status3[1] ) ),
dt << Append(
dt = V List Box(
bivPlatform1 = Bivariate( by(Column_Wafer,Column_Reticle),
Y( Eval(y1Param) ),
X( Eval(x1Param) ),
Fit Line( Intercept(0),{Line Color( {57, 177, 67} )} ),
);
)
);
status3[1]=1; //mark as present
);
)
)
),
dt = V List Box(),
)

 

 

3 REPLIES
Byron_JMP

Staff

Joined:

Apr 26, 2012

it looks like a lot of things are missing in your script. maybe try creating the report manually and then get the script to use as a starting point.
tylerram93

Contributor

Joined:

Jul 20, 2017

I left out a lot of stuff just to simplify matters--if you want I
can upload the whole file (which works as it is), I just want to
modify it to do the following things I stated above!

Thanks,

Tyler
Byron_JMP

Staff

Joined:

Apr 26, 2012

dont know why you can't find what you're saving, maybe try providing a specific path. usually the default dir is the place where the script is saved.

 

here's how to get the slope formula back into the data table.  This is the same as running the fit model report and saving the prediction formulat to the table manually.

dt = Open("$SAMPLE_DATA/Big Class.jmp");
obj=dt<<Fit Model(
	Y( :weight ),
	Effects( :age, :sex, :height, :age * :sex, :age * :height, :sex * :height ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Minimal Report" ),run);
newcol=obj<<get prediction formula;
newcol;//evaluates the result of of sending the message to the obj
eval(obj<<get prediction formula);//alternatively, just do in in one step by forcing it to be evaluated

note: if you're used to R or python, the indents don't matter in JMP, spelling counts, but not the case of the letters. "Fit Model" is the same as fitmodel, FiTmOdEL, or f i t m o d e l. "//" comments. Lists and variables don't need to be defined up front, but sometimes I'll use x={} or x=[] to make empty lists or matricies that I plan to fill later.