Skip to Main Content Skip to Search
Product Documentation

CreateAlternativeModels - Create alternative models from model template

Syntax

R = CreateAlternativeModels(R, modeltemplate, criteria)
R = CreateAlternativeModels(R, modellist, criteria
R = CreateAlternativeModels(R, 
LocalModels,LocalCriteria,GlobalModels,GlobalCriteria)

Description

This is a method of all model objects: mbcmodel.hierarchicalresponse, mbcmodel.localresponse and mbcmodel.response.

This is the same as the Build Models function in the Model Browser GUI. A selection of child node models are built. The results depend on where you call this method from. Note that the hierarchical model is automatically constructed when CreateAlternativeModels is called for a local model.

You construct a model template file (such as 'mymodels.mbm') in the Model Browser. From any response (global or one-stage model) with alternative responses (child nodes), select Model > Make Template. You can save the child node model types of your currently selected modeling node as a model template. Alternatively from any response click Build Models in the toolbar and create a series of alternative response models in the dialog.

Examples

mymodels = 'mymodels.mbm';
mlist = {};
load('-mat', mymodels);
critera = 'PRESS RMSE';
CreateAlternativeModels(R, [], 'Two-Stage RMSE', mlist, 
criteria);

Note that the model template contains the variable mlist.

CreateAlternativeModels( RESPONSE, 'alternative_models.mbm', 'Weighted PRESS' )

creates alternative response feature models based upon the model template file alternative_models.mbt, and chooses the best model based upon each model's Weighted PRESS statistic.

See Also

AlternativeModelStatistics

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS