columna API reference - v0.4.0
    Preparing search index...

    Interface PlsResult

    interface PlsResult {
        coefficients: { coef: number[]; constant: number; response: string }[];
        components: number;
        fitted: Float64Array<ArrayBufferLike>[];
        leverage: Float64Array;
        m: number;
        n: number;
        names: string[];
        p: number;
        residuals: Float64Array<ArrayBufferLike>[];
        responseNames: string[];
        scores: Matrix;
        selected: number;
        summary: PlsComponentRow[];
        test: "partial least squares";
        xLoadings: Matrix;
        xWeights: Matrix;
        yLoadings: Matrix;
        predict(
            x: ArrayLike<number> | ArrayLike<number>[],
            components?: number,
        ): number[][];
    }
    Index
    coefficients: { coef: number[]; constant: number; response: string }[]

    Regression coefficients on the original scale for the selected components: [response][0 = constant, 1..p].

    components: number

    Components fitted.

    fitted: Float64Array<ArrayBufferLike>[]
    leverage: Float64Array

    Leverage of each observation in the selected model (from the scores).

    m: number

    Number of responses.

    n: number
    names: string[]

    Standardized coefficients (when standardize) or centered-scale coefficients: [response][p].

    p: number
    residuals: Float64Array<ArrayBufferLike>[]
    responseNames: string[]
    scores: Matrix
    selected: number

    Components selected (max predicted R², or all when not cross-validated).

    summary: PlsComponentRow[]
    test: "partial least squares"
    xLoadings: Matrix
    xWeights: Matrix
    yLoadings: Matrix
    • Parameters

      • x: ArrayLike<number> | ArrayLike<number>[]
      • Optionalcomponents: number

      Returns number[][]