rStats.js v1.3.0
    Preparing search index...

    Interface ModelMatrixResult

    Result of modelMatrix.

    interface ModelMatrixResult {
        assign: number[];
        colNames: string[];
        factors: number[][];
        intercept: boolean;
        order: number[];
        rows: number[];
        termLabels: string[];
        variables: string[];
        warnings: string[];
        x: number[][];
    }
    Index
    assign: number[]

    The term of each column (0 for the intercept, 1 for the first term).

    colNames: string[]

    Column names, such as "(Intercept)", "Ab", "Ab:Bq", "x".

    factors: number[][]

    R's factors attribute: one array per variable, one code per term (0 not in it, 1 contrasts, 2 indicators).

    intercept: boolean

    Whether the model has an intercept.

    order: number[]

    Degree of each term.

    rows: number[]

    0-based indices of the rows of the data used (rows with a missing value are dropped).

    termLabels: string[]

    Labels of the terms (variables joined by :).

    variables: string[]

    The variables of the formula, the response first.

    warnings: string[]

    R's warnings.

    x: number[][]

    The model matrix (array of rows).