Thank you. This works fine.
Would you care to address why this test loop only open "analysis" windows with out "Y" variables?
This is a test for only 3 columns of data. My goal is to run this on 4,500 columns and store the two p-values for each analyses.
// Open file
dt = Open("home/AND_Counts_alphaorder_SumNorm.jmp");
// Define the range of response columns
startColumn = 31;
endColumn = 33;
// Loop over the response columns
for (col = startColumn, col <= endColumn, col++,
responseVar = Column(dt, col) << Get Name;
obj = dt << Fit Model(
Y( responseVar ),
Effects( :mass, ::Accl_Temp_ordinal ),
Personality(Standard Least Squares),
Emphasis(Minimal Report),
Run),
);
P = obj << Get Effect PValues;
Save Text File("~/Projects_AB/Ptest.csv", Char(P));
// This open 3 windows w/out "Y"