メインコンテンツ

GetTermStatus

List status of some or all model terms

    Description

    Status = GetTermStatus(Model) returns the status of all of the terms in the mbcmodel.linearmodel object.

    Status = GetTermStatus(Model,Terms) returns a list of labels with the specified terms.

    example

    Examples

    collapse all

    Get a term label.

    model = mbcmodel.CreateModel('Polynomial', 2);

    Get status of X23 term.

    status = model.Properties.GetTermStatus([0 3])
    status =
    
      1×1 cell array
    
        {'Step'}

    Input Arguments

    collapse all

    Linear model, specified as a mbcmodel.linearmodel object.

    Terms in mbcmodel.linearmodel object.

    Output Arguments

    collapse all

    Model term status, specified as character vectors. The stepwise status for each term can be 'Always', 'Never' or 'Step'. The status determines whether you can use the StepwiseRegression function to throw away terms in order to try to improve the predictive power of the model.

    Version History

    Introduced in R2007a