Hi all,
I was trying to loop through a series of x variables ("Effects") for Fit Model, and came across this confusing behavior. When I create a list and use it with the Oneway platform, it behaves as expected. However, when I try the same thing with Fit Model, it seems to ignore my list and select variables based upon dt column order. I think this example code will make the issue more clear.
How do I specify an item from a list for an Effect within Fit Model?
data = Open ("$SAMPLE_DATA/Big Class.jmp");
x_list = {
:sex,
:height
};
data << Oneway(
Y( :height ),
X( x_list [1] )
);
data << Fit Model(
Y( :height ),
Effects( x_list [1] ),
Personality( Standard Least Squares ),
Emphasis( Effect Leverage ),
Run(
:height << {Lack of Fit( 0 )}
)
);