Hi @yuichi_katsumur Thank you so much for your previous help about JSL stepwise. It worked well, the stepwise only has one P-value threshold, but this example below has two Stepwise method, one is P-value threshold, the other one is Minimum BIC. When I used your code to save the model it has two models, I have to use code to delete last script every time after saving models. Is there any way to remove minimum BIC in the graph below?
The direction for stepwise I used is "Mixed", but the graph below only shows "Forward", so what's actual direction used in the script?
@jthi can you help take a look as well?
sdt = Open("$SAMPLE_DATA/Boston Housing.jmp");
response_col = {" :mvalue", ":crim"};
effects_term = {:zn, :indus, :chas, :nox, :rooms, :age, :distance, :radial, :tax, :pt, :b,
:lstat};
var1= 0.05;
var2 = 0.25;
For( i = 1, i <= N Items( response_col ), i++,
Eval(
Parse(
Eval Insert(
"\[step_wise = Fit Model(
Y( ^response_col[i]^ ),
Effects( ^effects_term^ ),
Personality( Stepwise ),
Run Model(
Stopping Rule( "P-value Threshold" ),
Prob to Enter( ^var1^ ),
Prob to Leave( ^var2^ );
Direction ("Mixed");
Rules("Combine");
),
Run
);
]\"
)
)
);
step_wise << Finish;
Wait( 0 );
fit_model = step_wise << Run model;
/* step_wise << close window();*/
);