Main Content

RemoveOutliersForTest

Remove outliers on test by index or rule and refit models

    Description

    RemoveOutliersForTest(LOCALRESPONSE, TESTNUMBER, LOCALSELECTION) removes outliers, refits the local model, and refits the response feature models for the test TESTNUMBER.

    RemoveOutliersForTest(LOCALRESPONSE, TESTNUMBER, LOCALSELECTION, doUpdate) removes outliers and, if doUpdate is true, refits all response features after the local model is refitted.

    example

    Examples

    collapse all

    For the local response LOCALRESPONSE, remove the first two data points and do not update response features.

    RemoveOutliersForTest(LOCALRESPONSE,1,1:2,false);

    Input Arguments

    collapse all

    Local response object, specified as an mbcmodel.localresponse object.

    Test number to remove outliers selected in LOCALSELECTION, specified as a real positive integer in the range [1, lr.NumTests]. The local model is refitted for this test.

    Indices or function name, specified as a real positive integer or character string.

    An outlier selection function must take this form.

    INDICES = FUNCNAME(MODEL, DATA, NAMES);

    Note

    See Remove and Restore Outliers for more information on specifying automatic outlier selection criteria.

    Refit response features, specified as false or true.

    Note

    Call UpdateResponseFeatures if doUpdate is set to false.

    Version History

    Introduced in R2006a