メインコンテンツ

AlternativeModelStatistics

Summary statistics for alternative models

    Description

    SS = AlternativeModelStatistics(M) returns an array of summary statistics of all alternative model fits for the model M. The summary statistics are used to select the best model. These summary statistics are in the list view at the bottom of the MBC Model Fitting app in any model view.

    SS = AlternativeModelStatistics(M, NAMES) returns a structure containing Statistics and Names fields.

    You must use CreateAlternativeModels before you can compare the alternative responses using AlternativeModelStatistics. Then, use ChooseAsBest.

    Note

    For mbcmodel.localresponse objects, AlternativeModelStatistics outputs the summary statistics for all response feature responses.

    For mbcmodel.hierarchicalresponse objects, AlternativeModelStatistics outputs the summary statistics for all local responses.

    Input Arguments

    collapse all

    Response object whose alternative response models you want to compare, specified as an mbcmodel.response object, mbcmodel.hierarchicalresponse object, or mbcmodel.localresponse object.

    Name of statistics to be calculated, specified as a character array, string, or cell array of strings.

    Note

    NAMES must be one of the statistics available from the model. See SummaryStatistics.

    Output Arguments

    collapse all

    Summary of statistics, returned as a structure.

    S.Statistics is a matrix of size (number alternative responses x number of statistics).

    S.Names is a cell array containing the names of all the statistics.

    The available statistics vary according to what kind of parent model (two-stage, local, response feature, or response) produces the alternative models and include PRESS RMSE, RMSE, and two-stage RMSE.

    Note

    Use SummaryStatistics to examine the fit of the current model. Use AlternativeModelStatistics to examine the fit of several alternative child models.

    Version History

    Introduced in R2006a