I am trying to write a script that takes a data table, runs a fit model analysis based on several construct model effects, and then creates a data table from the least squares means table, specifically for the strain_id input. Below is the script I am currently using to run the fit model on my data but I am not sure how to extract the least squares means table. The only way I know how to do this is to right click on the data from the fit model report and click the "make into a data table option." Could someone please explain how to do this same thing with a JSL script? Thank you.
fm = Data Table( dt_pv ) << Fit Model(
Y( :assay_main_prod ),
Effects( :strain_id, :experiment_id, :main_plate_id ),
Personality( Standard Least Squares ),
Emphasis( Effect Leverage ),
Run( Residuals( 1 ) )
);