‒
|
Include the Run Model message in your script.
|
‒
|
•
|
To run the model without showing the launch window, include the Run message in your script.
|
When a data table contains a Model script and you launch Fit Model interactively, the Fit Model launch window is pre-populated according to the roles assigned by the table script.
If you want to fit different models and see a shared Profiler so that you can compare the models, use the Fit Group function. You can fit models such as least squares, nonlinear, neural, Gaussian processing, and mixed, in the same window with a shared Profiler. The following example creates both a Standard Least Squares model and a Gaussian Process model.
obj = dt << Fit Group(
Set Correlation Function( "Cubic" )
In the report, click the Fit Group red triangle and select Profiler. Scroll down to the Prediction Profiler. You can see the ABRASION row for the SLS model, and the HARDNESS row for the Gaussian Process model appearing in the same profiler.
An effect can be a column name, a crossing of several column names with asterisk (*) notation, or nested columns specified with subscript bracket ([ ]) notation. Additional effect options can appear after an ampersand (&) character. Here are some examples:
Each response function supports the Custom Test message:
where each row of the matrix specifies coefficients for all the arguments in the model.
To address an individual Effect test, use subscripted Effect with a name or number:
•
|
Each effect in each response function supports the following messages, where each row of the matrix has coefficients for all the levels in the effect:
manObj = dt << Fit Model(
Personality( "MANOVA" ),
Test Details( 1 )));
When you have multiple responses, you can send messages to a specific response column’s fit. Use the following JSL (where responseName is the specific response):
The second Send() function finds the named response and sends the list of messages to it.
注意:If you send the messages directly to the fitObj with a single Send() function, the messages are sent to all responses.
In the following script, the last line sends a message to the AICc report for the ABRASION response:
fitObj = dt << Fit Model(
Personality( "Standard Least Squares" ),
•
|
In a script, the Y responses are fit together by default. The model fits each Y using only those rows that are nonmissing for all of the Y variables. For example, a row that includes one or more missing Y values is excluded from the model. You can explicitly include Run( "Fit Together" ) in a script to get the same result.
|
•
|
If you include the Run( "Fit Separately" ) option, the model fits each Y using all rows that are nonmissing for that particular Y. For example, a row that includes one or more missing Y values is included in the model.
|
dt << Fit Model(
Personality( "Standard Least Squares" ),
Emphasis( "Minimal Report" ),
Run // or Run( "Fit Together" )
dt << Fit Model(
Personality( "Standard Least Squares" ),
Emphasis( "Minimal Report" ),
Run( "Fit Separately" )