Hi everyone!
I really need help on this because I'm using JMP and JSL for my thesis. I am current using JMP via JSL to analyze some data, and my focus is stepwise regression. I'll have some code snippets attached by the way for ease in helping.
Basically
1.) How to add multiple effects on the initial model via column number?
Currently, I can set Y using only the column number I want, but I can't add X's using the column number.
I want it to go from this
obj = dt << Fit Model(Y(:Column Name(i)),
Effects(
:Effect1Name, :Effect2Name, /*and so on and so forth*/
),
Personality(Stepwise), Run Model(Stopping Rule(MinimumBIC))
);
to this
obj = dt << Fit Model(Y(:Column Name(i)),
Effects(
:Column(/*indices of columns to place as effects*/)
),
Personality(Stepwise), Run Model(Stopping Rule(MinimumBIC))
);
2.) How to remove effects that are least significant?
After running the original script, I see that some effects are not really that significant. The default scripting will be to use
obj << Remove(:/*hardcoded column name*/);
but I want it to be flexible so I can automate it so that it looks like this
obj << Remove(:Column Name(indextoremove));
but the above snippet produces this error message
Term not found in access or evaluation of 'Column Name' , Column Name/*###*/(indextoremove)
Thanks!