Subscribe Bookmark RSS Feed

How can I script the Fit Model platform to use the model script in a data table?

wilkap

Community Trekker

Joined:

Aug 29, 2014

When you use the "Fit Model" menu selection under "Analyze" it uses the "model" script in the table to run the analysis.  How can I do this through scripting? For example, the model script in a table has the Y's, the effects, and the personality information required by "Fit Model."  I just need to know how to get these to work together.  Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

You could try something like

Current Data Table() << Run Script("Model");

You might also need to do something like this -- if you need to get the model to actually run:

modelscript = Current Data Table() << Get Property("Model");

Insert Into(modelscript,Expr(Run));

Eval(modelscript);

2 REPLIES
Solution

You could try something like

Current Data Table() << Run Script("Model");

You might also need to do something like this -- if you need to get the model to actually run:

modelscript = Current Data Table() << Get Property("Model");

Insert Into(modelscript,Expr(Run));

Eval(modelscript);

wilkap

Community Trekker

Joined:

Aug 29, 2014

This worked perfectly!  Thank you.