Main Content

corr

R2026b

Correlation matrix for linear model parameters

Renamed from Correlation in R2026b

    Description

    stats = corr(linearmodel) calculates the correlation matrix for the linear model parameters.

    example

    Examples

    collapse all

    Calculate correlation of knot linear model.

    Stats = corr(knot_model)

    Input Arguments

    collapse all

    Linear model whose correlation is being calculated, specified as a mbcmodel.linearmodel object.

    Output Arguments

    collapse all

    Correlation of linear model, specified as a matrix.

    Version History

    Introduced in R2007a

    expand all