www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@abstractresponse/CreateAlternativeModels.m

    function R = CreateAlternativeModels(R,varargin)
%CREATEALTERNATIVEMODELS Make a set of alternative models and select the best.
%
%   CREATEALTERNATIVEMODELS( RESPONSE, MODELTEMPLATE, CRITERIA ) makes
%   alternative response feature models for each response feature based
%   upon the model template file MODELTEMPLATE created by MBCMODEL, and
%   selects the best models based on CRITERIA.
% 
%   CREATEALTERNATIVEMODELS( RESPONSE, MODELLIST, CRITERIA ) makes
%   alternative response feature models for each response feature based
%   upon a cell array of MBCMODEL.MODEL objects and selects the best models 
%   based on CRITERIA.
%
%   For example, 
%    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 models 'Weighted PRESS' statistic.
%
%   CREATEALTERNATIVEMODELS( RESPONSE, MODELS, CRITERIA ) makes alternative
%   response feature models for each response feature and selects the
%   best model based on CRITERIA.  MODELS is typically loaded from a model
%   template file created by MBCMODEL.
%
% See also mbcmodel.abstractresponse.AlternativeModelStatistics

%   CREATEALTERNATIVEMODELS( RESPONSE, LOCALMODELS, LOCALCRITERIA,
%   GLOBALMODELS, GLOBALCRITERIA )  makes alternative local models as well
%   as alternative response feature models.
%
%     LOCALMODELS    list of local models
%     LOCALCRITERIA  'Two-Stage RMSE'
%     GLOBALMODELS   list of global models (from model template)
%     GLOBALCRITERIA Selection criteria for best model

%   Copyright 2004-2007 The MathWorks, Inc.

CreateAlternativeModels(R.Object, varargin{:});