Fitting models using data in a matrix
When I want to fit a regression model to a data set in script, I'll normally write something like the following:
dt = open("$SAMPLE_DATA/Big Class.jmp");
dt << Fit Model(
Y( :Height ),
Effects( :Weight ),
Personality( Standard Least Squares ),
Run Model
);
This assumes that the data is contained in a data table with columns named as in the example above, but is there a way to fit the same model using just data contained in columns of a matrix, i.e. without needing to turn that matrix into a data table first? If so, what would the syntax be?
Many thanks