How can I script the Fit Model platform to use the model script in a data table?<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />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.
Re: How can I script the Fit Model platform to use the model script in a data table?This worked perfectly! Thank you.
Re: How can I script the Fit Model platform to use the model script in a data table?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);