主要内容

PredictedValue

Predicted value of model at specified inputs

    Description

    y = PredictedValue(model,x) evaluates the model modelat x.

    example

    Examples

    collapse all

    Compare predicted values of two models.

    y = PredictedValue(R, X);
    modelPred = PredictedValue(thisRF, x);
    

    Input Arguments

    collapse all

    Model being evaluated, specified as an mbcmodel.model object.

    Input data where you want to evaluate the output of the model, specified as an array

    Output Arguments

    collapse all

    Predicted value of the model at the input data points x, returned as an array.

    Note

    To evaluate model output for a local response or hierarchical response, you have to construct it using MakeHierarchicalResponse (or CreateAlternativeModels). If you have created alternative response feature models then a best model must be selected. If you have made changes such as removing outliers since choosing a model as best, you may need to choose a new best model. For a local response, the predicted value uses the hierarchical model. If no data is specified then the data from all tests is used.

    More About

    collapse all

    Version History

    Introduced before R2006a