Random Reset( 12345 );
res = []; // define results matrix (empty to start)
bv << Close Window;
dt:Y << Eval Formula;
dtres << Distribution( Y( :Intercept, :Slope ) );
If you want to run an analysis as an intermediate step in your script, and do not need the user to see the analysis, hide it with the invisible option. In this case, you might want to show only specific results from the report, which you can output to a journal or to the log.
dist << Close Window;
•
|
The following example extracts the F-Ratio from an invisible Bivariate report, and outputs it to the log:
|
biv = dt << Bivariate( x( :height ), y( :weight ), invisible );
biv << Fit Line;
r = biv << Report;
fratio = r[ColumnBox( "F Ratio" )][1];
r << Close Window;
Show( fratio );
You can also use the invisible option on the options in the Tables menu, such as Subset, Sort, Stack, and so on. The following example makes the Subset operation invisible:
subDt = dt << Subset( invisible );
subDt << Bivariate( x( :height ), y( :weight ), Fit Line );