Use Make Into Data table, take the source script from that and modify as needed
Names Default To Here(1);
rpt = New Window("Diabetes - Bootstrap Forest of Y",
Data Table("Diabetes") << Bootstrap Forest(
Y(:Y),
X(
:Age, :Gender, :BMI, :BP, :Total Cholesterol, :LDL, :HDL, :TCH, :LTG,
:Glucose
),
Validation(:Validation),
Method("Bootstrap Forest"),
Column Contributions(1),
Minimum Splits per Tree(5),
Portion Bootstrap(1),
Number Terms(3),
Number Trees(25),
Go
)
);
Wait(0);
rpt["Bootstrap Forest for Y", "Column Contributions", Table Box(1)] <<
Make Into Data Table;
rpt << Close Window;
View more...
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Diabetes.jmp");
bsf = dt << Bootstrap Forest(
Y(:Y),
X(:Age, :Gender, :BMI, :BP, :Total Cholesterol, :LDL, :HDL, :TCH, :LTG, :Glucose),
Validation(:Validation),
Minimum Splits Per Tree(5),
Portion Bootstrap(1),
Number Terms(3),
Number Trees(25),
Column Contributions(1),
Go
);
Wait(0);
dt_res = Report(bsf)[Outline Box("Bootstrap Forest for ?"), Outline Box("Column Contributions"), Table Box(1)] << Make Into Data Table(Invisible);
m = dt_res[0, 0];
Close(dt_res, no save);
// could also
m = Report(bsf)[Outline Box("Bootstrap Forest for ?"), Outline Box("Column Contributions"), Table Box(1)] << get;
If you just want the columns, you can build it from the resulting list or
m = Report(bsf)[Outline Box("Bootstrap Forest for ?"), Outline Box("Column Contributions"), Table Box(1), StringColBox("Term")] << Copy Column;
-Jarmo