Dear all,
I want to automate a model selection process via scripting using the Fit model platform utilizing stepwise regression for a stability analysis (I also know the stability platform in JMP but for "reasons" I want to use Fit model).
My terms are Storage time, Batch ID and Storage Time*Batch ID. Using Stepwise regression the idea is now to leave terms within the model with an p-value <0.25. An initial script looked (in parts) like this:
Y( :response ),
Effects(
:"Storage Time (2-8°C Analysis)"n, :Batch ID, :"Storage Time (2-8°C Analysis)"n * :Batch ID,
),
Center Polynomials( 0 ),
Personality( "Stepwise" ),
Run(
Stopping Rule( "P-value Threshold" ),
Prob to Leave( 0.25 ),
Direction( "forward" ),
Rules( "Whole Effects" )
)
My problem is now, that by using the Rule "Whole effects", terms are excluded following not the hierarchical principle, meaning that my model contained after using stepwise regr. e.g. The interaction and time effect, but not the batch effect. See also:
I know that there is also the combine or restrict rule (to have hierarchy), however by applying these rules my term Batch ID (multi-level) is splitted into different groups which is not my desire. I really want just to have the whole effect Batch ID if it is significant (or its interaction with time).
So is there a way to combine the "whole Effect" term display with the hierarchical principle for model selection? A script would also work for me.
I hope I could clarify my question.
Thanks in advance for any solution or remarks!
Best Johann