Is there an easy way to tell what type of analysis I'm looking at from a JSL perspective? I want to know if the outline box is a Oneway, Bivariate, ect. I thought there was an easy way to do this, like analysis << Class Name (but that didn't work - just returns OutlineBox).
I would like to run different code based on the type of analysis in any given window. This is assuming I don't explicitly create the analysis and know what it is. The only way I could think of is with the below code, but it feels incredibly glassy to me. Is this the only way?
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
analysis = dt << Fit Y by X(
Y( :weight ),
X( :height, :sex )
);
for(i=1, i<=nitems(analysis), i++,
if(contains(Log Capture(print(analysis[i])), "Oneway"),
Print("It's a Oneway"),
Print("It's not Oneway")
);
);
@Craige_Hales, @ms, @Jeff_Perkinson